diff options
| author | Eli Zaretskii | 2017-11-12 15:25:06 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-11-12 15:25:06 +0200 |
| commit | 2b8ef8dddf235d3a94013f3ab70c9b697b6471e1 (patch) | |
| tree | b61e5eccdee20180bdc569420dee24aca526bdd1 | |
| parent | fe85ce1e16fbdb67d9b241300a2b5baff1bf0164 (diff) | |
| download | emacs-2b8ef8dddf235d3a94013f3ab70c9b697b6471e1.tar.gz emacs-2b8ef8dddf235d3a94013f3ab70c9b697b6471e1.zip | |
* lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267)
| -rw-r--r-- | lisp/files.el | 8 |
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'. |
| 1856 | This also substitutes \"~\" for the user's home directory (unless the | 1856 | This also substitutes \"~\" for the user's home directory (unless the |
| 1857 | home directory is a root directory) and removes automounter prefixes | 1857 | home directory is a root directory) and removes automounter prefixes |
| 1858 | \(see the variable `automount-dir-prefix')." | 1858 | \(see the variable `automount-dir-prefix'). |
| 1859 | |||
| 1860 | When this function is first called, it caches the user's home | ||
| 1861 | directory as a regexp in `abbreviated-home-dir', and reuses it | ||
| 1862 | afterwards. Lisp programs that temporarily set the home directory | ||
| 1863 | to a different value should let-bind `abbreviated-home-dir' for | ||
| 1864 | the 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 |