Function: hpath:posix-to-mswindows-separators
hpath:posix-to-mswindows-separators is a byte-compiled function
defined in hpath.el.
Signature
(hpath:posix-to-mswindows-separators PATH)
Documentation
Replace forward slashes with backslashes and abbreviate the PATH if possible.
Path must be a string or an error will be triggered. See
abbreviate-file-name for how path abbreviation is handled.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:posix-to-mswindows-separators (path)
"Replace forward slashes with backslashes and abbreviate the PATH if possible.
Path must be a string or an error will be triggered. See
`abbreviate-file-name' for how path abbreviation is handled."
(let ((directory-abbrev-alist hpath:posix-mount-point-to-mswindows-alist))
(replace-regexp-in-string "/" "\\\\" (hpath:abbreviate-file-name path))))