From: Mark Walters <markwalters1009@gmail.com>
To: Ingo Lohmar <i.lohmar@gmail.com>, notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: Fix notmuch-message-mark-replied.
Date: Sun, 08 Jul 2012 07:15:38 +0100 [thread overview]
Message-ID: <87bojqrd6d.fsf@qmul.ac.uk> (raw)
In-Reply-To: <87vcj8ckzm.fsf@acer.localhost.com>
On Sun, 03 Jun 2012, Ingo Lohmar <i.lohmar@gmail.com> wrote:
> notmuch-message-mark-replied used "apply" to change message tags
> according to notmuch-message-replied-tags after sending a reply. This
> works if the latter is a single-element list. But with the recently
> changed format of tag changes, it breaks for multiple-element lists.
> Use "funcall" to properly pass the list of tag changes as a single
> argument.
This looks correct to me: the bug is still in current master and this
does fix it.
As Jamie says, it would be nice to have a test. Unfortunately, that is
beyond my test/emacs skills.
Note this bug does not occur with default configuration but the option
is a defcustom option, and following the example in that option's
documentation will cause the problem.
Since this patch has been around for over a month I think it should
probably be applied.
Best wishes
Mark
> ---
> emacs/notmuch-message.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el
> index 5964caa..d3738bf 100644
> --- a/emacs/notmuch-message.el
> +++ b/emacs/notmuch-message.el
> @@ -45,7 +45,7 @@ the \"inbox\" and \"todo\", you would set
> (concat "+" str)
> str))
> notmuch-message-replied-tags)))
> - (apply 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))
> + (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))
>
> (add-hook 'message-send-hook 'notmuch-message-mark-replied)
>
> --
> 1.7.10
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
next prev parent reply other threads:[~2012-07-08 6:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-03 18:23 [PATCH] emacs: Fix notmuch-message-mark-replied Ingo Lohmar
2012-06-04 18:40 ` Jameson Graef Rollins
2012-07-08 6:15 ` Mark Walters [this message]
2012-07-17 9:31 ` Tomi Ollila
2012-07-24 12:35 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bojqrd6d.fsf@qmul.ac.uk \
--to=markwalters1009@gmail.com \
--cc=i.lohmar@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).