[PATCH (draft) 0/2] Allow emacs to toggle display of all parts including multipart
[notmuch-archives.git] / 63 / cc9f5d4a82378a3ce9e0698b23931912cd2484
1 Return-Path: <markwalters1009@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 73101431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 01:09:34 -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: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 0PA+ElRUCxIA for <notmuch@notmuchmail.org>;\r
18         Thu, 25 Oct 2012 01:09:33 -0700 (PDT)\r
19 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
20  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
21  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
22  BCCDA431FAE    for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 01:09:32 -0700\r
23  (PDT)\r
24 Received: by mail-wg0-f45.google.com with SMTP id dq12so897880wgb.2\r
25         for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 01:09:31 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer;\r
28         bh=ZYixgR4W10jC8IHyAlCbOfaK9RgaiEqDMIo2iKUNvwU=;\r
29         b=BqjaROysBurT13wrNtOLLBbhD7t/ApWfqCIOuWRhS90zQ8hZpeG24VW41ekVJuzhQc\r
30         5Uf0cUWyYcoKkqv9H7Q5OUWYPHt0azTJiVjM4Xay6EtRLsOURXps5BajjVo4i1M7Hrc2\r
31         quP9hH0gOY5WaDQwuKQn5oFDWKPn7MINIqVSgSq41YJ36dh5fAJTaByFxzuw0Ddmz487\r
32         zHP/dOo//BBDvI7enwjHQ0+/na3FNG1A3auGUNB3gfdOKPQZpEfBrERSSOjyx7TEAgGx\r
33         QdeN1oZ84UqSVhU+aOXX8hFBv0LMe85rHaxhoA7jW5BPKS09J68HjXma75GfM/EXgZlF\r
34         f9GQ==\r
35 Received: by 10.180.79.7 with SMTP id f7mr11827216wix.22.1351152571511;\r
36         Thu, 25 Oct 2012 01:09:31 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPS id fp6sm8766801wib.0.2012.10.25.01.09.29\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Thu, 25 Oct 2012 01:09:30 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH (draft) 0/2] Allow emacs to toggle display of all parts\r
44         including multipart\r
45 Date: Thu, 25 Oct 2012 09:09:21 +0100\r
46 Message-Id: <1351152563-27277-1-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\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, 25 Oct 2012 08:09:34 -0000\r
61 \r
62 This patch series adds a function to toggle the display of any emacs\r
63 part in the show buffer. This is particularly useful for\r
64 multipart/alternative where the parts have different information.\r
65 \r
66 The first patch binds this toggle to 't' on the part button. This\r
67 patch works by itself.\r
68 \r
69 The second patch makes it that "viewing" (ie v on the part-button) a\r
70 "not shown" part displays the part in the buffer. Note this is not a\r
71 toggle since having displayed the part in the buffer the user may wish\r
72 to view the part externally (eg if it is a text/html part).\r
73 \r
74 Caveats: \r
75          the patches work by reloading the whole buffer: this may mean\r
76          extra messages appear in the thread. This is not ideal but is\r
77          the same as toggling indentation etc.\r
78 \r
79          the reload saves state as normal but this means the view\r
80          returns to the top of the current message. Since we know\r
81          exactly where the user was (ie on the button) this should be\r
82          restored.\r
83 \r
84          for technical reasons the "view" part functionality in the\r
85          second patch only works for view called explicitly: not if\r
86          the user has customised the default action to be view and\r
87          calls that. This is easy to fix but the most natural way\r
88          would break existing customisation of this action.\r
89 \r
90          reloading the buffer without keeping state does not currently\r
91          reset the toggled parts. Again this is easy to fix but lets\r
92          see if people like the general approach first.\r
93 \r
94 Best wishes\r
95 \r
96 Mark\r
97 \r
98 \r
99 Mark Walters (2):\r
100   emacs: allow the user to toggle the visibility of\r
101     multipart/alternative parts\r
102   emacs: show: make "view part" show hidden parts\r
103 \r
104  emacs/notmuch-show.el |   53 ++++++++++++++++++++++++++++++++++++++++--------\r
105  1 files changed, 44 insertions(+), 9 deletions(-)\r
106 \r
107 -- \r
108 1.7.9.1\r
109 \r