[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: include Ada Reference Manual info files in ada-mode ELPA package?
From: |
Drew Adams |
Subject: |
RE: include Ada Reference Manual info files in ada-mode ELPA package? |
Date: |
Sun, 28 Sep 2014 08:44:21 -0700 (PDT) |
> >> Please use \` and \' instead of ^ and $.
> > What is the rationale for that?
> File names can contain newlines.
> > Is it documented somewhere?
>
> (info "(Emacs) Regexps")
> ‘^’
> ‘$’
>
> and (info "(Emacs) Regexp Backslash")
> ‘\`’
> ‘\'’
It seems like this is a fairly common question/misunderstanding.
^ and $ were even used in the Emacs source code for a long time
in places where \` and \' are more appropriate.
It would be good to add cross-refs here (both directions), and to
explicitly point out what the difference is, and that while the
effect can sometimes be similar, \`...\' is often what you want
when matching strings.
Re: include Ada Reference Manual info files in ada-mode ELPA package?, Stefan Monnier, 2014/09/28