diff options
| author | Juri Linkov | 2006-06-28 14:16:20 +0000 |
|---|---|---|
| committer | Juri Linkov | 2006-06-28 14:16:20 +0000 |
| commit | d46104aeee73d302c214a30eed6ff603f6b209e4 (patch) | |
| tree | f61f24df7a516de2b374c694ceafce43585a53ce | |
| parent | 26f544d3937482fc584dab8b7bb4fb98b0b1a443 (diff) | |
| download | emacs-d46104aeee73d302c214a30eed6ff603f6b209e4.tar.gz emacs-d46104aeee73d302c214a30eed6ff603f6b209e4.zip | |
(partial-completion-mode): In lambda for
`choose-completion-string-functions' use full function signature
with 4 args, and move point to the end of the minibuffer only if arg
`mini-p' is non-nil.
| -rw-r--r-- | lisp/complete.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/complete.el b/lisp/complete.el index df1bc2bfd8b..ca6231893c3 100644 --- a/lisp/complete.el +++ b/lisp/complete.el | |||
| @@ -234,7 +234,9 @@ second TAB brings up the `*Completions*' buffer." | |||
| 234 | (funcall | 234 | (funcall |
| 235 | (if partial-completion-mode 'add-hook 'remove-hook) | 235 | (if partial-completion-mode 'add-hook 'remove-hook) |
| 236 | 'choose-completion-string-functions | 236 | 'choose-completion-string-functions |
| 237 | (lambda (&rest x) (goto-char (point-max)) nil)) | 237 | (lambda (choice buffer mini-p base-size) |
| 238 | (if mini-p (goto-char (point-max))) | ||
| 239 | nil)) | ||
| 238 | ;; Build the env-completion and mapping table. | 240 | ;; Build the env-completion and mapping table. |
| 239 | (when (and partial-completion-mode (null PC-env-vars-alist)) | 241 | (when (and partial-completion-mode (null PC-env-vars-alist)) |
| 240 | (setq PC-env-vars-alist | 242 | (setq PC-env-vars-alist |