[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 2e / 0ac93cdc724703077ca9521a029741b0dba877
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 ACEB3431FC2\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:30 -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 NtVkeURiYjnq for <notmuch@notmuchmail.org>;\r
16         Tue, 24 Jan 2012 16:06:30 -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 1225C431FBC\r
20         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:30 -0800 (PST)\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by earth-doxen-postvirus (Postfix) with ESMTP id BCCA866E016E\r
23         for <notmuch@notmuchmail.org>; Tue, 24 Jan 2012 16:06:29 -0800 (PST)\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-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 earth-doxen-submit (Postfix) with ESMTP id DD11666E0177\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 D5DE02FA; 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 3/8] emacs: break out thread navigation from\r
34         notmuch-show-archive-thread\r
35 Date: Tue, 24 Jan 2012 16:06:18 -0800\r
36 Message-Id: <1327449983-23638-4-git-send-email-jrollins@finestructure.net>\r
37 X-Mailer: git-send-email 1.7.8.3\r
38 In-Reply-To: <1327449983-23638-3-git-send-email-jrollins@finestructure.net>\r
39 References: <87pqea24z0.fsf@servo.finestructure.net>\r
40         <1327449983-23638-1-git-send-email-jrollins@finestructure.net>\r
41         <1327449983-23638-2-git-send-email-jrollins@finestructure.net>\r
42         <1327449983-23638-3-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:30 -0000\r
56 \r
57 This function is now just for archiving the current thread.  A new\r
58 function is created to archive-then-next.  The 'a' key binding is\r
59 updated accordingly.\r
60 \r
61 This will allow people to bind to the simple thread archiving function\r
62 without the extra navigation.  The archive-thread function now also\r
63 takes a prefix to unarchive the current thread (ie. put the whole\r
64 thread back in the inbox).\r
65 ---\r
66  emacs/notmuch-show.el |   23 +++++++++++++++++------\r
67  1 files changed, 17 insertions(+), 6 deletions(-)\r
68 \r
69 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
70 index fb908b0..071e662 100644\r
71 --- a/emacs/notmuch-show.el\r
72 +++ b/emacs/notmuch-show.el\r
73 @@ -1044,7 +1044,7 @@ thread id.  If a prefix is given, crypto processing is toggled."\r
74         (define-key map "-" 'notmuch-show-remove-tag)\r
75         (define-key map "+" 'notmuch-show-add-tag)\r
76         (define-key map "x" 'notmuch-show-archive-thread-then-exit)\r
77 -       (define-key map "a" 'notmuch-show-archive-thread)\r
78 +       (define-key map "a" 'notmuch-show-archive-thread-then-next)\r
79         (define-key map "N" 'notmuch-show-next-message)\r
80         (define-key map "P" 'notmuch-show-previous-message)\r
81         (define-key map "n" 'notmuch-show-next-open-message)\r
82 @@ -1304,7 +1304,7 @@ thread from the search from which this thread was originally\r
83  shown."\r
84    (interactive)\r
85    (if (notmuch-show-advance)\r
86 -      (notmuch-show-archive-thread)))\r
87 +      (notmuch-show-archive-thread-then-next)))\r
88  \r
89  (defun notmuch-show-rewind ()\r
90    "Backup through the thread, (reverse scrolling compared to \\[notmuch-show-advance-and-archive]).\r
91 @@ -1558,8 +1558,12 @@ added."\r
92        (if show-next\r
93           (notmuch-search-show-thread)))))\r
94  \r
95 -(defun notmuch-show-archive-thread ()\r
96 -  "Archive each message in thread, then show next thread from search.\r
97 +(defun notmuch-show-archive-thread (&optional unarchive)\r
98 +  "Archive each message in thread.\r
99 +\r
100 +If a prefix argument is given, the messages will be\r
101 +\"unarchived\" (ie. the \"inbox\" tag will be added instead of\r
102 +removed).\r
103  \r
104  Archive each message currently shown by removing the \"inbox\"\r
105  tag from each. Then kill this buffer and show the next thread\r
106 @@ -1569,14 +1573,21 @@ Note: This command is safe from any race condition of new messages\r
107  being delivered to the same thread. It does not archive the\r
108  entire thread, but only the messages shown in the current\r
109  buffer."\r
110 +  (interactive "P")\r
111 +  (if unarchive\r
112 +      (notmuch-show-add-tag-thread "inbox")\r
113 +    (notmuch-show-remove-tag-thread "inbox")))\r
114 +\r
115 +(defun notmuch-show-archive-thread-then-next ()\r
116 +  "Archive each message in thread, then show next thread from search."\r
117    (interactive)\r
118 -  (notmuch-show-remove-tag-thread "inbox")\r
119 +  (notmuch-show-archive-thread)\r
120    (notmuch-show-next-thread t))\r
121  \r
122  (defun notmuch-show-archive-thread-then-exit ()\r
123    "Archive each message in thread, then exit back to search results."\r
124    (interactive)\r
125 -  (notmuch-show-remove-tag-thread "inbox")\r
126 +  (notmuch-show-archive-thread)\r
127    (notmuch-show-next-thread))\r
128  \r
129  (defun notmuch-show-stash-cc ()\r
130 -- \r
131 1.7.8.3\r
132 \r