aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-08-08 22:09:25 +0000
committerRichard M. Stallman <[email protected]>1997-08-08 22:09:25 +0000
commit19183a29c3703ea293f6025dbb11324e3696a6e8 (patch)
tree0595171c0b36b171fa2ff031a9111db55c954c3d
parent5017dcaa27e1770a49f25126e8ff54c5f3e12ca0 (diff)
(completion-setup-function): Don't set completion-base-size
when completing in a non-minibuffer.
-rw-r--r--lisp/simple.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index f0fba7da34..a00368e47a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3507,8 +3507,11 @@ If this function moves point, it can alter the end of that completion.")
(goto-char (point-max))
(skip-chars-backward (format "^%c" directory-sep-char))
(- (point) (point-min))))
- ;; Otherwise, the whole input is the text being completed.
- (setq completion-base-size 0))
+ ;; Otherwise, in minibuffer, the whole input is being completed.
+ (save-match-data
+ (if (string-match "\\` \\*Minibuf-[0-9]+\\*\\'"
+ (buffer-name mainbuf))
+ (setq completion-base-size 0))))
(goto-char (point-min))
(if window-system
(insert (substitute-command-keys