Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9e / b3918bf8cf64912de183e10619356ced3a43d9
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 2B071431FC2\r
6         for <notmuch@notmuchmail.org>; Fri, 25 Jul 2014 01:52:10 -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\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 4vRNpeGkAT-K for <notmuch@notmuchmail.org>;\r
16         Fri, 25 Jul 2014 01:51:59 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id A2644431FAF\r
19         for <notmuch@notmuchmail.org>; Fri, 25 Jul 2014 01:51:59 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id A8414100199;\r
22         Fri, 25 Jul 2014 11:51:52 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] emacs: Clarify that notmuch-poll-script is deprecated\r
26 In-Reply-To: <1406236771-5792-1-git-send-email-amdragon@mit.edu>\r
27 References: <1406236771-5792-1-git-send-email-amdragon@mit.edu>\r
28 User-Agent: Notmuch/0.18.1+25~gdaf4b6f (http://notmuchmail.org) Emacs/24.3.1\r
29         (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Fri, 25 Jul 2014 11:51:52 +0300\r
34 Message-ID: <m2zjfxkehj.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Fri, 25 Jul 2014 08:52:10 -0000\r
50 \r
51 On Fri, Jul 25 2014, Austin Clements <amdragon@MIT.EDU> wrote:\r
52 \r
53 > notmuch-poll-script has long since been deprecated in favor of\r
54 > post-new hooks, but this wasn't obvious from the documentation.\r
55 > Update the documentation to make this clear.  Since\r
56 > notmuch-poll-script could, to some extend, be used to control the path\r
57 > of the notmuch binary and that use is now clearly discouraged, promote\r
58 > notmuch-command to a real defcustom instead of just a variable.\r
59 > ---\r
60 \r
61 Fine by me -- although the post/pre-new hooks are not sufficient for me ;D\r
62 \r
63 Tomi\r
64 \r
65 >  emacs/notmuch-lib.el | 24 ++++++++++++++++--------\r
66 >  1 file changed, 16 insertions(+), 8 deletions(-)\r
67 >\r
68 > diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
69 > index 2941da3..c06baac 100644\r
70 > --- a/emacs/notmuch-lib.el\r
71 > +++ b/emacs/notmuch-lib.el\r
72 > @@ -25,9 +25,6 @@\r
73 >  (require 'mm-decode)\r
74 >  (require 'cl)\r
75 >  \r
76 > -(defvar notmuch-command "notmuch"\r
77 > -  "Command to run the notmuch binary.")\r
78 > -\r
79 >  (defgroup notmuch nil\r
80 >    "Notmuch mail reader for Emacs."\r
81 >    :group 'mail)\r
82 > @@ -66,6 +63,16 @@ (defgroup notmuch-faces nil\r
83 >    "Graphical attributes for displaying text"\r
84 >    :group 'notmuch)\r
85 >  \r
86 > +(defcustom notmuch-command "notmuch"\r
87 > +  "Name of the notmuch binary.\r
88 > +\r
89 > +This can be a relative or absolute path to the notmuch binary.\r
90 > +If this is a relative path, it will be searched for in all of the\r
91 > +directories given in `exec-path' (which is, by default, based on\r
92 > +$PATH)."\r
93 > +  :type 'string\r
94 > +  :group 'notmuch-external)\r
95 > +\r
96 >  (defcustom notmuch-search-oldest-first t\r
97 >    "Show the oldest mail first when searching.\r
98 >  \r
99 > @@ -77,7 +84,11 @@ (defcustom notmuch-search-oldest-first t\r
100 >    :group 'notmuch-search)\r
101 >  \r
102 >  (defcustom notmuch-poll-script nil\r
103 > -  "An external script to incorporate new mail into the notmuch database.\r
104 > +  "[Deprecated] Command to run to incorporate new mail into the notmuch database.\r
105 > +\r
106 > +This option has been deprecated in favor of \"notmuch new\"\r
107 > +hooks (see man notmuch-hooks).  To change the path to the notmuch\r
108 > +binary, customize `notmuch-command'.\r
109 >  \r
110 >  This variable controls the action invoked by\r
111 >  `notmuch-poll-and-refresh-this-buffer' (bound by default to 'G')\r
112 > @@ -93,10 +104,7 @@ (defcustom notmuch-poll-script nil\r
113 >  \r
114 >  1. Invoke a program to transfer mail to the local mail store\r
115 >  2. Invoke \"notmuch new\" to incorporate the new mail\r
116 > -3. Invoke one or more \"notmuch tag\" commands to classify the mail\r
117 > -\r
118 > -Note that the recommended way of achieving the same is using\r
119 > -\"notmuch new\" hooks."\r
120 > +3. Invoke one or more \"notmuch tag\" commands to classify the mail"\r
121 >    :type '(choice (const :tag "notmuch new" nil)\r
122 >                (const :tag "Disabled" "")\r
123 >                (string :tag "Custom script"))\r
124 > -- \r
125 > 2.0.0\r
126 >\r
127 > _______________________________________________\r
128 > notmuch mailing list\r
129 > notmuch@notmuchmail.org\r
130 > http://notmuchmail.org/mailman/listinfo/notmuch\r