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 () (defun notmuch-message-apply-queued-tag-changes ()
;; Apply the tag changes queued in the buffer-local variable ;; Apply the tag changes queued in the buffer-local variable
;; notmuch-message-queued-tag-changes. ;; notmuch-message-queued-tag-changes.
(dolist (query-and-tags notmuch-message-queued-tag-changes) (pcase-dolist (`(,query . ,tags) notmuch-message-queued-tag-changes)
(notmuch-tag (car query-and-tags) (notmuch-tag query tags)))
(cdr query-and-tags))))
(add-hook 'message-send-hook 'notmuch-message-apply-queued-tag-changes) (add-hook 'message-send-hook 'notmuch-message-apply-queued-tag-changes)