From cb40b7b204d58074a9cf89b46999c9029824bd2d Mon Sep 17 00:00:00 2001 From: Tadashi MATSUO Date: Mon, 15 Feb 2010 19:22:52 +0900 Subject: [PATCH] Fix `twittering-switch-timeline' to adjust the 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. --- ChangeLog | 4 ++++ twittering-mode.el | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b9d47462..d62f76fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 * twittering-mode.el (twittering-get-usernames-from-timeline): new diff --git a/twittering-mode.el b/twittering-mode.el index 4b2551f3..a28ae88a 100644 --- a/twittering-mode.el +++ b/twittering-mode.el @@ -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))) ;;;