unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: include Ada Reference Manual info files in ada-mode ELPA package?
Date: Sun, 28 Sep 2014 11:26:40 -0500	[thread overview]
Message-ID: <8538bbhfsv.fsf@stephe-leake.org> (raw)
In-Reply-To: <36efd654-e8f5-485a-8133-88172824d1aa@default> (Drew Adams's message of "Sun, 28 Sep 2014 08:44:21 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> 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



  reply	other threads:[~2014-09-28 16:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 20:23 include Ada Reference Manual info files in ada-mode ELPA package? Stephen Leake
2014-09-23 22:28 ` Stefan Monnier
2014-09-24 10:14 ` Richard Stallman
2014-09-24 19:41   ` Stephen Leake
2014-09-24 21:57     ` Richard Stallman
2014-09-28  4:12 ` Stephen Leake
2014-09-28  9:06   ` Andreas Schwab
2014-09-28 14:00     ` Stephen Leake
2014-09-28 14:51       ` David Kastrup
2014-09-28 15:44         ` Drew Adams
2014-09-28 16:26           ` Stephen Leake [this message]
2014-09-28 16:25         ` Stephen Leake
2014-09-28 16:43   ` Stefan Monnier
2014-09-29 13:22     ` Stephen Leake
2014-09-29 13:51       ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8538bbhfsv.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).