diff options
| author | Juri Linkov | 2009-11-19 17:40:14 +0000 |
|---|---|---|
| committer | Juri Linkov | 2009-11-19 17:40:14 +0000 |
| commit | 042b7cc622ea041e7c06e9e467110b7a8f6e5f50 (patch) | |
| tree | 92295175243a70bc46cb446fe8dcab25f7a1c596 | |
| parent | 40e93a2c2c6ebf36c996eb461f5fe0d1b26c6ff2 (diff) | |
| download | emacs-042b7cc622ea041e7c06e9e467110b7a8f6e5f50.tar.gz emacs-042b7cc622ea041e7c06e9e467110b7a8f6e5f50.zip | |
(switch-to-completions): Move point to the first
completion when point was at the beginning of the buffer.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9249454f5bd..741a72dd6e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2009-11-19 Juri Linkov <juri@jurta.org> | 1 | 2009-11-19 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * minibuffer.el (completions-format): New defcustom. | ||
| 4 | (completion--insert-strings): Implement vertical format. | ||
| 5 | |||
| 6 | * simple.el (switch-to-completions): Move point to the first | ||
| 7 | completion when point was at the beginning of the buffer. | ||
| 8 | |||
| 9 | 2009-11-19 Juri Linkov <juri@jurta.org> | ||
| 10 | |||
| 3 | * find-dired.el (find-name-arg): Remove autoload. (Bug#4387) | 11 | * find-dired.el (find-name-arg): Remove autoload. (Bug#4387) |
| 4 | 12 | ||
| 5 | * progmodes/grep.el (rgrep): Require `find-dired' for `find-name-arg'. | 13 | * progmodes/grep.el (rgrep): Require `find-dired' for `find-name-arg'. |
diff --git a/lisp/simple.el b/lisp/simple.el index 87e65eebce8..23811ad80fc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6032,14 +6032,15 @@ select the completion near point.\n\n")))))) | |||
| 6032 | "Select the completion list window." | 6032 | "Select the completion list window." |
| 6033 | (interactive) | 6033 | (interactive) |
| 6034 | (let ((window (or (get-buffer-window "*Completions*" 0) | 6034 | (let ((window (or (get-buffer-window "*Completions*" 0) |
| 6035 | ;; Make sure we have a completions window. | 6035 | ;; Make sure we have a completions window. |
| 6036 | (progn (minibuffer-completion-help) | 6036 | (progn (minibuffer-completion-help) |
| 6037 | (get-buffer-window "*Completions*" 0))))) | 6037 | (get-buffer-window "*Completions*" 0))))) |
| 6038 | (when window | 6038 | (when window |
| 6039 | (select-window window) | 6039 | (select-window window) |
| 6040 | (goto-char (point-min)) | 6040 | ;; In the new buffer, go to the first completion. |
| 6041 | (search-forward "\n\n" nil t) | 6041 | ;; FIXME: Perhaps this should be done in `minibuffer-completion-help'. |
| 6042 | (forward-line 1)))) | 6042 | (when (bobp) |
| 6043 | (next-completion 1))))) | ||
| 6043 | 6044 | ||
| 6044 | ;;; Support keyboard commands to turn on various modifiers. | 6045 | ;;; Support keyboard commands to turn on various modifiers. |
| 6045 | 6046 | ||