1 Return-Path: <servilio@gmail.com>
\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 731D1431FAF
\r
6 for <notmuch@notmuchmail.org>; Fri, 7 Jun 2013 14:04:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id dVjkghV6Hk2q for <notmuch@notmuchmail.org>;
\r
17 Fri, 7 Jun 2013 14:04:11 -0700 (PDT)
\r
18 Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com
\r
19 [209.85.214.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id E4DAF431FAE
\r
22 for <notmuch@notmuchmail.org>; Fri, 7 Jun 2013 14:04:10 -0700 (PDT)
\r
23 Received: by mail-ob0-f180.google.com with SMTP id eh20so7059916obb.25
\r
24 for <notmuch@notmuchmail.org>; Fri, 07 Jun 2013 14:04:10 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
27 :mime-version:content-type;
\r
28 bh=7O47EGbFt2J2wn5HVCCwIn8mZxs+nNJP5l9xftfWbcg=;
\r
29 b=ZG+qVaK4OsLzAH2CyIiDQm/3m7Zv42hn0rcx5vENyFs0iUDcNRNGS0/FAhoSJ+BhrS
\r
30 FwQv/ktlsGwfYCFNouWfwtYrgSEJSG1zePbQEokusITtgamL2cwJJFrTbZDJvWjdHWSD
\r
31 mmC9+j3fV2dlVmQ/Dokx/M2t1B49IQ64jMsgqc4ZGANmu0fBPvqT+PMFgIwgvJxuXhY0
\r
32 8Mw+eV2vGkbIggq0FpStcNoiIfdZQWySo2YX8/9NsH8tJpGVRhwrM2k8sCnO9YCaJIHc
\r
33 Oz/u4A3nERbpKXxtVNeIZRRdNPSshRJ1hbCukOuGvc0ClINsPxM1ULJODDDP35xSRwIi
\r
35 X-Received: by 10.60.125.5 with SMTP id mm5mr320544oeb.81.1370639050442;
\r
36 Fri, 07 Jun 2013 14:04:10 -0700 (PDT)
\r
37 Received: from localhost (fammed-mip89.CSU.McMaster.CA. [130.113.164.106])
\r
38 by mx.google.com with ESMTPSA id jt9sm692939obc.0.2013.06.07.14.04.09
\r
39 for <notmuch@notmuchmail.org>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Fri, 07 Jun 2013 14:04:09 -0700 (PDT)
\r
42 From: Servilio Afre Puentes <servilio@gmail.com>
\r
43 To: notmuch <notmuch@notmuchmail.org>
\r
44 Subject: [PATCH v2 1/2] emacs: hello: ask confirmation for clearing recent
\r
46 In-Reply-To: <87sj0t7idi.fsf@goose.CSU.McMaster.CA>
\r
47 References: <87sj0t7idi.fsf@goose.CSU.McMaster.CA>
\r
48 User-Agent: Notmuch/0.15.2+10~gf347fe6 (http://notmuchmail.org) Emacs/24.3.1
\r
49 (x86_64-pc-linux-gnu)
\r
50 Date: Fri, 07 Jun 2013 16:55:57 -0400
\r
51 Message-ID: <87ppvx7i8y.fsf@goose.CSU.McMaster.CA>
\r
53 Content-Type: text/plain
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Fri, 07 Jun 2013 21:04:18 -0000
\r
69 The button to clear the recent searches in notmuch-hello is easy to
\r
70 press accidentally while moving around the, clearing potentially
\r
71 useful searches with no way of recovering them.
\r
73 emacs/notmuch-hello.el | 5 +++--
\r
74 1 file changed, 3 insertions(+), 2 deletions(-)
\r
76 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
77 index c1c6f4b..1ad1bea 100644
\r
78 --- a/emacs/notmuch-hello.el
\r
79 +++ b/emacs/notmuch-hello.el
\r
80 @@ -599,8 +599,9 @@ Complete list of currently available key bindings:
\r
81 (widget-insert "Recent searches: ")
\r
82 (widget-create 'push-button
\r
83 :notify (lambda (&rest ignore)
\r
84 - (setq notmuch-search-history nil)
\r
85 - (notmuch-hello-update))
\r
86 + (when (y-or-n-p "Are you sure you want to clear the searches? ")
\r
87 + (setq notmuch-search-history nil)
\r
88 + (notmuch-hello-update)))
\r
90 (widget-insert "\n\n")
\r
91 (let ((start (point)))
\r