Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d7 / 17d527e9e7a314e7bf8392adafa35ce6ae3f82
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 31269431E64\r
6         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:59:30 -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 N9OMTtpT0Y1X for <notmuch@notmuchmail.org>;\r
16         Sun, 29 Jan 2012 23:59:29 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 8E0D3431FBC\r
19         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:59:29 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 8839E68056; Mon, 30 Jan 2012 09:59:32 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: Pieter Praet <pieter@praet.org>, David Bremner <david@tethera.net>,\r
24         David Edmondson <dme@dme.org>, Jani Nikula <jani@nikula.org>\r
25 Subject: Re: [PATCH] emacs: globally replace non-branching "(if COND (progn\r
26         ..." with "(when ..."\r
27 In-Reply-To: <8739ax7jts.fsf@praet.org>\r
28 References: <87k44uprvy.fsf@praet.org>\r
29         <1326532638-22068-1-git-send-email-pieter@praet.org>\r
30         <87y5ssxam7.fsf@zancas.localnet> <8739ax7jts.fsf@praet.org>\r
31 User-Agent: Notmuch/0.11+116~g34d80c9 (http://notmuchmail.org) Emacs/23.3.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: Mon, 30 Jan 2012 09:59:32 +0200\r
37 Message-ID: <m2zkd5ipsr.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain; charset=us-ascii\r
40 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 30 Jan 2012 07:59:30 -0000\r
54 \r
55 On Mon, 30 Jan 2012 08:03:59 +0100, Pieter Praet <pieter@praet.org> wrote:\r
56 > On Sat, 28 Jan 2012 08:41:36 -0400, David Bremner <david@tethera.net> wrote:\r
57 > > On Sat, 14 Jan 2012 10:17:18 +0100, Pieter Praet <pieter@praet.org> wrote:\r
58 > > > Less code, same results, without sacrificing readability.\r
59 > > > \r
60 > > \r
61 > > This looks OK, although the re-indenting makes these kind of changes\r
62 > > painful to review (not that I'm suggesting we should re-indent, just\r
63 > > some random complaining).\r
64 > > \r
65\r
66 > You can use `diff-refine-hunk' to see what the actual changes are.\r
67\r
68 > Try this:\r
69\r
70 >   #+begin_src emacs-lisp\r
71 >     (global-set-key (kbd "C-c /")\r
72 >                     (lambda()\r
73 >                       "Refine display of unified diff hunks"\r
74 >                       (interactive)\r
75 >                       (save-excursion\r
76 >                         (goto-char (point-min))\r
77 >                         (while (re-search-forward\r
78 >                                 diff-hunk-header-re-unified\r
79 >                                 nil t)\r
80 >                           (diff-refine-hunk)))))\r
81 >   #+end_src\r
82\r
83 > Work pretty much *anywhere*.\r
84\r
85 > Note: it does NOT work in `notmuch-show-mode' (not even with\r
86 > `notmuch-wash-convert-inline-patch-to-part' disabled), but this is\r
87 > easily solved by first running `notmuch-show-view-raw-message' ("V")\r
88 > and `diff-mode' (to fontify the buffer)...\r
89 \r
90 What we need is 'notmuch-devel' minor mode which can do this, dme's\r
91 notmuch patching tool, nmbug tag changes and everything...\r
92 \r
93\r
94 > > d\r
95\r
96\r
97 > Peace\r
98\r
99 > -- \r
100 > Pieter\r
101 \r
102 Tomi\r