From: Arni Magnusson <arnima@hafro.is>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 6743@debbugs.gnu.org
Subject: bug#6743: Backslash regexp in Elisp manual
Date: Wed, 28 Jul 2010 02:54:46 +0000 (GMT) [thread overview]
Message-ID: <alpine.LFD.2.00.1007280233350.4243@hafstormur.hafro.is> (raw)
In-Reply-To: <AANLkTinN7buVx2-6T3Py6gf5kaVOt130qKJpiZoUtdGA@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 828 bytes --]
Sorry, my mistake. The sentence is correct in the manual.
Arni
On Wed, 28 Jul 2010, Juanma Barranquero wrote:
> On Wed, Jul 28, 2010 at 01:31, Arni Magnusson <arnima@hafro.is> wrote:
>
>> Therefore, the read syntax for a regular expression matching
>> @samp{\} is @code{"\\\\"}.
>>
>> should be
>>
>> Therefore, the read syntax for a regular expression matching
>> @samp{\\} is @code{"\\\\"}.
>
> Why do you think so?
>
> The section is talking about the read syntax. To match \, you need a
> regexp with \\, and to write \\ in a string, you need \\\\.
>
> Try
>
> emacs -Q
> \ <left>
> M-: (looking-at "\\") <RET> => (invalid-regexp "Trailing backslash")
> q
> M-: (looking-at "\\\\") <RET> => t
>
> Note that \\\\ is matching a single \ on the buffer, not \\
>
> Juanma
>
next prev parent reply other threads:[~2010-07-28 2:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 23:31 bug#6743: Backslash regexp in Elisp manual Arni Magnusson
2010-07-28 0:25 ` Juanma Barranquero
2010-07-28 2:54 ` Arni Magnusson [this message]
2010-07-28 2:58 ` Juanma Barranquero
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=alpine.LFD.2.00.1007280233350.4243@hafstormur.hafro.is \
--to=arnima@hafro.is \
--cc=6743@debbugs.gnu.org \
--cc=lekktu@gmail.com \
/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.