Skip to content

Commit

Permalink
Fix `twittering-switch-timeline' to adjust the timeline spec string.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-switch-timeline): adjust the
current timeline spec string to the given `spec-string' even if
they mean the same timeline.
  • Loading branch information
cvmat committed Feb 15, 2010
1 parent 2c1fe65 commit cb40b7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -10,6 +10,10 @@
* twittering-mode.el (twittering-current-timeline): keep the
current timeline spec string.

* twittering-mode.el (twittering-switch-timeline): adjust the
current timeline spec string to the given `spec-string' even if
they mean the same timeline.

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

* twittering-mode.el (twittering-get-usernames-from-timeline): new
Expand Down
5 changes: 3 additions & 2 deletions twittering-mode.el
Expand Up @@ -978,8 +978,9 @@ Return nil if SPEC-STR is invalid as a timeline spec."
(let* ((current (twittering-current-timeline-spec-string))
(same-timeline
(twittering-equal-string-as-timeline current spec-string)))
(unless same-timeline
(twittering-set-current-timeline-spec-string spec-string))
;; Adjust the current timeline spec string to `spec-string'
;; even if they mean the same timeline.
(twittering-set-current-timeline-spec-string spec-string)
(twittering-render-timeline same-timeline)))

;;;
Expand Down

0 comments on commit cb40b7b

Please sign in to comment.