(dabbrev-capf): Fix bug#80645.

* lisp/dabbrev.el (dabbrev-capf): Return an empty table rather than
signaling an error when there are no completions.
The completion UI already takes care of emitting a message like
"No match".
This commit is contained in:
Stefan Monnier
2026-03-21 22:53:13 -04:00
parent e427d55284
commit a7d0520721

View File

@@ -437,11 +437,6 @@ then it searches *all* buffers."
(let ((completion-list
(dabbrev--find-all-expansions abbrev ignore-case-p))
(completion-ignore-case ignore-case-p))
(or (consp completion-list)
(user-error "No dynamic expansion for \"%s\" found%s"
abbrev
(if dabbrev--check-other-buffers
"" " in this-buffer")))
(setq list
(cond
((not (and ignore-case-p dabbrev-case-replace))