--- /dev/null
+Return-Path: <servilio@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 82780431FB6\r
+ for <notmuch@notmuchmail.org>; Fri, 3 May 2013 11:04:33 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id q99kiriR4ZkV for <notmuch@notmuchmail.org>;\r
+ Fri, 3 May 2013 11:04:28 -0700 (PDT)\r
+Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com\r
+ [209.85.223.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 0E2D4431FAF\r
+ for <notmuch@notmuchmail.org>; Fri, 3 May 2013 11:04:28 -0700 (PDT)\r
+Received: by mail-ie0-f180.google.com with SMTP id ar20so2089797iec.39\r
+ for <notmuch@notmuchmail.org>; Fri, 03 May 2013 11:04:27 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=x-received:from:to:subject:in-reply-to:references:user-agent:date\r
+ :message-id:mime-version:content-type;\r
+ bh=o/umGeqjhCUxGWJxgpA+/YnEKDBS62D5TJOBM9MqiFA=;\r
+ b=ufTe2PiBocVYj2cF8IWneBng/jULz2lg788Gcui8GxFwlNXrfp7T78AbtWf2ovc3bM\r
+ MoBws5oofrnlTWo7CjgZ1EYqgoijf53gOM1PGpCuk6YR9/UjathM2Pr7CvRoNVCc99aC\r
+ JT50fSdNj0+6bZFL1lCEJU0ww5lpfQq/W+W9kK4QFFi1a4kgu14bSkOgV/7ONvqIEzuB\r
+ /7CyybKsFviMgSO9SCVguAaArYmgLxJv05Otug3Nix3W1bwNwrzdFu9zZP1JQB7GjBh6\r
+ HhIhfUgJNL8Y8hdERmOSwCXEaelr0XCOCZxkI8a6bw0jSRUeLvVlbYVFTbKBcjjnfFEP\r
+ OVPQ==\r
+X-Received: by 10.50.120.34 with SMTP id kz2mr10615141igb.38.1367604267666;\r
+ Fri, 03 May 2013 11:04:27 -0700 (PDT)\r
+Received: from localhost (fammed-mip89.CSU.McMaster.CA. [130.113.164.106])\r
+ by mx.google.com with ESMTPSA id y5sm11183336igg.7.2013.05.03.11.04.26\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Fri, 03 May 2013 11:04:26 -0700 (PDT)\r
+From: Servilio Afre Puentes <servilio@gmail.com>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: [PATCH 1/2] emacs: hello: ask confirmation for clearing recent\r
+ searches\r
+In-Reply-To: <87y5bwkml2.fsf@goose.CSU.McMaster.CA>\r
+References: <87y5bwkml2.fsf@goose.CSU.McMaster.CA>\r
+User-Agent: Notmuch/0.15.2+10~gf347fe6 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 03 May 2013 13:57:12 -0400\r
+Message-ID: <87vc70kkuf.fsf@goose.CSU.McMaster.CA>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 03 May 2013 18:04:33 -0000\r
+\r
+\r
+The button to clear the recent searches in notmuch-hello is easy to\r
+press accidentally while moving around the, clearing potentially\r
+useful searches with no way of recovering them.\r
+---\r
+ emacs/notmuch-hello.el | 5 +++--\r
+ 1 file changed, 3 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index c1c6f4b..aa063b7 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -599,8 +599,9 @@ Complete list of currently available key bindings:\r
+ (widget-insert "Recent searches: ")\r
+ (widget-create 'push-button\r
+ :notify (lambda (&rest ignore)\r
+- (setq notmuch-search-history nil)\r
+- (notmuch-hello-update))\r
++ (when (yes-or-no-p "Are you sure you want to clear the searches? ")\r
++ (setq notmuch-search-history nil)\r
++ (notmuch-hello-update)))\r
+ "clear")\r
+ (widget-insert "\n\n")\r
+ (let ((start (point)))\r
+-- \r
+1.8.2.1\r
+\r