Re: [PATCH v2] emacs: Add customization group for replying
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 6 Sep 2012 12:39:14 +0000 (14:39 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:24 +0000 (09:49 -0800)
3f/fe73d26d9bb58de95cd9dd777c7344daab0fc5 [new file with mode: 0644]

diff --git a/3f/fe73d26d9bb58de95cd9dd777c7344daab0fc5 b/3f/fe73d26d9bb58de95cd9dd777c7344daab0fc5
new file mode 100644 (file)
index 0000000..305833d
--- /dev/null
@@ -0,0 +1,144 @@
+Return-Path: <sojkam1@fel.cvut.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4F3B7431FAF\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Sep 2012 05:39:22 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id EUG3XtiA8vfN for <notmuch@notmuchmail.org>;\r
+       Thu,  6 Sep 2012 05:39:21 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1F725431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Sep 2012 05:39:21 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 6534B19F3333;\r
+       Thu,  6 Sep 2012 14:39:16 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id xfJ4XuCkEyzi; Thu,  6 Sep 2012 14:39:14 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id BA8AD19F2F4D;\r
+       Thu,  6 Sep 2012 14:39:14 +0200 (CEST)\r
+Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id 7F66D660904;\r
+       Thu,  6 Sep 2012 14:39:14 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.80)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1T9bMY-0000pr-BP; Thu, 06 Sep 2012 14:39:14 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2] emacs: Add customization group for replying\r
+In-Reply-To: <m2wr07fs0y.fsf@guru.guru-group.fi>\r
+References: <1346919815-20397-1-git-send-email-sojkam1@fel.cvut.cz>\r
+       <m2wr07fs0y.fsf@guru.guru-group.fi>\r
+User-Agent: Notmuch/0.14+23~g9d68aca (http://notmuchmail.org) Emacs/24.1.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Thu, 06 Sep 2012 14:39:14 +0200\r
+Message-ID: <87y5kntjf1.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 06 Sep 2012 12:39:22 -0000\r
+\r
+On Thu, Sep 06 2012, Tomi Ollila wrote:\r
+> On Thu, Sep 06 2012, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+>\r
+>> When one wants to customize the format of reply message, there is nothing\r
+>> to tell the user how to do it.  Without knowing that construction of\r
+>> reply buffer is actually implemented in the message package, it seems\r
+>> that replying cannot be customized.\r
+>>\r
+>> Because I was getting annoyed by the empty line the between the citation\r
+>> line and the quoted message, I figured out that changing this is fairly\r
+>> easy when one knows what to customize.\r
+>>\r
+>> This patch adds notmuch-reply customization group that contains\r
+>> references to the relevant customization options. The new group is easy\r
+>> to find as it is shown as a result of running "M-x customize-group RET\r
+>> notmuch RET".\r
+>> ---\r
+>\r
+> So far good, but...\r
+>\r
+> You forgot to handle the current group setting for \r
+> notmuch-message-replied-tags -- currently notmuch-message.el has this:\r
+>\r
+> (defcustom notmuch-message-replied-tags '("replied")\r
+>   "Tags to be automatically added to or removed from a message when it is\r
+>   replied to.\r
+> Any tag in the list will be added to a replied message or,\r
+> if it is prefaced with a \"-\", removed.\r
+>\r
+> For example, if you wanted to add a \"replied\" tag and remove\r
+> the \"inbox\" and \"todo\", you would set\r
+>     (\"replied\" \"-inbox\" \"-todo\"\)"\r
+>   :type 'list\r
+>   :group 'notmuch-send)\r
+>\r
+> If the above was changed to 'normuch-send, (require 'notmuch-lib)\r
+> was added to the beginning of notmuch-message.el and the defgroup\r
+> below was written as\r
+>\r
+> (defgroup notmuch-reply\r
+>   '((message-insertion custom-group)))\r
+>    "Replying to messages.\r
+>     ...\r
+>\r
+> would that work as expected ?\r
+\r
+Hi Tomi,\r
+\r
+I don't really get what are you trying to say. Do you mean that\r
+notmuch-message-replied-tags is referenced from notmuch-lib.el without\r
+(require 'notmuch-message)? I'm not sure whether it is required, but it\r
+works here without problems.\r
+\r
+Running M-x customize-variable RET notmuch-message-replied-tags RET\r
+shows the following. Note that both groups are mentioned at the bottom.\r
+No warning or errors are produced.\r
+\r
+-Michal\r
+\r
+--8<---------------cut here---------------start------------->8---\r
+To apply changes, use the Save or Set buttons.\r
+For details, see Saving Customizations in the Emacs manual.\r
+\r
+                                          Search \r
+\r
+ Operate on all settings in this buffer:\r
+  Set for current session   Save for future sessions \r
+  Undo edits   Reset to saved   Erase customizations     Exit \r
+\r
+Hide notmuch-message-replied-tags: '("replied")\r
+    State : STANDARD. (mismatch)\r
+   Tags to be automatically added to or removed from a message when it is replied to. Hide   \r
+   Any tag in the list will be added to a replied message or,\r
+   if it is prefaced with a "-", removed.\r
+   \r
+   For example, if you wanted to add a "replied" tag and remove\r
+   the "inbox" and "todo", you would set\r
+       ("replied" "-inbox" "-todo")\r
+Groups: Notmuch Send Notmuch Reply\r
+--8<---------------cut here---------------end--------------->8---\r
+\r