aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/pcomplete.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index 9b944ce4cf2..3ab1619f127 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -695,14 +695,12 @@ Magic characters are those in `pcomplete-arg-quote-list'."
695 695
696(defun pcomplete-entries (&optional regexp predicate) 696(defun pcomplete-entries (&optional regexp predicate)
697 "Complete against a list of directory candidates. 697 "Complete against a list of directory candidates.
698This function always uses the last argument as the basis for
699completion.
700If REGEXP is non-nil, it is a regular expression used to refine the 698If REGEXP is non-nil, it is a regular expression used to refine the
701match (files not matching the REGEXP will be excluded). 699match (files not matching the REGEXP will be excluded).
702If PREDICATE is non-nil, it will also be used to refine the match 700If PREDICATE is non-nil, it will also be used to refine the match
703\(files for which the PREDICATE returns nil will be excluded). 701\(files for which the PREDICATE returns nil will be excluded).
704If PATH is non-nil, it will be used for completion instead of 702If no directory information can be extracted from the completed
705consulting the last argument." 703component, DEFAULT-DIRECTORY is used as the basis for completion."
706 (let* ((name (substitute-env-vars pcomplete-stub)) 704 (let* ((name (substitute-env-vars pcomplete-stub))
707 (default-directory (expand-file-name 705 (default-directory (expand-file-name
708 (or (file-name-directory name) 706 (or (file-name-directory name)