]> git.notmuchmail.org Git - notmuch/commitdiff
Do not query on notmuch-search exit
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 27 Aug 2011 12:38:26 +0000 (14:38 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 8 Nov 2011 18:25:07 +0000 (14:25 -0400)
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.

emacs/notmuch.el

index bb7565cbb797f3d8d2fea8a6933e9a5453531ae0..456c78308661edc479dfc3072230aa359effbbea 100644 (file)
@@ -951,7 +951,8 @@ 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 ()