From 3f04059b332688672fc399accac8c0863f6ff2ae Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 3 Nov 2009 16:46:27 -0800 Subject: [PATCH] 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). --- notmuch.el | 9 +++++++-- 1 file 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) -- 2.43.0