emacs: Use notmuch-command variable in process-lines.

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.
This commit is contained in:
Chris Gray 2011-11-29 10:58:31 -07:00 committed by David Bremner
parent 3a0a730336
commit 9e805b6a58

View file

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