Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 2f / 38240a7b0dc18ca42076e4ec3407a47bdff624
1 Return-Path: <jrollins@finestructure.net>\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 B821D431FAF\r
6         for <notmuch@notmuchmail.org>; Thu,  9 Aug 2012 13:53:06 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 IcUBgqHf7Yuq for <notmuch@notmuchmail.org>;\r
16         Thu,  9 Aug 2012 13:53:06 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id 41A80431FAE\r
20         for <notmuch@notmuchmail.org>; Thu,  9 Aug 2012 13:53:06 -0700 (PDT)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id 98A2D32802C;\r
23         Thu,  9 Aug 2012 13:53:01 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (gwave-123.ligo.caltech.edu\r
26  [131.215.114.123])     (Authenticated sender: jrollins)        by fire-doxen-submit\r
27  (Postfix) with ESMTP id BD2FF328012;   Thu,  9 Aug 2012 13:52:57 -0700 (PDT)\r
28 Received: by finestructure.net (Postfix, from userid 1000)\r
29         id 9CF492E8; Thu,  9 Aug 2012 13:52:57 -0700 (PDT)\r
30 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
31 To: Mark Walters <markwalters1009@gmail.com>, Jani Nikula <jani@nikula.org>,\r
32         notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH] emacs: add function to toggle display of all\r
34         multipart/alternative parts\r
35 In-Reply-To: <87pq8vokmp.fsf@qmul.ac.uk>\r
36 References: <1339775751-18002-1-git-send-email-jani@nikula.org>\r
37         <87zk80gvmb.fsf@servo.finestructure.net>\r
38         <87pq8vokmp.fsf@qmul.ac.uk>\r
39 User-Agent: Notmuch/0.13.2+137~ge34ed71 (http://notmuchmail.org) Emacs/23.4.1\r
40         (x86_64-pc-linux-gnu)\r
41 Date: Thu, 09 Aug 2012 13:52:47 -0700\r
42 Message-ID: <87ipcrvlcw.fsf@servo.finestructure.net>\r
43 MIME-Version: 1.0\r
44 Content-Type: multipart/signed; boundary="=-=-=";\r
45         micalg=pgp-sha256; protocol="application/pgp-signature"\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Thu, 09 Aug 2012 20:53:06 -0000\r
59 \r
60 --=-=-=\r
61 \r
62 On Mon, Jun 18 2012, Mark Walters <markwalters1009@gmail.com> wrote:\r
63 > I agree with this cycling approach but I think it needs to be per\r
64 > message rather than per buffer. I attach a rather hacky attempt at this\r
65 > below: on minimal testing it seems to work. But the lisp is really a bit\r
66 > gross. In particular  I have no idea if I should be escaping the message\r
67 > ids (so this could break in unfortunate/insecure ways)\r
68 \r
69 Thanks to broken Apple mail clients, I'm getting more and more messages\r
70 that have attachments hidden in multipart/"alternatives" to text/plain\r
71 parts.  So I would really like to revive this patch.\r
72 \r
73 I just tested it and it still applies to current master, and actually\r
74 seems to work great.  'W' cycles through which part is displayed in the\r
75 current message.  Pretty much exactly what I want.\r
76 \r
77 Mark seems to think this patch is less than ideal.  One issue is that\r
78 it's trying to store a setting for a single displayed message in a\r
79 variable of full buffer scope.  So he's storing a list of message ids\r
80 there:\r
81 \r
82 > +(defvar notmuch-show-message-multipart/alternative nil)\r
83 > +(make-variable-buffer-local 'notmuch-show-message-multipart/alternative)\r
84 > +(put 'notmuch-show-message-multipart/alternative 'permanent-local t)\r
85 ...\r
86 > +         (lax-plist-put notmuch-show-message-multipart/alternative (plist-get msg :id) 0)))\r
87 \r
88 I can see that might get a little hairy.  Can any elisp experts out\r
89 there think of a better way to do this?  (actually, this is making me\r
90 again want a show mode that only displays one message at a time (which I\r
91 guess means I need to try pick again)).\r
92 \r
93 jamie.\r
94 \r
95 --=-=-=\r
96 Content-Type: application/pgp-signature\r
97 \r
98 -----BEGIN PGP SIGNATURE-----\r
99 Version: GnuPG v1.4.12 (GNU/Linux)\r
100 \r
101 iQIcBAEBCAAGBQJQJCMfAAoJEO00zqvie6q8sk4P/3RPLH7RkOj1kag7HKQdfYgN\r
102 RbkfPDmigCq3hOYuk4af4WkIMnHt6wK7Hi+vv/DoP1NPjp1azFu52MmrTRxYK01u\r
103 OCbfzR4ov8Lt1KD5VOCert7krzZR8wMmsD2wrLiyhLtTfpb/s5YyFSJ1KLlodfPD\r
104 Xn725Q86bQPFINYNCY8ClJRvgNPcXEpIgj0t/imXII7T3Tc5/PYhXGR93lnhkIfh\r
105 4iIgr0qD3cP+ayYvuGJK8zwZW+DnTVMNaVNPv7XNgxfOdaern/o+MKYwKvdWZ2+q\r
106 io1li+POi1RrLwyU18Uzads5z76woGq6sDs8u2oz4bXJc7xh45exAmmUfPjwmoRL\r
107 pifyOLytd+RQvlJJ6yQ8PiUzc32TQ37NYcbIBOyVGfJ1eoYmbfH8qc9cH1e+TGXb\r
108 XxhnsOSopHrPOhQ25/JrHO5As9gfcc6LdlX5E4e9oHcW71mLkcsnq3+R8BnAGnhD\r
109 JtXgI8xEvoOMigs1WjmmYD4kXJDqnagqzH224Fi4al2SmNGuCcD4qIOqHXFZ50nY\r
110 /Eoz2z+wjpCvPNLL576j7k9ri1ShnzYObDpjHI232KE0aXF0gJOA9tkj7NwiKRv5\r
111 E8t6mQxuOGSb8JSk+ZNe2/+RM1MGRNDsHNUUwSNFpK37SDZri0Qj2QK6Etn/N6ph\r
112 Gw8z7l9WE8Ynr7rR2mYC\r
113 =7D/x\r
114 -----END PGP SIGNATURE-----\r
115 --=-=-=--\r