emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 2b8ef8d: * lisp/files.el (abbreviate-file-name):


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 2b8ef8d: * lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267)
Date: Sun, 12 Nov 2017 08:25:28 -0500 (EST)

branch: emacs-26
commit 2b8ef8dddf235d3a94013f3ab70c9b697b6471e1
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    * lisp/files.el (abbreviate-file-name): Doc fix.  (Bug#29267)
---
 lisp/files.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lisp/files.el b/lisp/files.el
index b47411f..96d7ae7 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1855,7 +1855,13 @@ The value includes abbreviation according to 
`directory-abbrev-alist'.")
   "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')."
+\(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.
   (save-match-data
     (if (and automount-dir-prefix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]