]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Fix notmuch-message-mark-replied.
authorIngo Lohmar <i.lohmar@gmail.com>
Sun, 3 Jun 2012 18:23:57 +0000 (21:23 +0300)
committerDavid Bremner <bremner@debian.org>
Tue, 24 Jul 2012 12:01:26 +0000 (09:01 -0300)
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.

emacs/notmuch-message.el

index 5964caa3ce5b945d8c4aa2182889ef0f100ce069..d3738bf44e785193beb015fb12423829763b470e 100644 (file)
@@ -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)