diff options
| author | Richard M. Stallman | 1997-08-08 22:09:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-08 22:09:25 +0000 |
| commit | 19183a29c3703ea293f6025dbb11324e3696a6e8 (patch) | |
| tree | 0595171c0b36b171fa2ff031a9111db55c954c3d | |
| parent | 5017dcaa27e1770a49f25126e8ff54c5f3e12ca0 (diff) | |
| download | emacs-19183a29c3703ea293f6025dbb11324e3696a6e8.tar.gz emacs-19183a29c3703ea293f6025dbb11324e3696a6e8.zip | |
(completion-setup-function): Don't set completion-base-size
when completing in a non-minibuffer.
| -rw-r--r-- | lisp/simple.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index f0fba7da342..a00368e47a5 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.") | |||
| 3507 | (goto-char (point-max)) | 3507 | (goto-char (point-max)) |
| 3508 | (skip-chars-backward (format "^%c" directory-sep-char)) | 3508 | (skip-chars-backward (format "^%c" directory-sep-char)) |
| 3509 | (- (point) (point-min)))) | 3509 | (- (point) (point-min)))) |
| 3510 | ;; Otherwise, the whole input is the text being completed. | 3510 | ;; Otherwise, in minibuffer, the whole input is being completed. |
| 3511 | (setq completion-base-size 0)) | 3511 | (save-match-data |
| 3512 | (if (string-match "\\` \\*Minibuf-[0-9]+\\*\\'" | ||
| 3513 | (buffer-name mainbuf)) | ||
| 3514 | (setq completion-base-size 0)))) | ||
| 3512 | (goto-char (point-min)) | 3515 | (goto-char (point-min)) |
| 3513 | (if window-system | 3516 | (if window-system |
| 3514 | (insert (substitute-command-keys | 3517 | (insert (substitute-command-keys |