diff options
| author | Tassilo Horn | 2019-03-08 19:59:32 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2019-03-08 20:00:49 +0100 |
| commit | bec7fb2988c98a4103cc77bebc454c81a89e0f49 (patch) | |
| tree | 16af76727225ed27d3d626e98f25a2cc607d8f4f | |
| parent | db9c924d3d53f46846ad8fd74a5d08f4586a520e (diff) | |
| download | emacs-bec7fb2988c98a4103cc77bebc454c81a89e0f49.tar.gz emacs-bec7fb2988c98a4103cc77bebc454c81a89e0f49.zip | |
New command ido-switch-to-completions.
* lisp/ido.el (ido-switch-to-completions): New command.
| -rw-r--r-- | lisp/ido.el | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index c268289a18f..08540145815 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -3965,8 +3965,24 @@ If `ido-change-word-sub' cannot be found in WORD, return nil." | |||
| 3965 | (exit-minibuffer) | 3965 | (exit-minibuffer) |
| 3966 | t)) | 3966 | t)) |
| 3967 | 3967 | ||
| 3968 | ;; This is a shameless copy of `switch-to-completions'. | ||
| 3969 | (defun ido-switch-to-completions () | ||
| 3970 | "Select the window showing `ido-completion-buffer'." | ||
| 3971 | (interactive) | ||
| 3972 | (let ((window (or (get-buffer-window ido-completion-buffer 0) | ||
| 3973 | ;; Make sure we have a completions window. | ||
| 3974 | (progn (ido-completion-help) | ||
| 3975 | (get-buffer-window ido-completion-buffer 0))))) | ||
| 3976 | (when window | ||
| 3977 | (select-window window) | ||
| 3978 | ;; In the new buffer, go to the first completion. | ||
| 3979 | ;; FIXME: Perhaps this should be done in `ido-completion-help'. | ||
| 3980 | (when (bobp) | ||
| 3981 | (next-completion 1))))) | ||
| 3982 | |||
| 3983 | |||
| 3968 | (defun ido-completion-help () | 3984 | (defun ido-completion-help () |
| 3969 | "Show possible completions in a \"*File Completions*\" buffer." | 3985 | "Show possible completions in the `ido-completion-buffer'." |
| 3970 | (interactive) | 3986 | (interactive) |
| 3971 | (setq ido-rescan nil) | 3987 | (setq ido-rescan nil) |
| 3972 | (let ((temp-buf (and ido-completion-buffer | 3988 | (let ((temp-buf (and ido-completion-buffer |