diff options
author | Miles Bader <miles@gnu.org> | 2002-03-11 04:15:31 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2002-03-11 04:15:31 +0000 |
commit | 8a5782b5da0b1305734714b37ed8d6e4c6ac41f0 (patch) | |
tree | cadeb445baa4dee95332f0a329079272efcc8a4c /lisp/pcomplete.el | |
parent | a0db0bbfdbaf94302db1ae8e686b6e312855ee10 (diff) | |
download | emacs-8a5782b5da0b1305734714b37ed8d6e4c6ac41f0.tar.gz |
(pcomplete-entries): Expand environment variables in filename.
Diffstat (limited to 'lisp/pcomplete.el')
-rw-r--r-- | lisp/pcomplete.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 521471a1da1..9b944ce4cf2 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el @@ -1,6 +1,6 @@ ;;; pcomplete.el --- programmable completion -;; Copyright (C) 1999, 2000, 2001 Free Sofware Foundation +;; Copyright (C) 1999, 2000, 2001, 2002 Free Sofware Foundation ;; Author: John Wiegley <johnw@gnu.org> ;; Keywords: processes abbrev @@ -703,7 +703,7 @@ 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." - (let* ((name pcomplete-stub) + (let* ((name (substitute-env-vars pcomplete-stub)) (default-directory (expand-file-name (or (file-name-directory name) default-directory))) |