]> git.eshelyaron.com Git - emacs.git/commit
; Improve 'minibuffer-force-complete-and-exit'
authorEshel Yaron <me@eshelyaron.com>
Tue, 13 Feb 2024 20:56:53 +0000 (21:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 13 Feb 2024 20:57:49 +0000 (21:57 +0100)
commitaac3d04c5ed36561fff4b9ab1922c22726fbdf10
treec4a9cea05e5f80ba983e8e9052f2e0bd64d46d5a
parent51bc642af731805f73a99410d48112d8f52c46b7
; Improve 'minibuffer-force-complete-and-exit'

* lisp/minibuffer.el (minibuffer-force-complete-and-exit): Use
base size as determined by 'completion-all-sorted-completions',
instead of the beginning of current completion field (from
'completion-boundaries').  Those can differ when
'partial-completion' picks up part of the previous fields.  For
example, in file name completion with input "emacs/lisp/pr/xr",
we want to replace also the last field "pr" when completing to
"emacs/lisp/progmodes/xref.el".
lisp/minibuffer.el