When crafting "override" regexp for new flex style

* lisp/minibuffer.el (completion-substring--all-completions): Fix.
This commit is contained in:
João Távora 2026-02-07 00:55:52 +00:00
parent 8279a9b6a1
commit 54caeafb1d

View file

@ -4909,10 +4909,11 @@ SIMPLE-RE is means to pass a simpler faster regular expression to
(funcall transform-pattern-fn pattern)
pattern)))
(override-re (and simple-re
(mapconcat #'identity
(mapconcat #'regexp-quote
(split-string
(substring string (car bounds)
(+ point (cdr bounds))) "" t)
(+ point (cdr bounds)))
"" t)
".*")))
(all (completion-pcm--all-completions prefix pattern table pred override-re)))
(list all pattern prefix suffix (car bounds))))