Commit 8a5782b5 authored by Miles Bader's avatar Miles Bader
Browse files

(pcomplete-entries): Expand environment variables in filename.

parent a0db0bbf
2002-03-07 Miles Bader <miles@gnu.org>
* pcomplete.el (pcomplete-entries): Expand environment variables
in filename.
2002-03-10 Daniel Pfeiffer <occitan@esperanto.org>
* play/mpuz.el: Use defface instead of facemenu-get-face.
......
;;; 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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment