aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2009-11-19 17:40:14 +0000
committerJuri Linkov2009-11-19 17:40:14 +0000
commit042b7cc622ea041e7c06e9e467110b7a8f6e5f50 (patch)
tree92295175243a70bc46cb446fe8dcab25f7a1c596
parent40e93a2c2c6ebf36c996eb461f5fe0d1b26c6ff2 (diff)
downloademacs-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/ChangeLog8
-rw-r--r--lisp/simple.el9
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 @@
12009-11-19 Juri Linkov <juri@jurta.org> 12009-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
92009-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