Function: directory-abbrev-apply
directory-abbrev-apply is a byte-compiled function defined in
compat-29.el.
Signature
(directory-abbrev-apply FILENAME)
Documentation
[Compatibility function for directory-abbrev-apply, defined in Emacs 29.1. See
(compat) Emacs 29.1' for more details.]
Apply the abbreviations in directory-abbrev-alist to FILENAME. Note that when
calling this, you should set case-fold-search as appropriate for the
filesystem used for FILENAME.
Source Code
;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-29.el
(compat-defun directory-abbrev-apply (filename) ;; <compat-tests:directory-abbrev-apply>
"Apply the abbreviations in `directory-abbrev-alist' to FILENAME.
Note that when calling this, you should set `case-fold-search' as
appropriate for the filesystem used for FILENAME."
(dolist (dir-abbrev directory-abbrev-alist filename)
(when (string-match (car dir-abbrev) filename)
(setq filename (concat (cdr dir-abbrev)
(substring filename (match-end 0)))))))