Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 05 / 2bf202a401ff4a9c6f18829dd90513ee11d80e
1 Return-Path: <tomi.ollila@iki.fi>\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 EEA93431FAF\r
6         for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 14:25:54 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 JPNGsd2pfPF3 for <notmuch@notmuchmail.org>;\r
16         Fri,  7 Dec 2012 14:25:54 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 31082431FAE\r
19         for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 14:25:54 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 10D1B100045;\r
22         Sat,  8 Dec 2012 00:25:49 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org,\r
25         Mark Walters <markwalters1009@gmail.com>\r
26 Subject: Re: [PATCH v2] emacs: add support for stashing the thread id in show\r
27         view\r
28 In-Reply-To: <1354834085-8225-1-git-send-email-jani@nikula.org>\r
29 References: <87mwxqhkqu.fsf@qmul.ac.uk>\r
30         <1354834085-8225-1-git-send-email-jani@nikula.org>\r
31 User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1\r
32         (x86_64-unknown-linux-gnu)\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
34         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
35         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
36 Date: Sat, 08 Dec 2012 00:25:48 +0200\r
37 Message-ID: <m2pq2lo5xv.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Fri, 07 Dec 2012 22:25:55 -0000\r
53 \r
54 On Fri, Dec 07 2012, Jani Nikula wrote:\r
55 \r
56 > Add a prefix argument to notmuch-show-stash-message-id to stash thread\r
57 > id instead of message id.\r
58 > ---\r
59 \r
60 LTGM.\r
61 \r
62 Tomi\r
63 \r
64 >  emacs/notmuch-show.el |   14 ++++++++++----\r
65 >  1 file changed, 10 insertions(+), 4 deletions(-)\r
66 >\r
67 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
68 > index 4d6c014..658a2be 100644\r
69 > --- a/emacs/notmuch-show.el\r
70 > +++ b/emacs/notmuch-show.el\r
71 > @@ -1901,10 +1901,16 @@ thread from search."\r
72 >    (interactive)\r
73 >    (notmuch-common-do-stash (notmuch-show-get-from)))\r
74 >  \r
75 > -(defun notmuch-show-stash-message-id ()\r
76 > -  "Copy id: query matching the current message to kill-ring."\r
77 > -  (interactive)\r
78 > -  (notmuch-common-do-stash (notmuch-show-get-message-id)))\r
79 > +(defun notmuch-show-stash-message-id (&optional stash-thread-id)\r
80 > +  "Copy id: query matching the current message to kill-ring.\r
81 > +\r
82 > +If invoked with a prefix argument (or STASH-THREAD-ID is\r
83 > +non-nil), copy thread: query matching the current thread to\r
84 > +kill-ring."\r
85 > +  (interactive "P")\r
86 > +  (if stash-thread-id\r
87 > +      (notmuch-common-do-stash notmuch-show-thread-id)\r
88 > +    (notmuch-common-do-stash (notmuch-show-get-message-id))))\r
89 >  \r
90 >  (defun notmuch-show-stash-message-id-stripped ()\r
91 >    "Copy message ID of current message (sans `id:' prefix) to kill-ring."\r
92 > -- \r
93 > 1.7.10.4\r
94 >\r
95 > _______________________________________________\r
96 > notmuch mailing list\r
97 > notmuch@notmuchmail.org\r
98 > http://notmuchmail.org/mailman/listinfo/notmuch\r