# HG changeset patch # User Juri Linkov # Date 1151504180 0 # Node ID 983727db2901e1144db9bd52c99a68f2ae86d826 # Parent a04fe4434fba5cedb90630519ee441c71b8cf4e1 (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. diff -r a04fe4434fba -r 983727db2901 lisp/complete.el --- a/lisp/complete.el Wed Jun 28 14:15:41 2006 +0000 +++ b/lisp/complete.el Wed Jun 28 14:16:20 2006 +0000 @@ -234,7 +234,9 @@ (funcall (if partial-completion-mode 'add-hook 'remove-hook) 'choose-completion-string-functions - (lambda (&rest x) (goto-char (point-max)) nil)) + (lambda (choice buffer mini-p base-size) + (if mini-p (goto-char (point-max))) + nil)) ;; Build the env-completion and mapping table. (when (and partial-completion-mode (null PC-env-vars-alist)) (setq PC-env-vars-alist