Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9a / 92a207dcefb1477f6e63e69d7cee9e2f2a524d
1 Return-Path: <five9a2@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 C7753431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 10:34:55 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id vso6kOf9yguM for <notmuch@notmuchmail.org>;\r
11         Tue, 24 Nov 2009 10:34:55 -0800 (PST)\r
12 Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com\r
13         [209.85.218.224])\r
14         by olra.theworths.org (Postfix) with ESMTP id C450C431FAE\r
15         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 10:34:54 -0800 (PST)\r
16 Received: by bwz24 with SMTP id 24so5235563bwz.30\r
17         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 10:34:53 -0800 (PST)\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
19         h=domainkey-signature:received:received:sender:from:to:cc:subject\r
20         :date:message-id:x-mailer;\r
21         bh=6NkH322v57aWLmiyxTjO9/1kX0t8Wq2zNS6vDTFr9QM=;\r
22         b=L0Qr49GN17icR4PAFjnBaI7XlgGZZGjyLFbNij+vrjluRMjc4XxiV2uHu3+ZhN7tHE\r
23         I6IAFHz3DCQPCIwGu7DBBaGTtm6ia2tjojW5IRt5oppPeogwXzMq9Ch6YdKWBpTxzD8z\r
24         Sdi1cfZzWw2L+Ld1sP3UiBN15x/VP6DVyXY/Y=\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
26         h=sender:from:to:cc:subject:date:message-id:x-mailer;\r
27         b=pkCcqP+Nk3Zps5tnL2zD2UePRmuUc3mM3LNs4fcfcj93fBw8k57iVPWSCY8y5zws27\r
28         kimGv23QYk1TsyDFjGbJC0YdrihaulWgrurWgiuQEC3doMvnRWNabgnRFMvfIBC9DIPL\r
29         2PuXcFtLB1MmyM+GxXUeQCf7J1/oCLBIxxtdc=\r
30 Received: by 10.204.19.146 with SMTP id a18mr2417636bkb.135.1259087693650;\r
31         Tue, 24 Nov 2009 10:34:53 -0800 (PST)\r
32 Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11])\r
33         by mx.google.com with ESMTPS id f31sm7557240fkf.12.2009.11.24.10.34.52\r
34         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
35         Tue, 24 Nov 2009 10:34:52 -0800 (PST)\r
36 Sender: Jed Brown <five9a2@gmail.com>\r
37 From: Jed Brown <jed@59A2.org>\r
38 To: notmuch@notmuchmail.org\r
39 Date: Tue, 24 Nov 2009 19:35:12 +0100\r
40 Message-Id: <1259087712-18844-1-git-send-email-jed@59A2.org>\r
41 X-Mailer: git-send-email 1.6.5.3\r
42 Subject: [notmuch] [PATCH] New function notmuch-show-kill-message-id,\r
43         puts current message ID in the kill ring.\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.12\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Tue, 24 Nov 2009 18:34:55 -0000\r
57 \r
58 This is useful any time you want to explicitly refer to the message,\r
59 such as in the body of another message, through git format-patch, or on\r
60 IRC.\r
61 \r
62 It is bound to "C-c i".\r
63 \r
64 Signed-off-by: Jed Brown <jed@59A2.org>\r
65 ---\r
66  notmuch.el |   12 ++++++++++++\r
67  1 files changed, 12 insertions(+), 0 deletions(-)\r
68 \r
69 diff --git a/notmuch.el b/notmuch.el\r
70 index fa6e7de..071ee5a 100644\r
71 --- a/notmuch.el\r
72 +++ b/notmuch.el\r
73 @@ -84,6 +84,7 @@\r
74      (define-key map "?" 'describe-mode)\r
75      (define-key map (kbd "TAB") 'notmuch-show-next-button)\r
76      (define-key map (kbd "M-TAB") 'notmuch-show-previous-button)\r
77 +    (define-key map (kbd "C-c i") 'notmuch-show-kill-ring-save-message-id)\r
78      map)\r
79    "Keymap for \"notmuch show\" buffers.")\r
80  (fset 'notmuch-show-mode-map notmuch-show-mode-map)\r
81 @@ -698,6 +699,17 @@ which this thread was originally shown."\r
82    (force-window-update)\r
83    (redisplay t))\r
84  \r
85 +(defun notmuch-show-kill-ring-save-message-id ()\r
86 +  "Put the current message id in the kill ring.\r
87 +\r
88 +This is useful for referencing messages or running external\r
89 +queries."\r
90 +  (interactive)\r
91 +  (let ((message-id (notmuch-show-get-message-id)))\r
92 +    (kill-new message-id)\r
93 +    (when (called-interactively-p 'interactive)\r
94 +      (message "Saved message ID: \"%s\"" message-id))))\r
95 +\r
96  ;;;###autoload\r
97  (defun notmuch-show-mode ()\r
98    "Major mode for viewing a thread with notmuch.\r
99 -- \r
100 1.6.5.3\r
101 \r