Re: [PATCH] Do not query on notmuch-search exit
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 27 Aug 2011 12:38:26 +0000 (14:38 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:19 +0000 (09:39 -0800)
7f/d939130c5c727e6f91060aefdf9f61fef869dc [new file with mode: 0644]

diff --git a/7f/d939130c5c727e6f91060aefdf9f61fef869dc b/7f/d939130c5c727e6f91060aefdf9f61fef869dc
new file mode 100644 (file)
index 0000000..ad5d31d
--- /dev/null
@@ -0,0 +1,109 @@
+Return-Path: <sojka@os.inf.tu-dresden.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id D2061431FD0\r
+       for <notmuch@notmuchmail.org>; Sat, 27 Aug 2011 05:38:33 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id cm5gnuDQtzQx for <notmuch@notmuchmail.org>;\r
+       Sat, 27 Aug 2011 05:38:32 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8C844431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 27 Aug 2011 05:38:32 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 525DA3CFE72;\r
+       Sat, 27 Aug 2011 14:38:31 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id Z3LTWnsU1Nb9; Sat, 27 Aug 2011 14:38:30 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 333D419F333A;\r
+       Sat, 27 Aug 2011 14:38:27 +0200 (CEST)\r
+Received: from steelpick.2x.cz (unknown [141.76.49.12])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id E6C5BFA003;\r
+       Sat, 27 Aug 2011 14:38:26 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.76)\r
+       (envelope-from <sojka@os.inf.tu-dresden.de>)\r
+       id 1QxI9a-0007gS-Il; Sat, 27 Aug 2011 14:38:26 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] Do not query on notmuch-search exit\r
+In-Reply-To: <874o17wvd3.fsf@servo.factory.finestructure.net>\r
+References: <877h65dwcy.fsf@steelpick.2x.cz>\r
+       <1314044943-3417-1-git-send-email-sojkam1@fel.cvut.cz>\r
+       <874o17wvd3.fsf@servo.factory.finestructure.net>\r
+User-Agent: Notmuch/0.6.1-96-g451f68f (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 27 Aug 2011 14:38:26 +0200\r
+Message-ID: <87bovbav25.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 27 Aug 2011 12:38:34 -0000\r
+\r
+On Tue, 23 Aug 2011, Jameson Graef Rollins wrote:\r
+> On Mon, 22 Aug 2011 22:29:03 +0200, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+> > -    (set-process-filter proc 'notmuch-search-process-filter))))\r
+> > +    (set-process-filter proc 'notmuch-search-process-filter)\r
+> > +    (set-process-query-on-exit-flag proc nil)))\r
+> > +      )\r
+> \r
+> As very minor stylistic point, I think we tend to group all closing\r
+> parens together on the same line.  Otherwise I think this patch looks\r
+> great.\r
+\r
+Hi,\r
+\r
+here is the version without standalone paren. (Note: This patch can be\r
+applied directly with 'git am -c').\r
+\r
+-Michal\r
+\r
+--8<---------------cut here---------------start------------->8---\r
+Emacs 23.2 queries by default about killing existing processes. This\r
+is annoying when one wants to interrupt long search with 'q' key.\r
+Disable this behavior for notmuch.\r
+---\r
+ emacs/notmuch.el |    3 ++-\r
+ 1 files changed, 2 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 3d82f0d..4430219 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -858,7 +858,8 @@ The optional parameters are used as follows:\r
+                      "--sort=newest-first")\r
+                    query)))\r
+         (set-process-sentinel proc 'notmuch-search-process-sentinel)\r
+-        (set-process-filter proc 'notmuch-search-process-filter))))\r
++        (set-process-filter proc 'notmuch-search-process-filter)\r
++        (set-process-query-on-exit-flag proc nil))))\r
+     (run-hooks 'notmuch-search-hook)))\r
\r
+ (defun notmuch-search-refresh-view ()\r
+-- \r
+1.7.5.4\r
+\r
+--8<---------------cut here---------------end--------------->8---\r