]> git.eshelyaron.com Git - emacs.git/commitdiff
(pcomplete-entries): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Wed, 31 Jul 2002 22:01:54 +0000 (22:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 31 Jul 2002 22:01:54 +0000 (22:01 +0000)
lisp/pcomplete.el

index 9b944ce4cf2170df021c3c5a04751cd9ad18de34..3ab1619f127e08e1d9b15630d611809efecde0e5 100644 (file)
@@ -695,14 +695,12 @@ Magic characters are those in `pcomplete-arg-quote-list'."
 
 (defun pcomplete-entries (&optional regexp predicate)
   "Complete against a list of directory candidates.
-This function always uses the last argument as the basis for
-completion.
 If REGEXP is non-nil, it is a regular expression used to refine the
 match (files not matching the REGEXP will be excluded).
 If PREDICATE is non-nil, it will also be used to refine the match
 \(files for which the PREDICATE returns nil will be excluded).
-If PATH is non-nil, it will be used for completion instead of
-consulting the last argument."
+If no directory information can be extracted from the completed
+component, DEFAULT-DIRECTORY is used as the basis for completion."
   (let* ((name (substitute-env-vars pcomplete-stub))
         (default-directory (expand-file-name
                             (or (file-name-directory name)