[PATCH 3/3] emacs: add delete key bindings for search and show mode.
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 17 Jan 2012 19:02:49 +0000 (11:02 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:42:29 +0000 (09:42 -0800)
bc/3bb2e3ea56a160544073b87b3e6bb4135b89a6 [new file with mode: 0644]

diff --git a/bc/3bb2e3ea56a160544073b87b3e6bb4135b89a6 b/bc/3bb2e3ea56a160544073b87b3e6bb4135b89a6
new file mode 100644 (file)
index 0000000..89e0956
--- /dev/null
@@ -0,0 +1,88 @@
+Return-Path: <jrollins@finestructure.net>\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 8C63F421197\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 11:02:52 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] 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 56Qe9yO6ZN9Y for <notmuch@notmuchmail.org>;\r
+       Tue, 17 Jan 2012 11:02:52 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id F2106429E5F\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 11:02:51 -0800 (PST)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 9CF392E50E70\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 11:02:51 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com\r
+       [76.174.137.84]) (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id E10A82E50DEA\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 11:02:49 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 7FC9F52D; Tue, 17 Jan 2012 11:02:49 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 3/3] emacs: add delete key bindings for search and show mode.\r
+Date: Tue, 17 Jan 2012 11:02:49 -0800\r
+Message-Id: <1326826969-23545-3-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.7.3\r
+In-Reply-To: <1326826969-23545-2-git-send-email-jrollins@finestructure.net>\r
+References: <87vcoaywyu.fsf@servo.finestructure.net>\r
+       <1326826969-23545-1-git-send-email-jrollins@finestructure.net>\r
+       <1326826969-23545-2-git-send-email-jrollins@finestructure.net>\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: Tue, 17 Jan 2012 19:02:52 -0000\r
+\r
+This mimics the archiving keys ('a' and 'A').\r
+---\r
+ emacs/notmuch-show.el |    2 ++\r
+ emacs/notmuch.el      |    1 +\r
+ 2 files changed, 3 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 141241d..f0259d5 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -945,6 +945,8 @@ thread id.  If a prefix is given, crypto processing is toggled."\r
+       (define-key map "-" 'notmuch-show-remove-tag)\r
+       (define-key map "+" 'notmuch-show-add-tag)\r
+       (define-key map "x" 'notmuch-show-archive-thread-then-exit)\r
++      (define-key map "d" 'notmuch-show-delete-message-then-next)\r
++      (define-key map "D" 'notmuch-show-delete-thread-then-next)\r
+       (define-key map "a" 'notmuch-show-archive-message-then-next)\r
+       (define-key map "A" 'notmuch-show-archive-thread-then-next)\r
+       (define-key map "N" 'notmuch-show-next-message)\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 2acb31b..9f1b1ca 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -225,6 +225,7 @@ For a mouse binding, return nil."\r
+     (define-key map "f" 'notmuch-search-filter)\r
+     (define-key map [mouse-1] 'notmuch-search-show-thread)\r
+     (define-key map "*" 'notmuch-search-operate-all)\r
++    (define-key map "d" 'notmuch-search-delete-thread)\r
+     (define-key map "a" 'notmuch-search-archive-thread)\r
+     (define-key map "-" 'notmuch-search-remove-tag)\r
+     (define-key map "+" 'notmuch-search-add-tag)\r
+-- \r
+1.7.7.3\r
+\r