all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Klimov <alserkli@inbox.ru>
To: emacs-devel@gnu.org
Subject: directory-abbrev-alist
Date: Thu, 2 Sep 2010 17:06:48 +0300	[thread overview]
Message-ID: <TheMailAgent.d09beba2ca208@205b79b238b9707d33aac> (raw)

There is a little inconsistency in documentation of
directory-abbrev-alist: comments in code proposes to start each
`from' string with \`, while files.texi proposes ^ (the same,
except in file names with newline). The initial value proposed
by defcustom should reflect this convention. The following patch
fixes both problems:

=== modified file 'doc/lispref/files.texi'
--- doc/lispref/files.texi      2010-06-23 03:36:56 +0000
+++ doc/lispref/files.texi      2010-09-02 13:49:49 +0000
@@ -1933,7 +1933,7 @@
 abbreviations to use for file directories.  Each element has the form
 @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
-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
 not use @samp{~} to stand for a home directory in that string.  The
 function @code{abbreviate-file-name} performs these substitutions.
@@ -1946,9 +1946,9 @@
 and so on.

 @example
-(("^/home/fsf" . "/fsf")
- ("^/home/gp" . "/gp")
- ("^/home/gd" . "/gd"))
+(("\\`/home/fsf" . "/fsf")
+ ("\\`/home/gp" . "/gp")
+ ("\\`/home/gd" . "/gd"))
 @end example
 @end defopt


=== modified file 'lisp/files.el'
--- lisp/files.el       2010-08-29 16:17:13 +0000
+++ lisp/files.el       2010-09-02 13:44:32 +0000
@@ -67,7 +67,7 @@
 via absolute symbolic links.  Make TO the name of the link, and FROM
 the name it is linked to."
   :type '(repeat (cons :format "%v"
-                      :value ("" . "")
+                      :value ("\\`" . "")
                       (regexp :tag "From")
                       (regexp :tag "To")))
   :group 'abbrev


-- 
Regards,
ASK



             reply	other threads:[~2010-09-02 14:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 14:06 Alexander Klimov [this message]
2010-09-05 22:15 ` directory-abbrev-alist Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TheMailAgent.d09beba2ca208@205b79b238b9707d33aac \
    --to=alserkli@inbox.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.