aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Klimov2010-09-06 00:03:56 +0200
committerStefan Monnier2010-09-06 00:03:56 +0200
commit3fa0dc8f4dcf7142f23668cceb39435eea8de6e5 (patch)
treef66494d5d98e89fef9d4d36ed7ea45a065625128
parentae1362a3c849773874dfbf9e32b9a9e8cddb4f01 (diff)
downloademacs-3fa0dc8f4dcf7142f23668cceb39435eea8de6e5.tar.gz
emacs-3fa0dc8f4dcf7142f23668cceb39435eea8de6e5.zip
* doc/lispref/files.texi (Directory Names): Use \` rather than ^.
* lisp/files.el (directory-abbrev-alist): Use \` as default regexp.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/files.texi8
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/files.el4
4 files changed, 13 insertions, 7 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 399c07d13f5..4302da5aa27 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change)
2
3 * files.texi (Directory Names): Use \` rather than ^.
4
12010-08-22 Chong Yidong <cyd@stupidchicken.com> 52010-08-22 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * modes.texi (Defining Minor Modes): Doc fix (Bug#6880). 7 * modes.texi (Defining Minor Modes): Doc fix (Bug#6880).
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index abdd2814b56..23fd2376a57 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1933,7 +1933,7 @@ The variable @code{directory-abbrev-alist} contains an alist of
1933abbreviations to use for file directories. Each element has the form 1933abbreviations to use for file directories. Each element has the form
1934@code{(@var{from} . @var{to})}, and says to replace @var{from} with 1934@code{(@var{from} . @var{to})}, and says to replace @var{from} with
1935@var{to} when it appears in a directory name. The @var{from} string is 1935@var{to} when it appears in a directory name. The @var{from} string is
1936actually a regular expression; it should always start with @samp{^}. 1936actually a regular expression; it should always start with @samp{\`}.
1937The @var{to} string should be an ordinary absolute directory name. Do 1937The @var{to} string should be an ordinary absolute directory name. Do
1938not use @samp{~} to stand for a home directory in that string. The 1938not use @samp{~} to stand for a home directory in that string. The
1939function @code{abbreviate-file-name} performs these substitutions. 1939function @code{abbreviate-file-name} performs these substitutions.
@@ -1946,9 +1946,9 @@ and so on are normally accessed through symbolic links named @file{/fsf}
1946and so on. 1946and so on.
1947 1947
1948@example 1948@example
1949(("^/home/fsf" . "/fsf") 1949(("\\`/home/fsf" . "/fsf")
1950 ("^/home/gp" . "/gp") 1950 ("\\`/home/gp" . "/gp")
1951 ("^/home/gd" . "/gd")) 1951 ("\\`/home/gd" . "/gd"))
1952@end example 1952@end example
1953@end defopt 1953@end defopt
1954 1954
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 21eaa4c15d3..2d4ef5611bb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,4 +1,6 @@
12010-09-05 Stefan Monnier <monnier@iro.umontreal.ca> 12010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change)
2
3 * files.el (directory-abbrev-alist): Use \` as default regexp.
2 4
3 * emacs-lisp/rx.el (rx-any): Don't explode ranges that end in special 5 * emacs-lisp/rx.el (rx-any): Don't explode ranges that end in special
4 chars like - or ] (bug#6984). 6 chars like - or ] (bug#6984).
diff --git a/lisp/files.el b/lisp/files.el
index f6564768ae7..02f5f8fdacf 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -66,9 +66,9 @@ Use this feature when you have directories which you normally refer to
66via absolute symbolic links. Make TO the name of the link, and FROM 66via absolute symbolic links. Make TO the name of the link, and FROM
67the name it is linked to." 67the name it is linked to."
68 :type '(repeat (cons :format "%v" 68 :type '(repeat (cons :format "%v"
69 :value ("" . "") 69 :value ("\\`" . "")
70 (regexp :tag "From") 70 (regexp :tag "From")
71 (regexp :tag "To"))) 71 (string :tag "To")))
72 :group 'abbrev 72 :group 'abbrev
73 :group 'find-file) 73 :group 'find-file)
74 74