unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Use notmuch-command variable in process-lines.
@ 2011-11-29 17:58 Chris Gray
  2011-11-29 19:15 ` Jani Nikula
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Chris Gray @ 2011-11-29 17:58 UTC (permalink / raw)
  To: notmuch

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index f15a75b..8936149 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -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
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] emacs: Use notmuch-command variable in process-lines.
  2011-11-29 17:58 [PATCH] emacs: Use notmuch-command variable in process-lines Chris Gray
@ 2011-11-29 19:15 ` Jani Nikula
  2011-11-29 21:20 ` Dmitry Kurochkin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jani Nikula @ 2011-11-29 19:15 UTC (permalink / raw)
  To: Chris Gray, notmuch


Good catch, looks good to me.

BR,
Jani.

On Tue, 29 Nov 2011 10:58:31 -0700, Chris Gray <chrismgray@gmail.com> wrote:
> 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 |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index f15a75b..8936149 100644
> --- a/emacs/notmuch.el
> +++ b/emacs/notmuch.el
> @@ -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
> -- 
> 1.7.7.3
> 
> 
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] emacs: Use notmuch-command variable in process-lines.
  2011-11-29 17:58 [PATCH] emacs: Use notmuch-command variable in process-lines Chris Gray
  2011-11-29 19:15 ` Jani Nikula
@ 2011-11-29 21:20 ` Dmitry Kurochkin
  2011-11-30  8:10 ` Tomi Ollila
  2011-12-01  1:34 ` David Bremner
  3 siblings, 0 replies; 5+ messages in thread
From: Dmitry Kurochkin @ 2011-11-29 21:20 UTC (permalink / raw)
  To: Chris Gray, notmuch

+1

Regards,
  Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] emacs: Use notmuch-command variable in process-lines.
  2011-11-29 17:58 [PATCH] emacs: Use notmuch-command variable in process-lines Chris Gray
  2011-11-29 19:15 ` Jani Nikula
  2011-11-29 21:20 ` Dmitry Kurochkin
@ 2011-11-30  8:10 ` Tomi Ollila
  2011-12-01  1:34 ` David Bremner
  3 siblings, 0 replies; 5+ messages in thread
From: Tomi Ollila @ 2011-11-30  8:10 UTC (permalink / raw)
  To: Chris Gray, notmuch

On Tue, 29 Nov 2011 10:58:31 -0700, Chris Gray <chrismgray@gmail.com> wrote:
> 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.

anyone who modifies notmuch-command variable may get affected by this
bug so I vote for quick inclusion.

Tomi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] emacs: Use notmuch-command variable in process-lines.
  2011-11-29 17:58 [PATCH] emacs: Use notmuch-command variable in process-lines Chris Gray
                   ` (2 preceding siblings ...)
  2011-11-30  8:10 ` Tomi Ollila
@ 2011-12-01  1:34 ` David Bremner
  3 siblings, 0 replies; 5+ messages in thread
From: David Bremner @ 2011-12-01  1:34 UTC (permalink / raw)
  To: Chris Gray, notmuch

On Tue, 29 Nov 2011 10:58:31 -0700, Chris Gray <chrismgray@gmail.com> wrote:
> 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.

Pushed, thanks.

d

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-01  1:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 17:58 [PATCH] emacs: Use notmuch-command variable in process-lines Chris Gray
2011-11-29 19:15 ` Jani Nikula
2011-11-29 21:20 ` Dmitry Kurochkin
2011-11-30  8:10 ` Tomi Ollila
2011-12-01  1:34 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).