]> git.eshelyaron.com Git - emacs.git/commitdiff
(partial-completion-mode): In lambda for
authorJuri Linkov <juri@jurta.org>
Wed, 28 Jun 2006 14:16:20 +0000 (14:16 +0000)
committerJuri Linkov <juri@jurta.org>
Wed, 28 Jun 2006 14:16:20 +0000 (14:16 +0000)
`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.

lisp/complete.el

index df1bc2bfd8b735c2ac987614c4d4df4c7fb29b36..ca6231893c3b9e61bdf201c2cc7f6798658b6dd2 100644 (file)
@@ -234,7 +234,9 @@ second TAB brings up the `*Completions*' buffer."
   (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