emacs: Fix notmuch-show-pipe-message to use notmuch-command variable
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 6 Nov 2010 23:09:18 +0000 (00:09 +0100)
committerCarl Worth <cworth@cworth.org>
Sun, 7 Nov 2010 00:17:40 +0000 (17:17 -0700)
Previously notmuch command name was hardcoded into this function,
which made remote use of pipe command impossible.

emacs/notmuch-show.el

index 3daa8685a46f3df1f283acba947dc819c8e69a0b..ae483dde5cd0041304aa6c3f8f6e21948afee95d 100644 (file)
@@ -937,12 +937,13 @@ than only the current message."
   (let (shell-command)
     (if entire-thread
        (setq shell-command 
-             (concat "notmuch show --format=mbox "
+             (concat notmuch-command " show --format=mbox "
                      (shell-quote-argument
                       (mapconcat 'identity (notmuch-show-get-message-ids-for-open-messages) " OR "))
                      " | " command))
       (setq shell-command
-           (concat "notmuch show --format=raw " (shell-quote-argument (notmuch-show-get-message-id)) " | " command)))
+           (concat notmuch-command " show --format=raw "
+                   (shell-quote-argument (notmuch-show-get-message-id)) " | " command)))
     (start-process-shell-command "notmuch-pipe-command" "*notmuch-pipe*" shell-command)))
 
 (defun notmuch-show-add-tags-worker (current-tags add-tags)