mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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).
This commit is contained in:
parent
0bec4692b6
commit
3f04059b33
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue