Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 60 / 98d5565fcfd6d2adb0441ceda494a30e0d4ccc
1 Return-Path: <bremner@unb.ca>\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 559D8431FD0\r
6         for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 14:50:15 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 9nfRZ+DIqOHk for <notmuch@notmuchmail.org>;\r
16         Sat, 17 Dec 2011 14:50:14 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 9488A431FB6\r
21         for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 14:50:14 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBHMoAXs006364\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sat, 17 Dec 2011 18:50:13 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@unb.ca>)\r
30         id 1Rc350-0001Uc-AF; Sat, 17 Dec 2011 18:50:10 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH] uncrustify.cfg: initial support for notmuch coding style\r
34 In-Reply-To: <1324135695-15487-1-git-send-email-david@tethera.net>\r
35 References: <1324135695-15487-1-git-send-email-david@tethera.net>\r
36 User-Agent: Notmuch/0.10.2+103~gd823dc2 (http://notmuchmail.org) Emacs/23.3.1\r
37         (x86_64-pc-linux-gnu)\r
38 Date: Sat, 17 Dec 2011 18:50:10 -0400\r
39 Message-ID: <87aa6qdd99.fsf@zancas.localnet>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain; charset=us-ascii\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sat, 17 Dec 2011 22:50:15 -0000\r
55 \r
56 On Sat, 17 Dec 2011 11:28:15 -0400, David Bremner <david@tethera.net> wrote:\r
57 > +#\r
58 > +# sample usage:\r
59 > +#        uncrustify --replace -c uncrustify.cfg foo.c\r
60 \r
61 There are several different possible workflows, here is what I have\r
62 found convenient.  To simplify the example, suppose we have a single\r
63 patch, and no uncommitted changes.\r
64 \r
65 I like to do this one file at a time; I'm not sure there is really any\r
66 good reason.\r
67 \r
68 1) $ uncrustify --replace -c uncrustify.cfg a.c\r
69 \r
70 2) Now carefully look at the changes and selectively add the ones you\r
71    agree with. I use magit (in emacs) for this. Git citool can also\r
72    stage a line at a time.\r
73 \r
74 3) $ git commit --amend\r
75 \r
76 4) $ git reset --hard # blow away any changes you didn't agree with.\r
77                    # remember, no uncommited changes to start with \r
78                    \r
79 Now repeat for each other c/c++/.h file your patch modifies.\r
80 \r
81 In principle you could do something similar to produce "Style cleanups\r
82 for file a.c" commits by doing a regular commit in step 3.\r
83 \r
84 d\r
85 \r
86 \r