changeset 43827:074094fab9d6

(pcomplete-entries): Expand environment variables in filename.
author Miles Bader <miles@gnu.org>
date Mon, 11 Mar 2002 04:15:11 +0000
parents a7e0faaa30c2
children 0e61ba1b551f
files lisp/pcomplete.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/pcomplete.el	Sun Mar 10 17:28:58 2002 +0000
+++ b/lisp/pcomplete.el	Mon Mar 11 04:15:11 2002 +0000
@@ -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 @@
 \(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)))