* lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267)
This commit is contained in:
parent
fe85ce1e16
commit
2b8ef8dddf
1 changed files with 7 additions and 1 deletions
|
@ -1855,7 +1855,13 @@ The value includes abbreviation according to `directory-abbrev-alist'.")
|
||||||
"Return a version of FILENAME shortened using `directory-abbrev-alist'.
|
"Return a version of FILENAME shortened using `directory-abbrev-alist'.
|
||||||
This also substitutes \"~\" for the user's home directory (unless the
|
This also substitutes \"~\" for the user's home directory (unless the
|
||||||
home directory is a root directory) and removes automounter prefixes
|
home directory is a root directory) and removes automounter prefixes
|
||||||
\(see the variable `automount-dir-prefix')."
|
\(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. Lisp programs that temporarily set the home directory
|
||||||
|
to a different value should let-bind `abbreviated-home-dir' for
|
||||||
|
the modified home directory to take effect."
|
||||||
;; Get rid of the prefixes added by the automounter.
|
;; Get rid of the prefixes added by the automounter.
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(if (and automount-dir-prefix
|
(if (and automount-dir-prefix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue