Skip to content

Commit

Permalink
`twittering-goto-previous-status' is simplified.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-goto-previous-status): simplified.
  • Loading branch information
cvmat committed Feb 9, 2010
1 parent 08ca7ae commit c9f314a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2010-02-09 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-goto-previous-status): simplified.

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

* twittering-mode.el (twittering-http-default-sentinel): Delete a
Expand Down
5 changes: 2 additions & 3 deletions twittering-mode.el
Expand Up @@ -2911,9 +2911,8 @@ The return value is nil or a positive integer greater than POS."
(defun twittering-goto-previous-status ()
"Go to previous status."
(interactive)
(let* ((current-pos (point))
(prev-pos (twittering-get-previous-status-head current-pos)))
(if (and prev-pos (not (eq current-pos prev-pos)))
(let ((prev-pos (twittering-get-previous-status-head)))
(if prev-pos
(goto-char prev-pos)
(message "Start of status."))))

Expand Down

0 comments on commit c9f314a

Please sign in to comment.