Changeset 137 for lang/elisp/twittering-mode/trunk/twittering-mode.el
- Timestamp:
- 06/17/09 16:35:09 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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)