Function: substitute-env-in-file-name

substitute-env-in-file-name is a byte-compiled function defined in env.el.gz.

Signature

(substitute-env-in-file-name FILENAME)

Source Code

;; Defined in /usr/src/emacs/lisp/env.el.gz
(defun substitute-env-in-file-name (filename)
  (declare (important-return-value t))
  (substitute-env-vars filename
                       ;; How 'bout we lookup other tables than the env?
                       ;; E.g. we could accept bookmark names as well!
                       (if (memq system-type '(windows-nt ms-dos))
                           (lambda (var) (getenv (upcase var)))
                         t)))