Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c7 / d97a71dd7d1753adcd5b76f694e5217f22897a
1 Return-Path: <dme@dme.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 0E946431FAF\r
6         for <notmuch@notmuchmail.org>; Wed,  8 Feb 2012 09:05:49 -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.7\r
10 X-Spam-Level: \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 uZxzYQZkK3Vd for <notmuch@notmuchmail.org>;\r
16         Wed,  8 Feb 2012 09:05:48 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.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 23F15431FAE\r
21         for <notmuch@notmuchmail.org>; Wed,  8 Feb 2012 09:05:48 -0800 (PST)\r
22 Received: by wibhi8 with SMTP id hi8so601230wib.26\r
23         for <notmuch@notmuchmail.org>; Wed, 08 Feb 2012 09:05:47 -0800 (PST)\r
24 Received: by 10.216.138.209 with SMTP id a59mr7172672wej.11.1328720747040;\r
25         Wed, 08 Feb 2012 09:05:47 -0800 (PST)\r
26 Received: from hotblack-desiato.hh.sledj.net\r
27         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
28         by mx.google.com with ESMTPS id l8sm4761454wiy.5.2012.02.08.09.05.44\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Wed, 08 Feb 2012 09:05:45 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id A483BA0A98; Wed,  8 Feb 2012 17:05:43 +0000 (GMT)\r
33 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH 1/2] emacs: support defining a list of alternative parts\r
35         to show\r
36 In-Reply-To:\r
37  <fe86d0e2cf0d236615613fa16d94c94fb2120729.1328719309.git.jani@nikula.org>\r
38 References: <cover.1328719309.git.jani@nikula.org>\r
39         <fe86d0e2cf0d236615613fa16d94c94fb2120729.1328719309.git.jani@nikula.org>\r
40 User-Agent: Notmuch/0.11.1+166~g546cb24 (http://notmuchmail.org)\r
41         Emacs/24.0.92.1 (x86_64-pc-linux-gnu)\r
42 From: David Edmondson <dme@dme.org>\r
43 Date: Wed, 08 Feb 2012 17:05:39 +0000\r
44 Message-ID: <cunwr7x2r30.fsf@hotblack-desiato.hh.sledj.net>\r
45 MIME-Version: 1.0\r
46 Content-Type: multipart/signed; boundary="=-=-=";\r
47         micalg=pgp-sha1; protocol="application/pgp-signature"\r
48 X-Gm-Message-State:\r
49  ALoCoQkQugmk8UYMynOLm/0fKKU7ktGA3yt2mgzYT1A1CwO/3uXr5kMiVn7ZJG9/1dtoyph4P1yr\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Wed, 08 Feb 2012 17:05:49 -0000\r
63 \r
64 --=-=-=\r
65 Content-Type: text/plain\r
66 Content-Transfer-Encoding: quoted-printable\r
67 \r
68 On Wed,  8 Feb 2012 16:55:15 +0000, Jani Nikula <jani@nikula.org> wrote:\r
69 > Make notmuch-show-all-multipart/alternative-parts accept a list of\r
70 > multipart/alternative types to show in addition to the preferred\r
71 > types. This allows the user to force display some alternative part\r
72 > types while normally showing just the preferred ones.\r
73 >=20\r
74 > Signed-off-by: Jani Nikula <jani@nikula.org>\r
75 > ---\r
76 >  emacs/notmuch-show.el |    8 ++++++--\r
77 >  1 files changed, 6 insertions(+), 2 deletions(-)\r
78 >=20\r
79 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
80 > index faa9f9b..1340380 100644\r
81 > --- a/emacs/notmuch-show.el\r
82 > +++ b/emacs/notmuch-show.el\r
83 > @@ -97,7 +97,9 @@ any given message."\r
84 >  ;; Mostly useful for debugging.\r
85 >  (defcustom notmuch-show-all-multipart/alternative-parts t\r
86 >    "Should all parts of multipart/alternative parts be shown?"\r
87 > -  :type 'boolean\r
88 > +  :type '(choice (const :tag "Show all" t)\r
89 > +              (const :tag "Show preferred" nil)\r
90 > +              (repeat :tag "Show preferred and custom" string))\r
91 >    :group 'notmuch-show)\r
92 \r
93 It would be convenient if this was a list of regexps.\r
94 \r
95 >  (defcustom notmuch-show-indent-messages-width 1\r
96 > @@ -513,7 +515,9 @@ current buffer, if possible."\r
97 >      ;; should be chosen if there are more than one that match?\r
98 >      (mapc (lambda (inner-part)\r
99 >           (let ((inner-type (plist-get inner-part :content-type)))\r
100 > -           (if (or notmuch-show-all-multipart/alternative-parts\r
101 > +           (if (or (equal notmuch-show-all-multipart/alternative-parts t)\r
102 > +                   (member inner-type\r
103 > +                           notmuch-show-all-multipart/alternative-parts)\r
104 >                     (string=3D chosen-type inner-type))\r
105 >                 (notmuch-show-insert-bodypart msg inner-part depth)\r
106 >               (notmuch-show-insert-part-header (plist-get inner-part :id) inner-type=\r
107  inner-type nil " (not shown)"))))\r
108 > --=20\r
109 > 1.7.1\r
110 >=20\r
111 \r
112 --=-=-=\r
113 Content-Type: application/pgp-signature\r
114 \r
115 -----BEGIN PGP SIGNATURE-----\r
116 Version: GnuPG v1.4.11 (GNU/Linux)\r
117 \r
118 iEYEARECAAYFAk8yq2MACgkQaezQq/BJZRajrQCeMK9QtMd4s5nKpcPleoKB/y6r\r
119 nwUAn3A4etEY/XCwUiIC3bHknCPkSLLM\r
120 =f2D7\r
121 -----END PGP SIGNATURE-----\r
122 --=-=-=--\r