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