diff options
| author | Karl Heuer | 1998-01-18 03:32:20 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-01-18 03:32:20 +0000 |
| commit | fdbd7c4d622a9b16f5411ac52bad2e99cf91394e (patch) | |
| tree | 61c30de7d7b8cf57a44acda5d4272efb0e6f7445 | |
| parent | afc070d1d467de4014aeb5bb804a1cc8b6cafd2b (diff) | |
| download | emacs-fdbd7c4d622a9b16f5411ac52bad2e99cf91394e.tar.gz emacs-fdbd7c4d622a9b16f5411ac52bad2e99cf91394e.zip | |
(switch-to-completions): If no completions window,
don't try to switch to it.
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index fcb53009dff..944f8e9e0e0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3609,10 +3609,12 @@ select the completion near point.\n\n")) | |||
| 3609 | ;; Make sure we have a completions window. | 3609 | ;; Make sure we have a completions window. |
| 3610 | (or (get-buffer-window "*Completions*") | 3610 | (or (get-buffer-window "*Completions*") |
| 3611 | (minibuffer-completion-help)) | 3611 | (minibuffer-completion-help)) |
| 3612 | (select-window (get-buffer-window "*Completions*")) | 3612 | (let ((window (get-buffer-window "*Completions*"))) |
| 3613 | (goto-char (point-min)) | 3613 | (when window |
| 3614 | (search-forward "\n\n") | 3614 | (select-window window) |
| 3615 | (forward-line 1)) | 3615 | (goto-char (point-min)) |
| 3616 | (search-forward "\n\n") | ||
| 3617 | (forward-line 1)))) | ||
| 3616 | 3618 | ||
| 3617 | ;; Support keyboard commands to turn on various modifiers. | 3619 | ;; Support keyboard commands to turn on various modifiers. |
| 3618 | 3620 | ||