]> git.notmuchmail.org Git - notmuch/commitdiff
contrib: pick: bugfix. use notmuch-show-only-matching-messages rather than prefix
authorMark Walters <markwalters1009@gmail.com>
Sat, 1 Jun 2013 21:51:31 +0000 (22:51 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Jun 2013 23:52:41 +0000 (20:52 -0300)
Previously pick set a prefix argument prior to calling show in the
message pane to tell show to only show matching messages. This sets
notmuch-show-only-matching-messages instead which is much cleaner and
will work even if the user has configured show to default to showing
only matching messages.

contrib/notmuch-pick/notmuch-pick.el

index 33905d6135e84a7e3b316b61886b7a12935f2905..b03c9dde01fb8533209c0836c62c5dd459d29789 100644 (file)
@@ -376,8 +376,8 @@ Does NOT change the database."
            (split-window-vertically (/ (window-height) 4)))
       (with-selected-window notmuch-pick-message-window
        ;; Since we are only displaying one message do not indent.
-       (let ((notmuch-show-indent-messages-width 0))
-         (setq current-prefix-arg '(4))
+       (let ((notmuch-show-indent-messages-width 0)
+             (notmuch-show-only-matching-messages t))
          (setq buffer (notmuch-show id nil nil nil))))
       ;; We need the `let' as notmuch-pick-message-window is buffer local.
       (let ((window notmuch-pick-message-window))