]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of windows/buffers for non-nil completion-auto-select (bug#55712)
authorJuri Linkov <juri@linkov.net>
Tue, 31 May 2022 17:52:37 +0000 (20:52 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 31 May 2022 17:52:37 +0000 (20:52 +0300)
commit03b780e387e54c23ac9322e329aca6e5ab4f18e6
tree5275730c700725b714e76d075a7aefadf7cc5e7f
parent576d75091560119205657d8d5c27c5b862776aca
Fix handling of windows/buffers for non-nil completion-auto-select (bug#55712)

* lisp/minibuffer.el (completion--in-region-1): When completion-auto-select
is `second-tab', call switch-to-completions outside of `with-current-buffer'.
For the case of completion-auto-select customized to t,
move switch-to-completions from completion-setup-function
where it was called inside of with-current-buffer-window.

* lisp/simple.el (completion-setup-function): Move switch-to-completions
for completion-auto-select=t to completion--in-region-1 where it's
handled together with the case of `second-tab'.
(next-completion): Add check for the minibuffer to support in-buffer
inline completions.
lisp/minibuffer.el
lisp/simple.el