aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-11-12 15:25:06 +0200
committerEli Zaretskii2017-11-12 15:25:06 +0200
commit2b8ef8dddf235d3a94013f3ab70c9b697b6471e1 (patch)
treeb61e5eccdee20180bdc569420dee24aca526bdd1
parentfe85ce1e16fbdb67d9b241300a2b5baff1bf0164 (diff)
downloademacs-2b8ef8dddf235d3a94013f3ab70c9b697b6471e1.tar.gz
emacs-2b8ef8dddf235d3a94013f3ab70c9b697b6471e1.zip
* lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267)
-rw-r--r--lisp/files.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index b47411f206a..96d7ae7cf16 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1855,7 +1855,13 @@ The value includes abbreviation according to `directory-abbrev-alist'.")
1855 "Return a version of FILENAME shortened using `directory-abbrev-alist'. 1855 "Return a version of FILENAME shortened using `directory-abbrev-alist'.
1856This also substitutes \"~\" for the user's home directory (unless the 1856This also substitutes \"~\" for the user's home directory (unless the
1857home directory is a root directory) and removes automounter prefixes 1857home directory is a root directory) and removes automounter prefixes
1858\(see the variable `automount-dir-prefix')." 1858\(see the variable `automount-dir-prefix').
1859
1860When this function is first called, it caches the user's home
1861directory as a regexp in `abbreviated-home-dir', and reuses it
1862afterwards. Lisp programs that temporarily set the home directory
1863to a different value should let-bind `abbreviated-home-dir' for
1864the modified home directory to take effect."
1859 ;; Get rid of the prefixes added by the automounter. 1865 ;; Get rid of the prefixes added by the automounter.
1860 (save-match-data 1866 (save-match-data
1861 (if (and automount-dir-prefix 1867 (if (and automount-dir-prefix