]> git.notmuchmail.org Git - notmuch/commitdiff
contrib: pick: update notmuch-show calls
authorMark Walters <markwalters1009@gmail.com>
Sun, 13 Oct 2013 07:49:00 +0000 (08:49 +0100)
committerDavid Bremner <bremner@debian.org>
Mon, 14 Oct 2013 11:26:37 +0000 (08:26 -0300)
Remove some unneeded nil arguments in notmuch-show calls.

contrib/notmuch-pick/notmuch-pick.el

index 0aa651ee7f4513a19d5732058ccc630c9dc78059..a492214d5b0a122864cdedd80c79d216fd123773 100644 (file)
@@ -461,7 +461,7 @@ Does NOT change the database."
        ;; Since we are only displaying one message do not indent.
        (let ((notmuch-show-indent-messages-width 0)
              (notmuch-show-only-matching-messages t))
        ;; Since we are only displaying one message do not indent.
        (let ((notmuch-show-indent-messages-width 0)
              (notmuch-show-only-matching-messages t))
-         (setq buffer (notmuch-show id nil nil nil))))
+         (setq buffer (notmuch-show id))))
       ;; We need the `let' as notmuch-pick-message-window is buffer local.
       (let ((window notmuch-pick-message-window))
        (with-current-buffer buffer
       ;; We need the `let' as notmuch-pick-message-window is buffer local.
       (let ((window notmuch-pick-message-window))
        (with-current-buffer buffer
@@ -480,7 +480,7 @@ Does NOT change the database."
     (when id
       ;; We close the window to kill off un-needed buffers.
       (notmuch-pick-close-message-window)
     (when id
       ;; We close the window to kill off un-needed buffers.
       (notmuch-pick-close-message-window)
-      (notmuch-show id nil nil nil))))
+      (notmuch-show id))))
 
 (defun notmuch-pick-show-message (arg)
   "Show the current message.
 
 (defun notmuch-pick-show-message (arg)
   "Show the current message.