|
From: | Gregory Heytings |
Subject: | bug#46368: Completion vs. "*" buffer names |
Date: | Wed, 10 Feb 2021 12:16:25 +0000 |
$ emacs -nw -Q --eval '(progn(switch-to-buffer "xbp")(switch-to-buffer "xbq")(switch-to-buffer "m"))' b ;; self-insert-command TAB ;; minibuffer-completeWhat is bugging me is that in the *completions* buffer, the x is added to the front, properly. But in the minibuffer it is missing. Yes I didn't type "x", but still, emacs should put it in the minibuffer for me. Emacs will eventually, but it would be better sooner than later.
Yes, that's because "partial-completion" is a member of "completion-styles". Try
$ emacs -nw -Q --eval '(progn(switch-to-buffer "xbp")(switch-to-buffer "ybq")(switch-to-buffer "m"))' b TABand you'll see that the two completion candidates are displayed in the *Completions* buffer, even though they have a different prefix ("x" and "y").
Perhaps that would be an enhancement request: when all completion candidates start with the same prefix, add it to the input string when minibuffer-complete is called.
[Prev in Thread] | Current Thread | [Next in Thread] |