diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-01-08 17:01:13 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-01-08 17:01:13 -0500 |
commit | c40b51e0ff77adfbe27150de0e154bd0015a4ec5 (patch) | |
tree | eaaa84b12661dda5343a39e4bb7b72cf02edc4d7 /doc/emacs | |
parent | ad2d9b0e33e4eef277b67f58ec8b024d0dd1e0e7 (diff) | |
download | emacs-c40b51e0ff77adfbe27150de0e154bd0015a4ec5.tar.gz emacs-c40b51e0ff77adfbe27150de0e154bd0015a4ec5.tar.bz2 emacs-c40b51e0ff77adfbe27150de0e154bd0015a4ec5.zip |
Move directory-abbrev-alist doc from Lispref to Emacs manual.
* doc/emacs/files.texi (File Aliases): Move directory-abbrev-alist doc from Lisp
manual. Explain why directory-abbrev-alist elements should be anchored
(Bug#7777).
* doc/lispref/files.texi (Directory Names): Move directory-abbrev-alist doc to
Emacs manual.
Diffstat (limited to 'doc/emacs')
-rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
-rw-r--r-- | doc/emacs/files.texi | 26 |
2 files changed, 31 insertions, 1 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 829f61efb38..4825f08979f 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,9 @@ +2011-01-08 Chong Yidong <cyd@stupidchicken.com> + + * files.texi (File Aliases): Move directory-abbrev-alist doc from Lisp + manual. Explain why directory-abbrev-alist elements should be anchored + (Bug#7777). + 2011-01-07 Eli Zaretskii <eliz@gnu.org> * msdog.texi (Windows Startup): Correct inaccurate description of diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 4df81caa8f2..530c2bb94f7 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1158,7 +1158,6 @@ links point to directories. @vindex find-file-existing-other-name @vindex find-file-suppress-same-file-warnings - Normally, if you visit a file which Emacs is already visiting under a different name, Emacs displays a message in the echo area and uses the existing buffer visiting that file. This can happen on systems @@ -1180,6 +1179,31 @@ then the file name recorded for a buffer is the file's @dfn{truename} than the name you specify. Setting @code{find-file-visit-truename} also implies the effect of @code{find-file-existing-other-name}. +@cindex directory name abbreviation +@vindex directory-abbrev-alist + Sometimes, a directory is ordinarily accessed through a symbolic +link, and you may want Emacs to preferentially display its ``linked'' +name instead of its truename. To do this, customize the variable +@code{directory-abbrev-alist}. Each element in this list should have +the form @code{(@var{from} . @var{to})}, which says to replace +@var{from} with @var{to} when it appears in a directory name. For +this feature to work properly, @var{from} and @var{to} should point to +the same file. The @var{from} string is actually a regular expression +(@pxref{Regexps}); it should always start with @samp{\`}, to avoid +matching to an incorrect part of the original directory name. The +@var{to} string should be an ordinary absolute directory name. Do not +use @samp{~} to stand for a home directory in the @var{to} string; +Emacs performs these substitutions separately. + + Here's an example, from a system on which file system +@file{/home/fsf} and so on are normally accessed through symbolic +links named @file{/fsf} and so on. + +@example +(("\\`/home/fsf" . "/fsf") + ("\\`/home/gd" . "/gd")) +@end example + @node Directories @section File Directories |