]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: notmuch-message-apply-queued-tag-changes: cosmetics
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 14:00:54 +0000 (15:00 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2021 11:23:11 +0000 (07:23 -0400)
emacs/notmuch-message.el

index 9dc8d056146cd15cdbc179f82582206ae92d1b75..abeff53a7b87196742b36cdfa9981b15b461b9a9 100644 (file)
@@ -62,9 +62,8 @@ applied to the matching messages.")
 (defun notmuch-message-apply-queued-tag-changes ()
   ;; Apply the tag changes queued in the buffer-local variable
   ;; notmuch-message-queued-tag-changes.
-  (dolist (query-and-tags notmuch-message-queued-tag-changes)
-    (notmuch-tag (car query-and-tags)
-                (cdr query-and-tags))))
+  (pcase-dolist (`(,query . ,tags) notmuch-message-queued-tag-changes)
+    (notmuch-tag query tags)))
 
 (add-hook 'message-send-hook 'notmuch-message-apply-queued-tag-changes)