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
This commit is contained in:
Itai Y. Efrat 2021-09-21 18:44:54 +03:00 committed by Henrik Lissner
parent 34f76c8a75
commit 173e0f3cc0

View file

@ -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) (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 ;; modeline doesn't have much use in these modes
(add-hook! '(notmuch-show-mode-hook (add-hook! '(notmuch-show-mode-hook
notmuch-tree-mode-hook notmuch-tree-mode-hook