]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Use notmuch-command variable in process-lines.
authorChris Gray <chrismgray@gmail.com>
Tue, 29 Nov 2011 17:58:31 +0000 (10:58 -0700)
committerDavid Bremner <bremner@debian.org>
Thu, 1 Dec 2011 01:19:44 +0000 (17:19 -0800)
The process-lines function calls the notmuch binary.  The location of
the binary may have been customized by the user, so it is better to
use the customized location rather than allowing the process-lines
function to search the user's PATH for the binary.

emacs/notmuch.el

index f15a75b1bd30aa25a55b0b9a65e3833c0331045f..89361498f8e27b38ad769667c17794485c051f31 100644 (file)
@@ -885,7 +885,7 @@ PROMPT is the string to prompt with."
                      "subject:" "attachment:")
                (mapcar (lambda (tag)
                          (concat "tag:" tag))
-                       (process-lines "notmuch" "search" "--output=tags" "*")))))
+                       (process-lines notmuch-command "search" "--output=tags" "*")))))
     (let ((keymap (copy-keymap minibuffer-local-map))
          (minibuffer-completion-table
           (completion-table-dynamic