Skip to content

Commit

Permalink
After retrieval, only new statuses are rendered additionally.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-render-timeline): receive
`timeline-data' as an optional argument.
(twittering-http-get-default-sentinel): invoke
`twittering-render-timeline' with new statuses.
  • Loading branch information
cvmat committed Feb 15, 2010
1 parent e4bdc62 commit b7e476f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Expand Up @@ -19,6 +19,11 @@
(twittering-add-statuses-to-timeline-data): return newly retrieved
statuses.

* twittering-mode.el (twittering-render-timeline): receive
`timeline-data' as an optional argument.
(twittering-http-get-default-sentinel): invoke
`twittering-render-timeline' with new statuses.

2010-02-14 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-get-usernames-from-timeline): new
Expand Down
7 changes: 4 additions & 3 deletions twittering-mode.el
Expand Up @@ -1709,7 +1709,7 @@ Available keywords:
;; retrieved all un-retrieved statuses.
(when (and new-statuses
(equal spec (twittering-current-timeline-spec)))
(twittering-render-timeline t))
(twittering-render-timeline t new-statuses))
(twittering-add-timeline-history)))
(if twittering-notify-successful-http-get
(if suc-msg suc-msg "Success: Get.")
Expand Down Expand Up @@ -2145,9 +2145,10 @@ BUFFER may be a buffer or the name of an existing buffer."
;;; display functions
;;;

(defun twittering-render-timeline (&optional additional)
(defun twittering-render-timeline (&optional additional timeline-data)
(with-current-buffer (twittering-buffer)
(let* ((timeline-data (twittering-current-timeline-data))
(let* ((timeline-data (or timeline-data
(twittering-current-timeline-data)))
(window-list (get-buffer-window-list (current-buffer) nil t))
(point-window-list
(mapcar (lambda (window)
Expand Down

0 comments on commit b7e476f

Please sign in to comment.