[PATCH 1/4] emacs: add show-mode functions to archive/delete only current message
authorJameson Graef Rollins <jrollins@finestructure.net>
Sun, 8 Jan 2012 01:26:52 +0000 (17:26 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:44 +0000 (09:41 -0800)
a8/49541fe426d15b45197d607405737a3fe4def9 [new file with mode: 0644]

diff --git a/a8/49541fe426d15b45197d607405737a3fe4def9 b/a8/49541fe426d15b45197d607405737a3fe4def9
new file mode 100644 (file)
index 0000000..31cd173
--- /dev/null
@@ -0,0 +1,106 @@
+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 E3E6B40AD7A\r
+       for <notmuch@notmuchmail.org>; Sat,  7 Jan 2012 17:27:14 -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 kGSKWfqB3fA2 for <notmuch@notmuchmail.org>;\r
+       Sat,  7 Jan 2012 17:27:12 -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 88AF340F1D5\r
+       for <notmuch@notmuchmail.org>; Sat,  7 Jan 2012 17:27:05 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 1527A66E00B6\r
+       for <notmuch@notmuchmail.org>; Sat,  7 Jan 2012 17:27:05 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-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 earth-doxen-submit (Postfix) with ESMTP id 0D32D66E00E2\r
+       for <notmuch@notmuchmail.org>; Sat,  7 Jan 2012 17:26:59 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 78E4829C; Sat,  7 Jan 2012 17:26:58 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 1/4] emacs: add show-mode functions to archive/delete only\r
+       current message\r
+Date: Sat,  7 Jan 2012 17:26:52 -0800\r
+Message-Id: <1325986015-22510-2-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.7.3\r
+In-Reply-To: <1325986015-22510-1-git-send-email-jrollins@finestructure.net>\r
+References: <1325975294-646-4-git-send-email-jrollins@finestructure.net>\r
+       <1325986015-22510-1-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: Sun, 08 Jan 2012 01:27:15 -0000\r
+\r
+This adds two new function, notmuch-show-{archive,delete}-message,\r
+that archive/delete the current message, and then move to the next\r
+open one.\r
+---\r
+ emacs/notmuch-show.el |   24 ++++++++++++++++++++++++\r
+ 1 files changed, 24 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index e1d15f4..8bb052e 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1436,6 +1436,18 @@ argument, hide all of the messages."\r
+           (if show-next\r
+               (notmuch-search-show-thread)))))))\r
\r
++(defun notmuch-show-archive-message ()\r
++  "Archive the current message and advance.\r
++\r
++After the last message is reached, either the buffer will be\r
++closed and the cursor will move to the search result if\r
++available, or the cursor will move to the end of the current\r
++thread.\r
++"\r
++    (interactive)\r
++    (notmuch-show-remove-tag "inbox")\r
++    (notmuch-show-next-open-message)))\r
++\r
+ (defun notmuch-show-archive-thread ()\r
+   "Archive each message in thread, then show next thread from search.\r
\r
+@@ -1455,6 +1467,18 @@ buffer."\r
+   (interactive)\r
+   (notmuch-show-tag-thread-internal "-" "inbox" nil))\r
\r
++(defun notmuch-show-delete-message ()\r
++  "Delete the current message and advance.\r
++\r
++After the last message is reached, either the buffer will be\r
++closed and the cursor will move to the search result if\r
++available, or the cursor will move to the end of the current\r
++thread.\r
++"\r
++    (interactive)\r
++    (notmuch-show-add-tag "deleted")\r
++    (notmuch-show-next-open-message)))\r
++\r
+ (defun notmuch-show-delete-thread ()\r
+   "Delete each message in thread, then show next thread from search.\r
\r
+-- \r
+1.7.7.3\r
+\r