Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 46 / 3f0c7a8b8e552d57b5b35f585c6777e051822a
1 Return-Path: <jrollins@finestructure.net>\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 78BD4418C33\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:41 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id rCxCObicFjcN for <notmuch@notmuchmail.org>;\r
16         Tue, 24 Jan 2012 16:06:40 -0800 (PST)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id B95AC429E3A\r
20         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:32 -0800 (PST)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id 28A7332803F\r
23         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:30 -0800 (PST)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (DHCP-123-180.caltech.edu [131.215.123.180])\r
26         (Authenticated sender: jrollins)\r
27         by fire-doxen-submit (Postfix) with ESMTP id E05E3328051\r
28         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:27 -0800 (PST)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id D8BD532B; Tue, 24 Jan 2012 16:06:27 -0800 (PST)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: [PATCH v3 4/8] emacs: add message archiving functions\r
34 Date: Tue, 24 Jan 2012 16:06:19 -0800\r
35 Message-Id: <1327449983-23638-5-git-send-email-jrollins@finestructure.net>\r
36 X-Mailer: git-send-email 1.7.8.3\r
37 In-Reply-To: <1327449983-23638-4-git-send-email-jrollins@finestructure.net>\r
38 References: <87pqea24z0.fsf@servo.finestructure.net>\r
39         <1327449983-23638-1-git-send-email-jrollins@finestructure.net>\r
40         <1327449983-23638-2-git-send-email-jrollins@finestructure.net>\r
41         <1327449983-23638-3-git-send-email-jrollins@finestructure.net>\r
42         <1327449983-23638-4-git-send-email-jrollins@finestructure.net>\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Wed, 25 Jan 2012 00:06:41 -0000\r
56 \r
57 This adds two new message archiving functions that parallel the thread\r
58 archiving functions: notmuch-show-archive-message{,-then-next}.  The\r
59 former also takes a prefix argument to unarchive the message (ie. put\r
60 back in inbox).\r
61 ---\r
62  emacs/notmuch-show.el |   17 +++++++++++++++++\r
63  1 files changed, 17 insertions(+), 0 deletions(-)\r
64 \r
65 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
66 index 071e662..0dc594b 100644\r
67 --- a/emacs/notmuch-show.el\r
68 +++ b/emacs/notmuch-show.el\r
69 @@ -1590,6 +1590,23 @@ buffer."\r
70    (notmuch-show-archive-thread)\r
71    (notmuch-show-next-thread))\r
72  \r
73 +(defun notmuch-show-archive-message (&optional unarchive)\r
74 +  "Archive the current message.\r
75 +\r
76 +If a prefix argument is given, the message will be\r
77 +\"unarchived\" (ie. the \"inbox\" tag will be added instead of\r
78 +removed)."\r
79 +  (interactive "P")\r
80 +  (if unarchive\r
81 +      (notmuch-show-add-tag "inbox")\r
82 +    (notmuch-show-remove-tag "inbox")))\r
83 +\r
84 +(defun notmuch-show-archive-message-then-next ()\r
85 +  "Archive the current message, then show the next open message in the current thread."\r
86 +  (interactive)\r
87 +  (notmuch-show-archive-message)\r
88 +  (notmuch-show-next-open-message))\r
89 +\r
90  (defun notmuch-show-stash-cc ()\r
91    "Copy CC field of current message to kill-ring."\r
92    (interactive)\r
93 -- \r
94 1.7.8.3\r
95 \r