From 54caeafb1dcd1af159131cbf0189de171f73949b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 7 Feb 2026 00:55:52 +0000 Subject: [PATCH] When crafting "override" regexp for new flex style * lisp/minibuffer.el (completion-substring--all-completions): Fix. --- lisp/minibuffer.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 5b5408a595c..ffdc84aea90 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -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))))