Function: xdg--substitute-home-env
xdg--substitute-home-env is a byte-compiled function defined in
xdg.el.gz.
Signature
(xdg--substitute-home-env STR)
Source Code
;; Defined in /usr/src/emacs/lisp/xdg.el.gz
(defun xdg--substitute-home-env (str)
(if (file-name-absolute-p str) str
(save-match-data
(and (string-match "^\\$HOME/" str)
(replace-match "~/" t nil str 0)))))