Changeset 137 for lang/elisp/twittering-mode
- Timestamp:
- 06/17/09 16:35:09 (15 years ago)
- Location:
- lang/elisp/twittering-mode/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/twittering-mode/trunk/ChangeLog
r136 r137 1 2009-06-18 Tsuyoshi CHO <Tsuyoshi.CHO+develop@Gmail.com> 2 3 * twittering-mode.el (twittering-mode-map) 4 (twittering-format-status, twittering-retweet): Add new feature 5 ReTweet 6 1 7 2009-06-18 Alberto Garcia <agarcia@igalia.com> 2 8 … … 9 15 Code refactoring. No need to use (format) to convert a string. 10 16 11 2009-06-18 Tsuyoshi CHO < tsuyoshi_cho@yahoo.co.jp>17 2009-06-18 Tsuyoshi CHO <Tsuyoshi.CHO+develop@Gmail.com> 12 18 13 19 * twittering-mode.el (twittering-status-format) -
lang/elisp/twittering-mode/trunk/twittering-mode.el
r136 r137 267 267 (define-key km "\C-c\C-s" 'twittering-update-status-interactive) 268 268 (define-key km "\C-c\C-e" 'twittering-erase-old-statuses) 269 (define-key km "\C-c\C-m" 'twittering-retweet) 269 270 (define-key km "\C-m" 'twittering-enter) 270 271 (define-key km "\C-c\C-l" 'twittering-update-lambda) … … 619 620 (add-text-properties 0 (length formatted-status) 620 621 `(username ,(attr 'user-screen-name) 621 id ,(attr 'id)) 622 id ,(attr 'id) 623 text ,(attr 'text)) 622 624 formatted-status) 623 625 formatted-status) … … 1100 1102 (browse-url uri))))) 1101 1103 1104 (defun twittering-retweet () 1105 (interactive) 1106 (let ((username (get-text-property (point) 'username)) 1107 (id (get-text-property (point) 'id)) 1108 (text (get-text-property (point) 'text))) 1109 (when username 1110 (twittering-update-status-from-minibuffer 1111 (concat "RT: " text " (via @" username ")") id)))) 1112 1102 1113 (defun twittering-view-user-page () 1103 1114 (interactive)