aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-03 16:46:27 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-03 16:46:27 -0800
commit3f04059b332688672fc399accac8c0863f6ff2ae (patch)
tree953f9261a03843e6bfcba0fa430091a97736d364 /notmuch.el
parent0bec4692b6136eea3116d040a0e644f4bfddc433 (diff)
notmuch-el: Fix implementation of show/hide-thread-ids.
I'm definitely more comfortable with the add-to-invisibility-spec now than I was when I first wrote these functions, (which weren't working at all).
Diffstat (limited to 'notmuch.el')
-rw-r--r--notmuch.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/notmuch.el b/notmuch.el
index 0fb6e5f8..3193ddb4 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -363,6 +363,7 @@ Does nothing if already on the first message in the buffer."
(interactive)
(kill-all-local-variables)
(make-local-variable 'notmuch-search-query-string)
+ (add-to-invisibility-spec 'notmuch-search)
(use-local-map notmuch-search-mode-map)
(setq major-mode 'notmuch-search-mode
mode-name "notmuch-search")
@@ -391,11 +392,15 @@ Does nothing if already on the first message in the buffer."
(defun notmuch-search-hide-thread-ids ()
(interactive)
- (add-to-invisibility-spec 'notmuch-search))
+ (add-to-invisibility-spec 'notmuch-search)
+ (force-window-update)
+ (redisplay t))
(defun notmuch-search-show-thread-ids ()
(interactive)
- (remove-from-invisibility-spec 'notmuch-search))
+ (remove-from-invisibility-spec 'notmuch-search)
+ (force-window-update)
+ (redisplay t))
(defun notmuch-search-show-thread ()
(interactive)