Function: hpath:abbreviate-file-name

hpath:abbreviate-file-name is a byte-compiled function defined in hpath.el.

Signature

(hpath:abbreviate-file-name PATH)

Documentation

Return a version of PATH shortened using directory-abbrev-alist.

Same as abbreviate-file-name but disables tramp-mode. This prevents improper processing of hargs with colons in them, e.g. actypes::link-to-file.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************

(defun hpath:abbreviate-file-name (path)
  "Return a version of PATH shortened using `directory-abbrev-alist'.
Same as `abbreviate-file-name' but disables `tramp-mode'.  This
prevents improper processing of hargs with colons in them,
e.g. `actypes::link-to-file'."
  (let (tramp-mode)
    (abbreviate-file-name path)))