Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce redundant calls of `string-match' on formatting a tweet.
* twittering-mode.el: Reduce redundant calls of `string-match' on formatting a tweet. When generating a timeline spec from a string with obvious meaning, the new macros are used instead of the general function, `twittering-extract-timeline-spec'. (twittering-make-user-timeline-spec-direct): new macro. (twittering-make-list-timeline-spec-direct): new macro. (twittering-make-hashtag-timeline-spec-direct): new macro. (twittering-extract-timeline-spec): use new macros. (twittering-make-string-with-user-name-property): call the new macro `twittering-make-user-timeline-spec-direct' instead of calling `twittering-extract-timeline-spec'. (twittering-make-fontified-tweet-text): call the new macros `twittering-make-{user,list,hashtag}-timeline-spec-direct' instead of calling `twittering-extract-timeline-spec'.
- Loading branch information
Showing
2 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters