Commit fdbd7c4d authored by Karl Heuer's avatar Karl Heuer

(switch-to-completions): If no completions window,

don't try to switch to it.
parent afc070d1
......@@ -3609,10 +3609,12 @@ select the completion near point.\n\n"))
;; Make sure we have a completions window.
(or (get-buffer-window "*Completions*")
(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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment