unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Do not query on notmuch-search exit
@ 2011-08-22 13:49 Michal Sojka
  2011-08-22 14:28 ` Tomi Ollila
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Michal Sojka @ 2011-08-22 13:49 UTC (permalink / raw)
  To: notmuch

Emacs 23.2 queries by default about killing existing processes. This
is annoying when one wants to interrupt long search with 'q' key.
Disable this behavior for notmuch.
--

I'm resending this again as jrollins requested in
id:"871uwhz228.fsf@servo.factory.finestructure.net". Can anyone check
whether this works with emacs earlier than 23.2 or whether we need
to check for version or something in the code?

-Michal


 emacs/notmuch.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 3d82f0d..8858f3e 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -858,7 +858,9 @@ The optional parameters are used as follows:
 		       "--sort=newest-first")
 		     query)))
 	  (set-process-sentinel proc 'notmuch-search-process-sentinel)
-	  (set-process-filter proc 'notmuch-search-process-filter))))
+	  (set-process-filter proc 'notmuch-search-process-filter)
+	  (set-process-query-on-exit-flag proc nil)))
+      )
     (run-hooks 'notmuch-search-hook)))
 
 (defun notmuch-search-refresh-view ()
-- 
1.7.5.4

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

end of thread, other threads:[~2011-11-11  0:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 13:49 [PATCH] Do not query on notmuch-search exit Michal Sojka
2011-08-22 14:28 ` Tomi Ollila
2011-08-22 15:11   ` Tomi Ollila
2011-08-22 16:14     ` Michal Sojka
2011-08-22 17:03 ` Jameson Graef Rollins
2011-08-22 20:28   ` Michal Sojka
2011-08-22 20:29     ` Michal Sojka
2011-08-23 23:39       ` Jameson Graef Rollins
2011-08-27 12:38         ` Michal Sojka
2011-10-09  3:46           ` Jameson Graef Rollins
2011-11-11  0:19             ` Pieter Praet
2011-08-22 18:39 ` James Vasile

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).