]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-message.el
emacs: notmuch-message-apply-queued-tag-changes: cosmetics
[notmuch] / 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)