[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 29 / d861da93ae1d84a3250b0a430fc097028ce42e
1 Return-Path: <jani@nikula.org>\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 2934A431FAF\r
6         for <notmuch@notmuchmail.org>; Fri,  1 Mar 2013 10:03:19 -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: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 hkt75wcD9HCu for <notmuch@notmuchmail.org>;\r
16         Fri,  1 Mar 2013 10:03:18 -0800 (PST)\r
17 Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com\r
18         [209.85.217.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 6E5CE431FAE\r
21         for <notmuch@notmuchmail.org>; Fri,  1 Mar 2013 10:03:18 -0800 (PST)\r
22 Received: by mail-lb0-f174.google.com with SMTP id l12so2455760lbo.19\r
23         for <notmuch@notmuchmail.org>; Fri, 01 Mar 2013 10:03:15 -0800 (PST)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=x-received:from:to:cc:subject:date:message-id:x-mailer\r
27         :x-gm-message-state;\r
28         bh=UH1hfgDTlrvuWfA8vi+oheRLjTCJOKhmlRvPag5zWdo=;\r
29         b=J+RPHsb11/MNLQcO5DeDoKqilqfEVKZmFLk4g+QX9ebPavRXq8gTQ+39MiE18lY/Jw\r
30         iPsikjBqEqIEDWTQ8nsAniEP59MURWtz4AmHK2oFBvoCQR0XamFwRIkjhkIbQlsZFdP7\r
31         UeZQUo3ItxhYD8LiEZHl0ZoMLNNtehIV5hUm1WKyMsADpvn8M9l9FcmPHJufcTlGREf0\r
32         hAUHfKnoo5eopXZG5DQLc8BkrDPcxgRreXFhjMWlS+QISscePyUL2PPLZWm9lOcw6fZc\r
33         /pWs1hSDvo5P0bSly1hDfb6TSq+JdUB/O5qjrpO84NvxbhgUEuNxK/QTUk3k+GYyZy47\r
34         nonw==\r
35 X-Received: by 10.112.17.166 with SMTP id p6mr1107282lbd.41.1362160995308;\r
36         Fri, 01 Mar 2013 10:03:15 -0800 (PST)\r
37 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.\r
38         [80.223.81.27])\r
39         by mx.google.com with ESMTPS id k15sm4369710lbd.6.2013.03.01.10.03.13\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Fri, 01 Mar 2013 10:03:14 -0800 (PST)\r
42 From: Jani Nikula <jani@nikula.org>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH] emacs: add show view bindings to move to previous/next thread\r
45 Date: Fri,  1 Mar 2013 20:03:08 +0200\r
46 Message-Id: <1362160988-24697-1-git-send-email-jani@nikula.org>\r
47 X-Mailer: git-send-email 1.7.10.4\r
48 X-Gm-Message-State:\r
49  ALoCoQmob3VUoFT/ZLlZr2W9OmqB8WPXd0iz5lRe7CwVKqsyZihf2DEcBmhFmgQUcWinoNDKnBv8\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Fri, 01 Mar 2013 18:03:19 -0000\r
63 \r
64 We have most of the plumbing in place, add the bindings M-n and M-p.\r
65 ---\r
66  emacs/notmuch-show.el |   24 ++++++++++++++++++++++++\r
67  1 file changed, 24 insertions(+)\r
68 \r
69 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
70 index acaef8e..4f2e8e0 100644\r
71 --- a/emacs/notmuch-show.el\r
72 +++ b/emacs/notmuch-show.el\r
73 @@ -40,6 +40,7 @@\r
74  (declare-function notmuch-call-notmuch-process "notmuch" (&rest args))\r
75  (declare-function notmuch-fontify-headers "notmuch" nil)\r
76  (declare-function notmuch-search-next-thread "notmuch" nil)\r
77 +(declare-function notmuch-search-previous-thread "notmuch" nil)\r
78  (declare-function notmuch-search-show-thread "notmuch" nil)\r
79  \r
80  (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date")\r
81 @@ -1270,6 +1271,8 @@ reset based on the original query."\r
82         (define-key map "P" 'notmuch-show-previous-message)\r
83         (define-key map "n" 'notmuch-show-next-open-message)\r
84         (define-key map "p" 'notmuch-show-previous-open-message)\r
85 +       (define-key map (kbd "M-n") 'notmuch-show-next-thread-show)\r
86 +       (define-key map (kbd "M-p") 'notmuch-show-previous-thread-show)\r
87         (define-key map (kbd "DEL") 'notmuch-show-rewind)\r
88         (define-key map " " 'notmuch-show-advance-and-archive)\r
89         (define-key map (kbd "M-RET") 'notmuch-show-open-or-close-all)\r
90 @@ -1842,6 +1845,27 @@ argument, hide all of the messages."\r
91        (if show-next\r
92           (notmuch-search-show-thread)))))\r
93  \r
94 +(defun notmuch-show-previous-thread (&optional show-previous)\r
95 +  "Move to the next item in the search results, if any."\r
96 +  (interactive "P")\r
97 +  (let ((parent-buffer notmuch-show-parent-buffer))\r
98 +    (notmuch-kill-this-buffer)\r
99 +    (when (buffer-live-p parent-buffer)\r
100 +      (switch-to-buffer parent-buffer)\r
101 +      (notmuch-search-previous-thread)\r
102 +      (if show-previous\r
103 +         (notmuch-search-show-thread)))))\r
104 +\r
105 +(defun notmuch-show-next-thread-show ()\r
106 +  "Show the next thread in the search results, if any."\r
107 +  (interactive)\r
108 +  (notmuch-show-next-thread t))\r
109 +\r
110 +(defun notmuch-show-previous-thread-show ()\r
111 +  "Show the previous thread in the search results, if any."\r
112 +  (interactive)\r
113 +  (notmuch-show-previous-thread t))\r
114 +\r
115  (defun notmuch-show-archive-thread (&optional unarchive)\r
116    "Archive each message in thread.\r
117  \r
118 -- \r
119 1.7.10.4\r
120 \r