Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / dc / 253723e7ca16e6cb2da3b5b0d396656535bb70
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 8B955431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 12:22:10 -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 JPQ9yYHoV0Bm for <notmuch@notmuchmail.org>;\r
11         Tue, 24 Nov 2009 12:22:10 -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 36367431FAE\r
15         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 12:22:10 -0800 (PST)\r
16 Received: by bwz24 with SMTP id 24so5337101bwz.30\r
17         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 12:22:08 -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:in-reply-to:references;\r
21         bh=3xm/PgJm4QXOP+ATfLmYjGlTPlVqPBwbaOcXPAClmiA=;\r
22         b=Zy2OV+nuiyik/9bUGxwdtkdz1HRkMvQTyRutecVJ8Fo1Cb7gXQbDkvcDytxDhqtXow\r
23         4c18XsUuP7iwCbaHPsZx2mgA0HRPoc4L3AMheOEV1SICwlNOzUWG1Bqu4FW9/TchnHD6\r
24         6iPyfy4X5EnPhbEjjfy/nRL28cxp1dSHKPxMg=\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:in-reply-to\r
27         :references;\r
28         b=Gc9rS2IQEIJX6WdVE/Krh5WRXPCaZOdLs/R+8R5NeX3Rx+TTT7o/ATpl4L9KRB7K1k\r
29         McnWOtoJgvffeCtTHhVCO2zjseOC0CNOp0/KxITRv6tzWEFiR/njljnmQ7pOE+C097/3\r
30         fSpTKIP4zxY4wN2q54vHdjpcqB8giuqv9V3xA=\r
31 Received: by 10.204.2.196 with SMTP id 4mr3069078bkk.7.1259094128152;\r
32         Tue, 24 Nov 2009 12:22:08 -0800 (PST)\r
33 Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11])\r
34         by mx.google.com with ESMTPS id 21sm7650256fkx.25.2009.11.24.12.22.06\r
35         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
36         Tue, 24 Nov 2009 12:22:07 -0800 (PST)\r
37 Sender: Jed Brown <five9a2@gmail.com>\r
38 From: Jed Brown <jed@59A2.org>\r
39 To: notmuch@notmuchmail.org\r
40 Date: Tue, 24 Nov 2009 21:22:11 +0100\r
41 Message-Id: <1259094131-32405-1-git-send-email-jed@59A2.org>\r
42 X-Mailer: git-send-email 1.6.5.3\r
43 In-Reply-To: <id:1259087712-18844-1-git-send-email-jed@59A2.org>\r
44 References: <id:1259087712-18844-1-git-send-email-jed@59A2.org>\r
45 Subject: [notmuch] [PATCH] New function\r
46         notmuch-show-kill-ring-save-message-id.\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.12\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: Tue, 24 Nov 2009 20:22:10 -0000\r
60 \r
61 Puts current message ID in the kill ring.  This is useful any time you\r
62 want to explicitly refer to the message, such as in the body of another\r
63 message, through git format-patch, or on IRC.\r
64 \r
65 It is bound to "C-c i".\r
66 \r
67 Corrected spelling of function name in commit message, and updated to\r
68 apply against HEAD after c1e16435cfe4471c3415d9f625f7230d59c8afb4\r
69 \r
70 Signed-off-by: Jed Brown <jed@59A2.org>\r
71 ---\r
72  notmuch.el |   12 ++++++++++++\r
73  1 files changed, 12 insertions(+), 0 deletions(-)\r
74 \r
75 diff --git a/notmuch.el b/notmuch.el\r
76 index 907df2c..e3e0e06 100644\r
77 --- a/notmuch.el\r
78 +++ b/notmuch.el\r
79 @@ -80,6 +80,7 @@\r
80      (define-key map "?" 'describe-mode)\r
81      (define-key map (kbd "TAB") 'notmuch-show-next-button)\r
82      (define-key map (kbd "M-TAB") 'notmuch-show-previous-button)\r
83 +    (define-key map (kbd "C-c i") 'notmuch-show-kill-ring-save-message-id)\r
84      map)\r
85    "Keymap for \"notmuch show\" buffers.")\r
86  (fset 'notmuch-show-mode-map notmuch-show-mode-map)\r
87 @@ -663,6 +664,17 @@ which this thread was originally shown."\r
88        (notmuch-show-markup-message)))\r
89    (notmuch-show-hide-markers))\r
90  \r
91 +(defun notmuch-show-kill-ring-save-message-id ()\r
92 +  "Put the current message id in the kill ring.\r
93 +\r
94 +This is useful for referencing messages or running external\r
95 +queries."\r
96 +  (interactive)\r
97 +  (let ((message-id (notmuch-show-get-message-id)))\r
98 +    (kill-new message-id)\r
99 +    (when (called-interactively-p 'interactive)\r
100 +      (message "Saved message ID: \"%s\"" message-id))))\r
101 +\r
102  ;;;###autoload\r
103  (defun notmuch-show-mode ()\r
104    "Major mode for viewing a thread with notmuch.\r
105 -- \r
106 1.6.5.3\r
107 \r