mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +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)
|
(interactive)
|
||||||
(kill-all-local-variables)
|
(kill-all-local-variables)
|
||||||
(make-local-variable 'notmuch-search-query-string)
|
(make-local-variable 'notmuch-search-query-string)
|
||||||
|
(add-to-invisibility-spec 'notmuch-search)
|
||||||
(use-local-map notmuch-search-mode-map)
|
(use-local-map notmuch-search-mode-map)
|
||||||
(setq major-mode 'notmuch-search-mode
|
(setq major-mode 'notmuch-search-mode
|
||||||
mode-name "notmuch-search")
|
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 ()
|
(defun notmuch-search-hide-thread-ids ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(add-to-invisibility-spec 'notmuch-search))
|
(add-to-invisibility-spec 'notmuch-search)
|
||||||
|
(force-window-update)
|
||||||
|
(redisplay t))
|
||||||
|
|
||||||
(defun notmuch-search-show-thread-ids ()
|
(defun notmuch-search-show-thread-ids ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(remove-from-invisibility-spec 'notmuch-search))
|
(remove-from-invisibility-spec 'notmuch-search)
|
||||||
|
(force-window-update)
|
||||||
|
(redisplay t))
|
||||||
|
|
||||||
(defun notmuch-search-show-thread ()
|
(defun notmuch-search-show-thread ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Reference in a new issue