Previous: substitute-in-file-name, Up: Directory and File Variables and Functions [Index]
Converts a directory name to its abbreviation. You can use this function for directory names and for file names, because it recognizes abbreviations even as part of the name.
an absolute file name upon which to operate;
a shortened version of FILENAME, using
directory-abbrev-alist
. Also substitute ‘~’ for the user’s home directory
and remove automounter prefixes.
When this function is first called, it caches the user’s home directory as a
regexp in abbreviated-home-dir
, and reuses it afterwards.