1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

* doc/lispref/files.texi (Directory Names): Use \` rather than ^.

* lisp/files.el (directory-abbrev-alist): Use \` as default regexp.
This commit is contained in:
Alexander Klimov 2010-09-06 00:03:56 +02:00 committed by Stefan Monnier
parent ae1362a3c8
commit 3fa0dc8f4d
4 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change)
* files.texi (Directory Names): Use \` rather than ^.
2010-08-22 Chong Yidong <cyd@stupidchicken.com> 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
* modes.texi (Defining Minor Modes): Doc fix (Bug#6880). * modes.texi (Defining Minor Modes): Doc fix (Bug#6880).

View File

@ -1933,7 +1933,7 @@ The variable @code{directory-abbrev-alist} contains an alist of
abbreviations to use for file directories. Each element has the form abbreviations to use for file directories. Each element has the form
@code{(@var{from} . @var{to})}, and says to replace @var{from} with @code{(@var{from} . @var{to})}, and says to replace @var{from} with
@var{to} when it appears in a directory name. The @var{from} string is @var{to} when it appears in a directory name. The @var{from} string is
actually a regular expression; it should always start with @samp{^}. actually a regular expression; it should always start with @samp{\`}.
The @var{to} string should be an ordinary absolute directory name. Do 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 not use @samp{~} to stand for a home directory in that string. The
function @code{abbreviate-file-name} performs these substitutions. function @code{abbreviate-file-name} performs these substitutions.
@ -1946,9 +1946,9 @@ and so on are normally accessed through symbolic links named @file{/fsf}
and so on. and so on.
@example @example
(("^/home/fsf" . "/fsf") (("\\`/home/fsf" . "/fsf")
("^/home/gp" . "/gp") ("\\`/home/gp" . "/gp")
("^/home/gd" . "/gd")) ("\\`/home/gd" . "/gd"))
@end example @end example
@end defopt @end defopt

View File

@ -1,4 +1,6 @@
2010-09-05 Stefan Monnier <monnier@iro.umontreal.ca> 2010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change)
* files.el (directory-abbrev-alist): Use \` as default regexp.
* emacs-lisp/rx.el (rx-any): Don't explode ranges that end in special * emacs-lisp/rx.el (rx-any): Don't explode ranges that end in special
chars like - or ] (bug#6984). chars like - or ] (bug#6984).

View File

@ -66,9 +66,9 @@ Use this feature when you have directories which you normally refer to
via absolute symbolic links. Make TO the name of the link, and FROM via absolute symbolic links. Make TO the name of the link, and FROM
the name it is linked to." the name it is linked to."
:type '(repeat (cons :format "%v" :type '(repeat (cons :format "%v"
:value ("" . "") :value ("\\`" . "")
(regexp :tag "From") (regexp :tag "From")
(regexp :tag "To"))) (string :tag "To")))
:group 'abbrev :group 'abbrev
:group 'find-file) :group 'find-file)