[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100364: Explain why directory-abb
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100364: Explain why directory-abbrev-alist should be anchored (Bug#7777). |
Date: |
Sat, 08 Jan 2011 16:37:20 -0500 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 100364
committer: Chong Yidong <address@hidden>
branch nick: emacs-23
timestamp: Sat 2011-01-08 16:37:20 -0500
message:
Explain why directory-abbrev-alist should be anchored (Bug#7777).
* files.texi (Directory Names): Explain why directory-abbrev-alist
elements should be anchored (Bug#7777).
modified:
doc/lispref/ChangeLog
doc/lispref/files.texi
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2011-01-07 15:55:13 +0000
+++ b/doc/lispref/ChangeLog 2011-01-08 21:37:20 +0000
@@ -1,3 +1,8 @@
+2011-01-08 Chong Yidong <address@hidden>
+
+ * files.texi (Directory Names): Explain why directory-abbrev-alist
+ elements should be anchored (Bug#7777).
+
2011-01-07 Eli Zaretskii <address@hidden>
* files.texi (Directory Names): Explain why FROM in
=== modified file 'doc/lispref/files.texi'
--- a/doc/lispref/files.texi 2011-01-07 15:55:13 +0000
+++ b/doc/lispref/files.texi 2011-01-08 21:37:20 +0000
@@ -1932,14 +1932,15 @@
The variable @code{directory-abbrev-alist} contains an alist of
abbreviations to use for file directories. Each element has the form
@code{(@var{from} . @var{to})}, and says to replace @var{from} with
address@hidden when it appears in a directory name. The @var{from} string is
-actually a regular expression; it is matched against directory names
-anchored at the first character, so it should start with @samp{\`}, to
-support directory names with embedded newlines (which will defeat
address@hidden). The @var{to} string should be an ordinary absolute
-directory name. Do not use @samp{~} to stand for a home directory in
-that string. The function @code{abbreviate-file-name} performs these
-substitutions.
address@hidden when it appears in a directory name.
+
+The @var{from} string is actually a regular expression. It ought to
+always start with @samp{\`}, to avoid incorrectly matching to a
+relative portion of the supplied directory name.
+
+The @var{to} string should be an ordinary absolute directory name.
+Do not use @samp{~} to stand for a home directory in that string; the
+function @code{abbreviate-file-name} performs these substitutions.
You can set this variable in @file{site-init.el} to describe the
abbreviations appropriate for your site.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-23 r100364: Explain why directory-abbrev-alist should be anchored (Bug#7777).,
Chong Yidong <=