Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 96 / 88f8cdad80705a5a29047c498c2ded18c6aca9
1 Return-Path: <awg@xvx.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 4EC95431FAF\r
6         for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 08:49:44 -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 yzekFmOyaLJc for <notmuch@notmuchmail.org>;\r
16         Tue, 21 Feb 2012 08:49:40 -0800 (PST)\r
17 Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
18         [209.85.215.53]) (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 2CAA5431FAE\r
21         for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 08:49:40 -0800 (PST)\r
22 Received: by lahd3 with SMTP id d3so8197774lah.26\r
23         for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
24 Received-SPF: pass (google.com: domain of awg@xvx.ca designates 10.152.132.104\r
25         as permitted sender) client-ip=10.152.132.104; \r
26 Authentication-Results: mr.google.com;\r
27         spf=pass (google.com: domain of awg@xvx.ca designates\r
28         10.152.132.104 as permitted sender) smtp.mail=awg@xvx.ca\r
29 Received: from mr.google.com ([10.152.132.104])\r
30         by 10.152.132.104 with SMTP id ot8mr19916214lab.17.1329842977288\r
31         (num_hops = 1); Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
32 MIME-Version: 1.0\r
33 Received: by 10.152.132.104 with SMTP id ot8mr16667867lab.17.1329842977230;\r
34         Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
35 Sender: awg@xvx.ca\r
36 Received: by 10.112.114.103 with HTTP; Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
37 X-Originating-IP: [128.221.197.57]\r
38 In-Reply-To: <20120221055920.GA30513@mit.edu>\r
39 References: <1329361957-28493-1-git-send-email-awg+notmuch@xvx.ca>\r
40         <1329361957-28493-8-git-send-email-awg+notmuch@xvx.ca>\r
41         <20120221055920.GA30513@mit.edu>\r
42 Date: Tue, 21 Feb 2012 09:49:37 -0700\r
43 X-Google-Sender-Auth: ERr9P2lj7sKIQgkocaxdaqzQvxE\r
44 Message-ID:\r
45  <CAMoJFUvo6CZjeNSqeoR_HViKgxz-WS9Tx8qfOgaVgYbmmBWHiw@mail.gmail.com>\r
46 Subject: Re: [PATCH v5.2 7/7] emacs: Use the new JSON reply format and\r
47         message-cite-original\r
48 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
49 To: Austin Clements <amdragon@mit.edu>\r
50 Content-Type: text/plain; charset=ISO-8859-1\r
51 Content-Transfer-Encoding: quoted-printable\r
52 X-Gm-Message-State:\r
53  ALoCoQl5Ip+NRI6RQ/VODut1+trih2+UdbG+/lW7acaaHCJAbqy+VxjEB0+vXt/GE4uI/YXFpRzL\r
54 Cc: notmuch@notmuchmail.org\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Tue, 21 Feb 2012 16:49:44 -0000\r
68 \r
69 On Mon, Feb 20, 2012 at 22:59, Austin Clements <amdragon@mit.edu> wrote:\r
70 > I've been thinking about this more. =A0message-mode's default citation\r
71 > line is really unfortunate and quite possibly insane ("writes" isn't\r
72 > even the right tense and what's up with that extra line break?). =A0The\r
73 > option to change this is also well hidden (as an experiment, I tried\r
74 > navigating to it through customize and couldn't figure out where it\r
75 > was, even though I knew what I was looking for). =A0In general, I'm a\r
76 > fan of inheriting as many options from Emacs as possible, but people\r
77 > *are* going to ask how to change this and the default setting *is*\r
78 > going to turn people off of notmuch ("What mail client do you use that\r
79 > generates those quirky citation lines?" =A0"I use notmuch!" =A0"Is that,\r
80 > like, from the 80's?").\r
81 \r
82 Agreed. It's a really unfortunate default.\r
83 \r
84 > So, what about adding a notmuch customize option for selecting the\r
85 > citation line format? =A0It could offer a few const choices, including a\r
86 > default, sane format, plus the option to enter your own or to fall\r
87 > back to whatever message-mode is configured to do. =A0If we do this,\r
88 > it's probably best done in a follow-up series, but this seemed like an\r
89 > appropriate place to bring it up.\r
90 \r
91 I think there are two options, which have been discussed a bit before [1]:\r
92 \r
93 1) Wrap the citation format with a notmuch customization variable,\r
94 notmuch-citation-line-format or somesuch. Then set the\r
95 message-citation-line-format before calling message-cite-original.\r
96 \r
97 2) Have notmuch load a user config file (~/.notmuch.el or something)\r
98 on startup, and provide a default file that sets nice defaults for\r
99 things like message-citation-line-format. The default file could even\r
100 be constructed on first run, such that if the user has already\r
101 customized some things (like message-citation-line-format) we can keep\r
102 their settings.\r
103 \r
104 Option 2 is obviously more work, but I think it's the right way to go,\r
105 at least in the long run. In addition to giving a place to provide\r
106 nice defaults for non-notmuch variables, it gives the user a nice\r
107 place to specify notmuch-specific config. For example, I use\r
108 completely separate init files for notmuch and other emacs usage, and\r
109 having a notmuch config file would let me get away from this slightly\r
110 kludgey setup.\r
111 \r
112 In either case, this can probably come as a separate patch series, but\r
113 it is good to start discussing it here.\r
114 \r
115 [1] id:"m2mx9i3onw.fsf@wal122.wireless-pennnet.upenn.edu"\r