emacs: notmuch-message-apply-queued-tag-changes: cosmetics

This commit is contained in:
Jonas Bernoulli 2021-01-10 15:00:54 +01:00 committed by David Bremner
parent 117501d5ce
commit b4deb33a66

View 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)