Re: [PATCH 1/2] Add Google Inc. to AUTHORS as a contributor.
[notmuch-archives.git] / ff / cd7c39ec45507d40054b29be088659f98889e5
1 Return-Path: <sojkam1@fel.cvut.cz>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 488BD431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 22 Aug 2011 06:49:37 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id qBHbHgruklyI for <notmuch@notmuchmail.org>;\r
16         Mon, 22 Aug 2011 06:49:36 -0700 (PDT)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 6EE29431FB6\r
19         for <notmuch@notmuchmail.org>; Mon, 22 Aug 2011 06:49:36 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 9AC6719F2F44;\r
22         Mon, 22 Aug 2011 15:49:35 +0200 (CEST)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id UHWBsMTqvybf; Mon, 22 Aug 2011 15:49:34 +0200 (CEST)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 558E119F2F36;\r
30         Mon, 22 Aug 2011 15:49:34 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (unknown [141.76.49.12])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 5F379FA003;\r
34         Mon, 22 Aug 2011 15:49:34 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.76)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1QvUsf-0002ec-TQ; Mon, 22 Aug 2011 15:49:33 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH] Do not query on notmuch-search exit\r
41 Date: Mon, 22 Aug 2011 15:49:21 +0200\r
42 Message-Id: <1314020961-10172-1-git-send-email-sojkam1@fel.cvut.cz>\r
43 X-Mailer: git-send-email 1.7.5.4\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Mon, 22 Aug 2011 13:49:37 -0000\r
57 \r
58 Emacs 23.2 queries by default about killing existing processes. This\r
59 is annoying when one wants to interrupt long search with 'q' key.\r
60 Disable this behavior for notmuch.\r
61 --\r
62 \r
63 I'm resending this again as jrollins requested in\r
64 id:"871uwhz228.fsf@servo.factory.finestructure.net". Can anyone check\r
65 whether this works with emacs earlier than 23.2 or whether we need\r
66 to check for version or something in the code?\r
67 \r
68 -Michal\r
69 \r
70 \r
71  emacs/notmuch.el |    4 +++-\r
72  1 files changed, 3 insertions(+), 1 deletions(-)\r
73 \r
74 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
75 index 3d82f0d..8858f3e 100644\r
76 --- a/emacs/notmuch.el\r
77 +++ b/emacs/notmuch.el\r
78 @@ -858,7 +858,9 @@ The optional parameters are used as follows:\r
79                        "--sort=newest-first")\r
80                      query)))\r
81           (set-process-sentinel proc 'notmuch-search-process-sentinel)\r
82 -         (set-process-filter proc 'notmuch-search-process-filter))))\r
83 +         (set-process-filter proc 'notmuch-search-process-filter)\r
84 +         (set-process-query-on-exit-flag proc nil)))\r
85 +      )\r
86      (run-hooks 'notmuch-search-hook)))\r
87  \r
88  (defun notmuch-search-refresh-view ()\r
89 -- \r
90 1.7.5.4\r
91 \r