Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(twittering-icon-mode): use 'unless' instead of 'when'.

(twittering-scroll-mode): likewise.
(twittering-jojo-mode): likewise.
(twittering-toggle-reverse-mode): likewise.
  • Loading branch information...
commit d5cdb5732462728d42fe5f6567996cebf0b7e15a 1 parent 39950ad
@yata yata authored
Showing with 8 additions and 4 deletions.
  1. +4 −0 ChangeLog
  2. +4 −4 twittering-mode.el
View
4 ChangeLog
@@ -24,6 +24,10 @@
* twittering-mode.el (twittering-retrieve-image): Use `unless'
instead of `when'.
+ (twittering-icon-mode): Likewise.
+ (twittering-scroll-mode): Likewise.
+ (twittering-jojo-mode): Likewise.
+ (twittering-toggle-reverse-mode): Likewise.
2010-02-19 Satoshi Yatagawa <yata_github@y.hauN.org>
View
8 twittering-mode.el
@@ -341,7 +341,7 @@ icon mode; otherwise, turn off icon mode."
(if (null arg)
(not twittering-icon-mode)
(< 0 (prefix-numeric-value arg))))
- (when (not (eq prev-mode twittering-icon-mode))
+ (unless (eq prev-mode twittering-icon-mode)
(twittering-update-mode-line)
(twittering-render-timeline))))
@@ -2842,7 +2842,7 @@ variable `twittering-status-format'."
(if (null arg)
(not twittering-scroll-mode)
(< 0 (prefix-numeric-value arg))))
- (when (not (eq prev-mode twittering-scroll-mode))
+ (unless (eq prev-mode twittering-scroll-mode)
(twittering-update-mode-line))))
(defun twittering-jojo-mode (&optional arg)
@@ -2852,7 +2852,7 @@ variable `twittering-status-format'."
(if (null arg)
(not twittering-jojo-mode)
(< 0 (prefix-numeric-value arg))))
- (when (not (eq prev-mode twittering-jojo-mode))
+ (unless (eq prev-mode twittering-jojo-mode)
(twittering-update-mode-line))))
(defun twittering-toggle-reverse-mode (&optional arg)
@@ -2862,7 +2862,7 @@ variable `twittering-status-format'."
(if (null arg)
(not twittering-reverse-mode)
(< 0 (prefix-numeric-value arg))))
- (when (not (eq prev-mode twittering-reverse-mode))
+ (unless (eq prev-mode twittering-reverse-mode)
(twittering-update-mode-line))))
(defun twittering-friends-timeline ()
Please sign in to comment.
Something went wrong with that request. Please try again.