Re: Error with contrib/notmuch-pick
[notmuch-archives.git] / e7 / b81103636b68597baf9d6f2cf3fc373ff8aa3e
1 Return-Path: <pieter@praet.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 258F3431E64\r
6         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:06:03 -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 WC39kNYQcPrx for <notmuch@notmuchmail.org>;\r
16         Sun, 29 Jan 2012 23:06:02 -0800 (PST)\r
17 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
18         [74.125.82.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 6376D431FBC\r
21         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:06:02 -0800 (PST)\r
22 Received: by werb10 with SMTP id b10so3515617wer.26\r
23         for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:05:59 -0800 (PST)\r
24 Received: by 10.216.133.213 with SMTP id q63mr6561687wei.49.1327907159720;\r
25         Sun, 29 Jan 2012 23:05:59 -0800 (PST)\r
26 Received: from localhost ([109.131.39.11])\r
27         by mx.google.com with ESMTPS id l6sm28020098wiv.11.2012.01.29.23.05.58\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Sun, 29 Jan 2012 23:05:58 -0800 (PST)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: David Bremner <david@tethera.net>, David Edmondson <dme@dme.org>,\r
32         Jani Nikula <jani@nikula.org>\r
33 Subject: Re: [PATCH] emacs: globally replace non-branching "(if COND (progn\r
34         ..." with "(when ..."\r
35 In-Reply-To: <87y5ssxam7.fsf@zancas.localnet>\r
36 References: <87k44uprvy.fsf@praet.org>\r
37         <1326532638-22068-1-git-send-email-pieter@praet.org>\r
38         <87y5ssxam7.fsf@zancas.localnet>\r
39 User-Agent: Notmuch/0.11+132~ga81001f (http://notmuchmail.org) Emacs/23.3.1\r
40         (x86_64-unknown-linux-gnu)\r
41 Date: Mon, 30 Jan 2012 08:03:59 +0100\r
42 Message-ID: <8739ax7jts.fsf@praet.org>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 Cc: Notmuch Mail <notmuch@notmuchmail.org>\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: Mon, 30 Jan 2012 07:06:03 -0000\r
59 \r
60 On Sat, 28 Jan 2012 08:41:36 -0400, David Bremner <david@tethera.net> wrote:\r
61 > On Sat, 14 Jan 2012 10:17:18 +0100, Pieter Praet <pieter@praet.org> wrote:\r
62 > > Less code, same results, without sacrificing readability.\r
63 > > \r
64\r
65 > This looks OK, although the re-indenting makes these kind of changes\r
66 > painful to review (not that I'm suggesting we should re-indent, just\r
67 > some random complaining).\r
68\r
69 \r
70 You can use `diff-refine-hunk' to see what the actual changes are.\r
71 \r
72 Try this:\r
73 \r
74   #+begin_src emacs-lisp\r
75     (global-set-key (kbd "C-c /")\r
76                     (lambda()\r
77                       "Refine display of unified diff hunks"\r
78                       (interactive)\r
79                       (save-excursion\r
80                         (goto-char (point-min))\r
81                         (while (re-search-forward\r
82                                 diff-hunk-header-re-unified\r
83                                 nil t)\r
84                           (diff-refine-hunk)))))\r
85   #+end_src\r
86 \r
87 Work pretty much *anywhere*.\r
88 \r
89 Note: it does NOT work in `notmuch-show-mode' (not even with\r
90 `notmuch-wash-convert-inline-patch-to-part' disabled), but this is\r
91 easily solved by first running `notmuch-show-view-raw-message' ("V")\r
92 and `diff-mode' (to fontify the buffer)...\r
93 \r
94 > d\r
95\r
96\r
97 \r
98 \r
99 Peace\r
100 \r
101 -- \r
102 Pieter\r