From: Jonas Bernoulli Date: Sun, 10 Jan 2021 14:00:54 +0000 (+0100) Subject: emacs: notmuch-message-apply-queued-tag-changes: cosmetics X-Git-Tag: 0.32_rc0~145 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=b4deb33a66d6781fb6e516053efe67c60e934b63;hp=117501d5ceb332063adfeadc961e8c053f2cd942 emacs: notmuch-message-apply-queued-tag-changes: cosmetics --- diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el index 9dc8d056..abeff53a 100644 --- a/emacs/notmuch-message.el +++ b/emacs/notmuch-message.el @@ -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)