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 2D60C431FB6
\r
6 for <notmuch@notmuchmail.org>; Thu, 6 Dec 2012 12:57:30 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 3Tl4GViQcdtF for <notmuch@notmuchmail.org>;
\r
16 Thu, 6 Dec 2012 12:57:29 -0800 (PST)
\r
17 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com
\r
18 [209.85.217.181]) (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 8738A431FAE
\r
21 for <notmuch@notmuchmail.org>; Thu, 6 Dec 2012 12:57:29 -0800 (PST)
\r
22 Received: by mail-lb0-f181.google.com with SMTP id ge1so5898994lbb.26
\r
23 for <notmuch@notmuchmail.org>; Thu, 06 Dec 2012 12:57:28 -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=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state;
\r
27 bh=E3s40yZSlYtEcOxT2ZmZ6FsXyahhvJT+wfnzAJmvex4=;
\r
28 b=ch8tue0FwqkxdRsZg1iqtgp9haXBlFzuou2q5PcTE1ByHOm9vjjUnQ2JtRuQ2FVMHL
\r
29 3kdaVlrtPtJwX/h5PchkNxmWvOTVPnV+DlRukdzMeT7ai750WK9zuCiI+fKa2bOUMaNo
\r
30 ETA3A6wPMFVGmDb5ELsczbJLLciRYi/ygmo/Ab2C15i/x+7QFd3rocQhqRysroRczAOB
\r
31 3DkJ/bzxCK3fbCbLm1riycno8nK/ageKZbzDaXxAdvXZTGHqNci0MlLgW4qvLAgHjVfO
\r
32 Dn8m2dPC22WwX04fnDImaNNxao6mjBzmNI4CHVunxMC0dXbLgxPuhACQCnLvZPA8e3/K
\r
34 Received: by 10.112.101.135 with SMTP id fg7mr1581580lbb.87.1354827446761;
\r
35 Thu, 06 Dec 2012 12:57:26 -0800 (PST)
\r
36 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.
\r
38 by mx.google.com with ESMTPS id ee5sm3930122lbb.14.2012.12.06.12.57.24
\r
39 (version=SSLv3 cipher=OTHER); Thu, 06 Dec 2012 12:57:25 -0800 (PST)
\r
40 From: Jani Nikula <jani@nikula.org>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH] emacs: add support for stashing the thread id in show view
\r
43 Date: Thu, 6 Dec 2012 22:57:23 +0200
\r
44 Message-Id: <1354827443-10549-1-git-send-email-jani@nikula.org>
\r
45 X-Mailer: git-send-email 1.7.10.4
\r
47 ALoCoQnD7Mjy2EZ3W1auf13damc5cT0bK/+Gj2gLMZehBq45WBfFKDIxJzSwA1NDsFdMK+SI7kxf
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Thu, 06 Dec 2012 20:57:30 -0000
\r
62 Add a prefix argument to notmuch-show-stash-message-id to stash thread
\r
63 id instead of message id.
\r
65 emacs/notmuch-show.el | 13 +++++++++----
\r
66 1 file changed, 9 insertions(+), 4 deletions(-)
\r
68 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
69 index 4d6c014..2245b4f 100644
\r
70 --- a/emacs/notmuch-show.el
\r
71 +++ b/emacs/notmuch-show.el
\r
72 @@ -1901,10 +1901,15 @@ thread from search."
\r
74 (notmuch-common-do-stash (notmuch-show-get-from)))
\r
76 -(defun notmuch-show-stash-message-id ()
\r
77 - "Copy id: query matching the current message to kill-ring."
\r
79 - (notmuch-common-do-stash (notmuch-show-get-message-id)))
\r
80 +(defun notmuch-show-stash-message-id (&optional thread-id)
\r
81 + "Copy id: query matching the current message to kill-ring.
\r
83 +If invoked with a prefix argument (or THREAD-ID is non-nil), copy
\r
84 +thread: query matching the current thread to kill-ring."
\r
87 + (notmuch-common-do-stash notmuch-show-thread-id)
\r
88 + (notmuch-common-do-stash (notmuch-show-get-message-id))))
\r
90 (defun notmuch-show-stash-message-id-stripped ()
\r
91 "Copy message ID of current message (sans `id:' prefix) to kill-ring."
\r