Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / b0 / 22e6cd194f535b32d25a0b6ccecc8af77e56d0
1 Return-Path: <markwalters1009@gmail.com>\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 7441B42119C\r
6         for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 17:19:51 -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.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id dOsD5j3UeWwe for <notmuch@notmuchmail.org>;\r
18         Sun, 12 Feb 2012 17:19:50 -0800 (PST)\r
19 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
20         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 0403941ED71\r
23         for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 17:19:29 -0800 (PST)\r
24 Received: by mail-we0-f181.google.com with SMTP id p13so3669534wer.26\r
25         for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 17:19:29 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=1ZBpH7GS6wZxNh9949t3+N/mnsAIGYfk08mxtV0qDU8=;\r
29         b=EU5pjX08A7pAkhjaVEl7jaLovet/P8Y/L4c+0JYvpKNtUPumGMwHx/ElCTQjBh4jHf\r
30         LyYSpQwmNUk4FsM/t5S8GyQjduqnAIXlfXIZkLnRaYwEcxyr/v2EzgCJQCu7Md8SUpK0\r
31         o+E9mCHjOxzuu3Nk24rPTVaphYx8ShCBMZ58Q=\r
32 Received: by 10.181.11.231 with SMTP id el7mr10771747wid.0.1329095969768;\r
33         Sun, 12 Feb 2012 17:19:29 -0800 (PST)\r
34 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
35  [94.192.233.223])      by mx.google.com with ESMTPS id\r
36  p10sm18695268wic.0.2012.02.12.17.19.28 (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Sun, 12 Feb 2012 17:19:29 -0800 (PST)\r
38 From: Mark Walters <markwalters1009@gmail.com>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [RFC PATCH v3 08/11] emacs: add the entry to notmuch-pick to\r
41         notmuch-show.el\r
42 Date: Mon, 13 Feb 2012 01:20:12 +0000\r
43 Message-Id: <1329096015-8078-9-git-send-email-markwalters1009@gmail.com>\r
44 X-Mailer: git-send-email 1.7.2.3\r
45 In-Reply-To: <1329072579-27340-1-git-send-email-markwalters1009@gmail.com>\r
46 References: <1329072579-27340-1-git-send-email-markwalters1009@gmail.com>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 13 Feb 2012 01:19:52 -0000\r
60 \r
61 Add key bindings 'z' to enter a notmuch-pick search and 'Z' to view\r
62 the current `show' (i.e. a thread-id with some query) in notmuch-pick.\r
63 ---\r
64  emacs/notmuch-show.el |    8 ++++++++\r
65  1 files changed, 8 insertions(+), 0 deletions(-)\r
66 \r
67 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
68 index 43408d9..244e18d 100644\r
69 --- a/emacs/notmuch-show.el\r
70 +++ b/emacs/notmuch-show.el\r
71 @@ -42,6 +42,7 @@\r
72  (declare-function notmuch-search-next-thread "notmuch" nil)\r
73  (declare-function notmuch-search-show-thread "notmuch" nil)\r
74  (declare-function notmuch-update-tags "notmuch" (current-tags tag-changes))\r
75 +(declare-function notmuch-pick "notmuch-pick" (query &optional query-context buffer-name))\r
76  \r
77  (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date")\r
78    "Headers that should be shown in a message, in this order.\r
79 @@ -1158,6 +1159,8 @@ buffer is stored and re-applied after the refresh."\r
80         (define-key map (kbd "<backtab>") 'notmuch-show-previous-button)\r
81         (define-key map (kbd "TAB") 'notmuch-show-next-button)\r
82         (define-key map "s" 'notmuch-search)\r
83 +       (define-key map "z" 'notmuch-pick)\r
84 +       (define-key map "Z" 'notmuch-show-pick-current-query)\r
85         (define-key map "m" 'notmuch-mua-new-mail)\r
86         (define-key map "f" 'notmuch-show-forward-message)\r
87         (define-key map "r" 'notmuch-show-reply-sender)\r
88 @@ -1565,6 +1568,11 @@ to show, nil otherwise."\r
89    (notmuch-show-mark-read)\r
90    (notmuch-show-message-adjust))\r
91  \r
92 +(defun notmuch-show-pick-current-query ()\r
93 +  "Call notmuch pick with the current query"\r
94 +  (interactive)\r
95 +  (notmuch-pick notmuch-show-thread-id notmuch-show-query-context))\r
96 +\r
97  (defun notmuch-show-view-raw-message ()\r
98    "View the file holding the current message."\r
99    (interactive)\r
100 -- \r
101 1.7.2.3\r
102 \r