]> git.notmuchmail.org Git - notmuch/commitdiff
pick: Fix incorrect use of `notmuch-pick-tag'
authorAustin Clements <amdragon@MIT.EDU>
Wed, 23 Oct 2013 00:21:58 +0000 (20:21 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 26 Oct 2013 00:30:49 +0000 (21:30 -0300)
`notmuch-pick-tag' takes a list of tag changes, but
`notmuch-pick-archive-message' passes it a &rest argument.  This
happens to work if `notmuch-archive-tags' contains a single tag (which
it usually does), but will break if it does not.

contrib/notmuch-pick/notmuch-pick.el

index a492214d5b0a122864cdedd80c79d216fd123773..179076d8ac5e5360a5ad7232d1b4692c39aa2925 100644 (file)
@@ -542,8 +542,7 @@ message will be \"unarchived\", i.e. the tag changes in
 `notmuch-archive-tags' will be reversed."
   (interactive "P")
   (when notmuch-archive-tags
-    (apply 'notmuch-pick-tag
-          (notmuch-tag-change-list notmuch-archive-tags unarchive))))
+    (notmuch-pick-tag (notmuch-tag-change-list notmuch-archive-tags unarchive))))
 
 (defun notmuch-pick-archive-message-then-next (&optional unarchive)
   "Archive the current message and move to next matching message."