Skip to content

Commit

Permalink
'twittering-update-mode-line' shows the current timeline spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
cvmat committed Dec 20, 2009
1 parent 8b6db1f commit 0fb6305
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -252,6 +252,9 @@
* twittering-mode.el (twittering-get-host-method-from-timeline-spec)
(twittering-get-timeline-spec): Add new functions for timeline
specification.
(twittering-update-mode-line): Shows timeline specification.
(twittering-render-timeline): Invokes
`twittering-update-mode-line' to update the mode-line.

2009-12-20 Yuto Hayamizu <y.hayamizu@gmail.com>

Expand Down
6 changes: 4 additions & 2 deletions twittering-mode.el
Expand Up @@ -619,7 +619,8 @@ Otherwise, they are retrieved by `url-retrieve'.")

(defun twittering-update-mode-line ()
"Update mode line"
(let (enabled-options)
(let ((enabled-options nil)
(timeline-spec (twittering-get-timeline-spec)))
(when twittering-jojo-mode
(push "jojo" enabled-options))
(when twittering-icon-mode
Expand All @@ -631,7 +632,7 @@ Otherwise, they are retrieved by `url-retrieve'.")
(when twittering-use-ssl
(push "ssl" enabled-options))
(setq mode-name
(concat twittering-mode-string
(concat twittering-mode-string ":" timeline-spec
(if enabled-options
(concat "["
(mapconcat 'identity enabled-options ",")
Expand Down Expand Up @@ -1311,6 +1312,7 @@ If STATUS-DATUM is already in DATA-VAR, return nil. If not, return t."
(with-current-buffer (twittering-buffer)
(let ((point (point))
(end (point-max)))
(twittering-update-mode-line)
(setq buffer-read-only nil)
(erase-buffer)
(mapc (lambda (status)
Expand Down

0 comments on commit 0fb6305

Please sign in to comment.