--- /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 53D6F431FB6\r
+ for <notmuch@notmuchmail.org>; Fri, 3 May 2013 11:11:02 -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 JSCGfNaJQJsy for <notmuch@notmuchmail.org>;\r
+ Fri, 3 May 2013 11:10:56 -0700 (PDT)\r
+Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com\r
+ [209.85.223.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id D396B431FAF\r
+ for <notmuch@notmuchmail.org>; Fri, 3 May 2013 11:10:56 -0700 (PDT)\r
+Received: by mail-ie0-f182.google.com with SMTP id a14so2142023iee.13\r
+ for <notmuch@notmuchmail.org>; Fri, 03 May 2013 11:10:55 -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:content-transfer-encoding;\r
+ bh=GURfr1DyEIc1D6a5L9fBi/rrs1MRepT1JbVLAGHwbJA=;\r
+ b=aNuJ97kys3YgHQdnnwMiWK7YTuW5xcnRKVSySW1PZVFaHBVFzy6uWyQcLtYn+uIeRf\r
+ MyR0ZzZDyR+CsQs/p260IUPMnOvnnuvVRyHoxA3IwAnea0QgDK7xdrsxxYPkGa+XyVAq\r
+ X/hLKzrogaHRLg6eCDqCNi99irCA8eF9DQEFKB1W6oNyzEXu0rGKhHM09NLOrDHZYQ5B\r
+ Hz/oDD09a4ocxY1Oj6QDDualzKPhZBtAsxHCG1cej0mrmeEiQpUMN7M2Rr9hDdJxH/US\r
+ TA8G62Ze7AudltmJV3xvKLfgivCgFrUEW0qDIcNfZnH5Fny8lntNg0Xly0PwbfjIQ1sf\r
+ Br5A==\r
+X-Received: by 10.50.70.9 with SMTP id i9mr16908662igu.60.1367604342799;\r
+ Fri, 03 May 2013 11:05:42 -0700 (PDT)\r
+Received: from localhost (fammed-mip89.CSU.McMaster.CA. [130.113.164.106])\r
+ by mx.google.com with ESMTPSA id c2sm34235778igv.1.2013.05.03.11.05.41\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Fri, 03 May 2013 11:05:41 -0700 (PDT)\r
+From: Servilio Afre Puentes <servilio@gmail.com>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: [PATCH 2/2] emacs: hello: allow deleting individual searches in the\r
+ history\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:58:27 -0400\r
+Message-ID: <87sj24kksc.fsf@goose.CSU.McMaster.CA>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\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:11:02 -0000\r
+\r
+\r
+This commit adds an extra button at the end of the search entries that\r
+allows deleting that individual search from the history. A short\r
+confirmation (=C2=ABy=C2=BB or =C2=ABn=C2=BB) is made before taking action.\r
+---\r
+ emacs/notmuch-hello.el | 26 ++++++++++++++++++++++++--\r
+ 1 file changed, 24 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index aa063b7..9fbbdc9 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -286,6 +286,16 @@ afterwards.")\r
+ (message "Saved '%s' as '%s'." search name)\r
+ (notmuch-hello-update)))\r
+=20\r
++(defun notmuch-hello-delete-search-from-history (widget)\r
++ (interactive)\r
++ (let ((search (widget-value\r
++ (symbol-value\r
++ (widget-get widget :notmuch-saved-search-widget)))))\r
++ (setq notmuch-search-history (delete search\r
++ notmuch-search-history))\r
++ (notmuch-hello-update)\r
++ ))\r
++\r
+ (defun notmuch-hello-longest-label (searches-alist)\r
+ (or (loop for elem in searches-alist\r
+ maximize (length (car elem)))\r
+@@ -624,7 +634,12 @@ Complete list of currently available key bindings:\r
+ ;; `[save]' button. 6\r
+ ;; for the `[save]'\r
+ ;; button.\r
+- 1 6))\r
++ 1 6\r
++ ;; 1 for the space\r
++ ;; before the `[del]'\r
++ ;; button. 5 for the\r
++ ;; `[del]' button.\r
++ 1 5))\r
+ :action (lambda (widget &rest ignore)\r
+ (notmuch-hello-search (widget-value widget)))\r
+ search))\r
+@@ -633,7 +648,14 @@ Complete list of currently available key bindings:\r
+ :notify (lambda (widget &rest ignore)\r
+ (notmuch-hello-add-saved-search widget))\r
+ :notmuch-saved-search-widget widget-symbol\r
+- "save"))\r
++ "save")\r
++ (widget-insert " ")\r
++ (widget-create 'push-button\r
++ :notify (lambda (widget &rest ignore)\r
++ (when (y-or-n-p "Are you sure you want to delete this search? ")\r
++ (notmuch-hello-delete-search-from-history widget)))\r
++ :notmuch-saved-search-widget widget-symbol\r
++ "del"))\r
+ (widget-insert "\n"))\r
+ (indent-rigidly start (point) notmuch-hello-indent))\r
+ nil))\r
+--=20\r
+1.8.2.1\r
+\r