From: Carl Worth Date: Wed, 4 Nov 2009 00:46:27 +0000 (-0800) Subject: notmuch-el: Fix implementation of show/hide-thread-ids. X-Git-Tag: 0.1~603 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f04059b332688672fc399accac8c0863f6ff2ae;p=notmuch.git 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). --- 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)