mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-29 19:48:19 +00:00
(switch-to-completions): If no completions window,
don't try to switch to it.
This commit is contained in:
parent
afc070d1d4
commit
fdbd7c4d62
@ -3609,10 +3609,12 @@ select the completion near point.\n\n"))
|
||||
;; Make sure we have a completions window.
|
||||
(or (get-buffer-window "*Completions*")
|
||||
(minibuffer-completion-help))
|
||||
(select-window (get-buffer-window "*Completions*"))
|
||||
(goto-char (point-min))
|
||||
(search-forward "\n\n")
|
||||
(forward-line 1))
|
||||
(let ((window (get-buffer-window "*Completions*")))
|
||||
(when window
|
||||
(select-window window)
|
||||
(goto-char (point-min))
|
||||
(search-forward "\n\n")
|
||||
(forward-line 1))))
|
||||
|
||||
;; Support keyboard commands to turn on various modifiers.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user