Function: viper-abbreviate-file-name

viper-abbreviate-file-name is a for abbreviate-file-name, defined in files.el.gz.

This function is obsolete since 27.1; use abbreviate-file-name instead.

Signature

(viper-abbreviate-file-name FILENAME)

Documentation

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

This also substitutes "~" for the user's home directory (unless the home directory is a root directory) and removes automounter prefixes
(see the variable automount-dir-prefix).

When this function is first called, it caches the user's home directory as a regexp in abbreviated-home-dir, and reuses it afterwards (so long as the home directory does not change; if you want to permanently change your home directory after having started Emacs, set abbreviated-home-dir to nil so it will be recalculated).

Aliases

viper-abbreviate-file-name (obsolete since 27.1) f-abbrev f-short