guard against vertico not loaded

This commit is contained in:
bth 2026-06-07 10:18:50 -07:00
commit 0a0b1d3c4e

4
um.el
View file

@ -282,7 +282,9 @@ Negative prefix arg is handled by `um--tag-do', which see.
(history-delete-duplicates t)
;; override sorting when deleting, because we sort the tags:
(completions-sort (if insert completions-sort nil))
(vertico-sort-function (if insert vertico-sort-function nil))
(vertico-sort-function (if (and insert (bound-and-true-p vertico-sort-function))
vertico-sort-function
nil))
(tag (completing-read prompt collection nil nil nil
'um-tags-history)))