]> git.eshelyaron.com Git - emacs.git/commit
Fix 'partial-completion' for candidates containing newlines
authorSpencer Baugh <sbaugh@janestreet.com>
Fri, 2 Aug 2024 16:15:58 +0000 (12:15 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 16 Aug 2024 06:44:45 +0000 (08:44 +0200)
commit6286971e1a7bed654c4500634f55db2f29cf4406
tree553894c9cbef3603a4528671fce5fdcf6d23b361
parent3f88871c131c950b9d7b349d01510201446d5904
Fix 'partial-completion' for candidates containing newlines

'partial-completion' tries to match a pattern containing wildcards
(such as `any' or `prefix') against completion candidates.
Wildcards are supposed to match any sequence of characters, but
'completion-pcm--pattern->regex' transformed the wildcards into
".*", which won't match sequences containing newlines.  Fix this to
properly match anything by using "[^z-a]*" instead.
(That's (rx (* anything)).)
* lisp/minibuffer.el (completion-pcm--pattern->regex): Fix
regex.  (Bug#72425)

(cherry picked from commit 7b60a2532895ebda2db2798767cbaff049032edb)
lisp/minibuffer.el