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 A7FA2431FD0 for ; Mon, 22 Aug 2011 13:29:56 -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 KVPWG8kCWsD4 for ; Mon, 22 Aug 2011 13:29:56 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 448FF431FB6 for ; Mon, 22 Aug 2011 13:29:56 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 9143D3CFE73; Mon, 22 Aug 2011 22:29:55 +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 VnExdYc0W7Y0; Mon, 22 Aug 2011 22:29:54 +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 A4F153CFE72; Mon, 22 Aug 2011 22:29:54 +0200 (CEST) Received: from steelpick.2x.cz (cable-86-56-4-108.cust.telecolumbus.net [86.56.4.108]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id A47A7FA003; Mon, 22 Aug 2011 22:29:54 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.76) (envelope-from ) id 1Qvb85-0000tr-Fp; Mon, 22 Aug 2011 22:29:53 +0200 From: Michal Sojka To: notmuch@notmuchmail.org Subject: [PATCH] Do not query on notmuch-search exit Date: Mon, 22 Aug 2011 22:29:03 +0200 Message-Id: <1314044943-3417-1-git-send-email-sojkam1@fel.cvut.cz> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <877h65dwcy.fsf@steelpick.2x.cz> References: <877h65dwcy.fsf@steelpick.2x.cz> 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: Mon, 22 Aug 2011 20:29:56 -0000 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 | 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