Skip to content

Commit

Permalink
(twittering-retweet): if 'C-u' prefix is given, 'twittering-use-nativ…
Browse files Browse the repository at this point in the history
…e-retweet' is temporarily reversed before use.

(twittering-follow): handle a prefix 'C-u' correctly.
(twittering-favorite): likewise.
  • Loading branch information
yata committed Feb 27, 2010
1 parent 358eb02 commit 4cb3f92
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
@@ -1,3 +1,11 @@
2010-02-27 Satoshi Yatagawa <yata_github@y.hauN.org>

* twittering-mode.el (twittering-retweet): If `C-u' prefix is
given, `twittering-use-native-retweet' is temporarily reversed
before use.
(twittering-follow): Handle a prefix `C-u' correctly.
(twittering-favorite): Likewise.

2010-02-25 Satoshi Yatagawa <yata_github@y.hauN.org>

* twittering-mode.el (twittering-format-status): Use the return
Expand Down
17 changes: 10 additions & 7 deletions twittering-mode.el
Expand Up @@ -3070,11 +3070,14 @@ variable `twittering-status-format'."
(delete-region (point-min) (point-max))
(insert url)))))))

(defun twittering-retweet ()
(interactive)
(if twittering-use-native-retweet
(twittering-native-retweet)
(twittering-organic-retweet)))
(defun twittering-retweet (&optional arg)
(interactive "P")
(let ((use-native-retweet-flag (if arg
(not twittering-use-native-retweet)
twittering-use-native-retweet)))
(if use-native-retweet-flag
(twittering-native-retweet)
(twittering-organic-retweet))))

(defun twittering-organic-retweet ()
(interactive)
Expand Down Expand Up @@ -3110,7 +3113,7 @@ variable `twittering-status-format'."
(browse-url uri))))

(defun twittering-follow (&optional remove)
(interactive)
(interactive "P")
(let ((username (get-text-property (point) 'username))
(method (if remove "destroy" "create"))
(mes (if remove "unfollowing" "following")))
Expand Down Expand Up @@ -3150,7 +3153,7 @@ variable `twittering-status-format'."
(message "No status selected"))))

(defun twittering-favorite (&optional remove)
(interactive)
(interactive "P")
(let ((id (get-text-property (point) 'id))
(text (get-text-property (point) 'text))
(width (max 40 ;; XXX
Expand Down

0 comments on commit 4cb3f92

Please sign in to comment.