Function: directory-abbrev-apply

directory-abbrev-apply is a byte-compiled function defined in files.el.gz.

Signature

(directory-abbrev-apply FILENAME)

Documentation

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 /usr/src/emacs/lisp/files.el.gz
(defun directory-abbrev-apply (filename)
  "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)))))))