Skip to content

Commit

Permalink
(twittering-goto-next-status): show a progress message.
Browse files Browse the repository at this point in the history
(twittering-goto-previous-status): likewise.
  • Loading branch information
yata committed Mar 10, 2010
1 parent 9c17c0d commit f5e4d0d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -6,6 +6,10 @@
* twittering-mode.el (twittering-mode-map): Use `kbd' macro same
as other keymaps.

* twittering-mode.el (twittering-goto-next-status): Show a
progress message.
(twittering-goto-previous-status): Likewise.

2010-03-09 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-redisplay-status-on-buffer): call
Expand Down
18 changes: 10 additions & 8 deletions twittering-mode.el
Expand Up @@ -3631,10 +3631,11 @@ Return nil if no statuses are rendered."
(let ((prev (twittering-get-previous-status-head)))
(when prev
(get-text-property prev 'id))))))
(if id
(twittering-get-and-render-timeline
(twittering-current-timeline-spec)
nil id)))))))
(when id
(message "Get more previous timeline...")
(twittering-get-and-render-timeline
(twittering-current-timeline-spec)
nil id)))))))

(defun twittering-get-next-status-head (&optional pos)
"Search forward from POS for the nearest head of a status.
Expand All @@ -3659,10 +3660,11 @@ The return value is nil or a positive integer greater than POS."
(let ((next (twittering-get-next-status-head)))
(when next
(get-text-property next 'id))))))
(if id
(twittering-get-and-render-timeline
(twittering-current-timeline-spec-string)
nil id))))
(when id
(message "Get more previous timeline...")
(twittering-get-and-render-timeline
(twittering-current-timeline-spec-string)
nil id))))
(t
(message "The latest status.")))))

Expand Down

0 comments on commit f5e4d0d

Please sign in to comment.