Function: hpath:normalize

hpath:normalize is a byte-compiled function defined in hpath.el.

Signature

(hpath:normalize PATH)

Documentation

Normalize and return an existing, readable PATH, else signal an error.

Replace Emacs Lisp variables and environment variables (format of
${var}) with their values in PATH's path. The first matching
value for variables like ${PATH} is used.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:normalize (path)
  "Normalize and return an existing, readable PATH, else signal an error.
Replace Emacs Lisp variables and environment variables (format of
${var}) with their values in PATH's path.  The first matching
value for variables like `${PATH}' is used."
  ;; `hpath:validate' ensures the path is readable or triggers an error
  (hpath:validate (hpath:substitute-value path)))