[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: |
Stephen Leake |
Subject: |
Re: include Ada Reference Manual info files in ada-mode ELPA package? |
Date: |
Sun, 28 Sep 2014 11:26:40 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Drew Adams <address@hidden> writes:
>> >> 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.
The elisp manual is better for this than the Emacs manual; I suggest the
Emacs manual section on regexp be replaced by a cross-reference to the
elisp manual.
--
-- Stephe
Re: include Ada Reference Manual info files in ada-mode ELPA package?, Stefan Monnier, 2014/09/28