aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-04-15 15:55:41 -0400
committerStefan Monnier2013-04-15 15:55:41 -0400
commit21e8fe2f857c0d7bb50809bc34d22586dc7da893 (patch)
tree813f21ab6c39122f6f9bbc91db35010f2588c4af
parent8fa2654ed8fd2118b8a3120e2b4f9857e6a96239 (diff)
downloademacs-21e8fe2f857c0d7bb50809bc34d22586dc7da893.tar.gz
emacs-21e8fe2f857c0d7bb50809bc34d22586dc7da893.zip
* lisp/minibuffer.el (minibuffer-complete): Don't just scroll
a *Completions* that's been iconified. (minibuffer-force-complete): Make sure repetitions do cycle when going through completion-in-region -> minibuffer-complete.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/minibuffer.el5
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f366c1937af..f11d332ab0c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12013-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * minibuffer.el (minibuffer-complete): Don't just scroll
4 a *Completions* that's been iconified.
5 (minibuffer-force-complete): Make sure repetitions do cycle when going
6 through completion-in-region -> minibuffer-complete.
7
12013-04-15 Alan Mackenzie <acm@muc.de> 82013-04-15 Alan Mackenzie <acm@muc.de>
2 9
3 Correct the placement of c-cpp-delimiters when there're #s not at 10 Correct the placement of c-cpp-delimiters when there're #s not at
@@ -5,8 +12,8 @@
5 12
6 * progmodes/cc-langs.el (c-anchored-cpp-prefix): Reformulate and 13 * progmodes/cc-langs.el (c-anchored-cpp-prefix): Reformulate and
7 place a submatch around the #. 14 place a submatch around the #.
8 * progmodes/cc-mode.el(c-neutralize-syntax-in-and-mark-CPP): Start 15 * progmodes/cc-mode.el(c-neutralize-syntax-in-and-mark-CPP):
9 a search at BOL. Put the c-cpp-delimiter category text propertiy 16 Start a search at BOL. Put the c-cpp-delimiter category text propertiy
10 on the #, not BOL. 17 on the #, not BOL.
11 18
122013-04-15 Stefan Monnier <monnier@iro.umontreal.ca> 192013-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 016b16d0740..d07f270a519 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1043,7 +1043,8 @@ scroll the window of possible completions."
1043 (cond 1043 (cond
1044 ;; If there's a fresh completion window with a live buffer, 1044 ;; If there's a fresh completion window with a live buffer,
1045 ;; and this command is repeated, scroll that window. 1045 ;; and this command is repeated, scroll that window.
1046 ((window-live-p minibuffer-scroll-window) 1046 ((and (window-live-p minibuffer-scroll-window)
1047 (eq t (frame-visible-p (window-frame minibuffer-scroll-window))))
1047 (let ((window minibuffer-scroll-window)) 1048 (let ((window minibuffer-scroll-window))
1048 (with-current-buffer (window-buffer window) 1049 (with-current-buffer (window-buffer window)
1049 (if (pos-visible-in-window-p (point-max) window) 1050 (if (pos-visible-in-window-p (point-max) window)
@@ -1140,6 +1141,7 @@ scroll the window of possible completions."
1140 "Complete the minibuffer to an exact match. 1141 "Complete the minibuffer to an exact match.
1141Repeated uses step through the possible completions." 1142Repeated uses step through the possible completions."
1142 (interactive) 1143 (interactive)
1144 (setq minibuffer-scroll-window nil)
1143 ;; FIXME: Need to deal with the extra-size issue here as well. 1145 ;; FIXME: Need to deal with the extra-size issue here as well.
1144 ;; FIXME: ~/src/emacs/t<M-TAB>/lisp/minibuffer.el completes to 1146 ;; FIXME: ~/src/emacs/t<M-TAB>/lisp/minibuffer.el completes to
1145 ;; ~/src/emacs/trunk/ and throws away lisp/minibuffer.el. 1147 ;; ~/src/emacs/trunk/ and throws away lisp/minibuffer.el.
@@ -1162,6 +1164,7 @@ Repeated uses step through the possible completions."
1162 (completion--done (buffer-substring-no-properties start (point)) 'sole) 1164 (completion--done (buffer-substring-no-properties start (point)) 'sole)
1163 ;; Set cycling after modifying the buffer since the flush hook resets it. 1165 ;; Set cycling after modifying the buffer since the flush hook resets it.
1164 (setq completion-cycling t) 1166 (setq completion-cycling t)
1167 (setq this-command 'completion-at-point) ;For minibuffer-complete.
1165 ;; If completing file names, (car all) may be a directory, so we'd now 1168 ;; If completing file names, (car all) may be a directory, so we'd now
1166 ;; have a new set of possible completions and might want to reset 1169 ;; have a new set of possible completions and might want to reset
1167 ;; completion-all-sorted-completions to nil, but we prefer not to, 1170 ;; completion-all-sorted-completions to nil, but we prefer not to,