From 173e0f3cc0ee13d89e59abdb7b00160687a20969 Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Tue, 21 Sep 2021 18:44:54 +0300 Subject: [PATCH] fix(notmuch): notmuch-read-tag-changes error Due to notmuch abusing the completing-read-multiple api, notmuch-read-tags-changes errors out without this fix. A bug report has been filed about this upstream, so hopefully this is a strictly temporary measure. Ref https://yhetil.org/notmuch/87h7efuv6i.fsf@tethera.net/T/ Ref minad/vertico#119 --- modules/email/notmuch/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/email/notmuch/config.el b/modules/email/notmuch/config.el index 1ebc040ae..1979e37e2 100644 --- a/modules/email/notmuch/config.el +++ b/modules/email/notmuch/config.el @@ -68,6 +68,10 @@ OR a shell command string such as (advice-add #'notmuch-start-notmuch-sentinel :around #'+notmuch-dont-confirm-on-kill-process-a) + ;;HACK temporary fix until notmuch stops abusing the completing-read-multiple api upstream + (when (featurep! :completion vertico) + (advice-add #'notmuch-read-tag-changes :filter-return (lambda (x) (mapcar #'string-trim x)))) + ;; modeline doesn't have much use in these modes (add-hook! '(notmuch-show-mode-hook notmuch-tree-mode-hook