From 8a5782b5da0b1305734714b37ed8d6e4c6ac41f0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 11 Mar 2002 04:15:31 +0000 Subject: (pcomplete-entries): Expand environment variables in filename. --- lisp/pcomplete.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/pcomplete.el') 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 ;; 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))) -- cgit v1.2.1