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 82780431FB6
\r
6 for <notmuch@notmuchmail.org>; Fri, 3 May 2013 11:04:33 -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 q99kiriR4ZkV for <notmuch@notmuchmail.org>;
\r
17 Fri, 3 May 2013 11:04:28 -0700 (PDT)
\r
18 Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com
\r
19 [209.85.223.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 0E2D4431FAF
\r
22 for <notmuch@notmuchmail.org>; Fri, 3 May 2013 11:04:28 -0700 (PDT)
\r
23 Received: by mail-ie0-f180.google.com with SMTP id ar20so2089797iec.39
\r
24 for <notmuch@notmuchmail.org>; Fri, 03 May 2013 11:04:27 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=x-received:from:to:subject:in-reply-to:references:user-agent:date
\r
27 :message-id:mime-version:content-type;
\r
28 bh=o/umGeqjhCUxGWJxgpA+/YnEKDBS62D5TJOBM9MqiFA=;
\r
29 b=ufTe2PiBocVYj2cF8IWneBng/jULz2lg788Gcui8GxFwlNXrfp7T78AbtWf2ovc3bM
\r
30 MoBws5oofrnlTWo7CjgZ1EYqgoijf53gOM1PGpCuk6YR9/UjathM2Pr7CvRoNVCc99aC
\r
31 JT50fSdNj0+6bZFL1lCEJU0ww5lpfQq/W+W9kK4QFFi1a4kgu14bSkOgV/7ONvqIEzuB
\r
32 /7CyybKsFviMgSO9SCVguAaArYmgLxJv05Otug3Nix3W1bwNwrzdFu9zZP1JQB7GjBh6
\r
33 HhIhfUgJNL8Y8hdERmOSwCXEaelr0XCOCZxkI8a6bw0jSRUeLvVlbYVFTbKBcjjnfFEP
\r
35 X-Received: by 10.50.120.34 with SMTP id kz2mr10615141igb.38.1367604267666;
\r
36 Fri, 03 May 2013 11:04:27 -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 y5sm11183336igg.7.2013.05.03.11.04.26
\r
39 for <notmuch@notmuchmail.org>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Fri, 03 May 2013 11:04:26 -0700 (PDT)
\r
42 From: Servilio Afre Puentes <servilio@gmail.com>
\r
43 To: notmuch <notmuch@notmuchmail.org>
\r
44 Subject: [PATCH 1/2] emacs: hello: ask confirmation for clearing recent
\r
46 In-Reply-To: <87y5bwkml2.fsf@goose.CSU.McMaster.CA>
\r
47 References: <87y5bwkml2.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, 03 May 2013 13:57:12 -0400
\r
51 Message-ID: <87vc70kkuf.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, 03 May 2013 18:04:33 -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..aa063b7 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 (yes-or-no-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