bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp-quote bug with "\" characters?


From: David Kastrup
Subject: Re: regexp-quote bug with "\" characters?
Date: 08 Mar 2002 13:03:22 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

joakim.hove@phys.ntnu.no (Joakim Hove) writes:

> This bug report will be sent to the Free Software Foundation,
>  not to your local site managers!!
> Please write in English, because the Emacs maintainers do not have
> translators to read other languages for them.
> 
> In GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit)
>  of Mon Jul 30 2001 on stripples.devel.redhat.com
> configured using `configure  --mandir=/usr/share/man 
> --infodir=/usr/share/info --prefix=/usr --libexecdir=/usr/lib 
> --sharedstatedir=/var --with-gcc --with--pop --with-x-toolkit 
> i386-redhat-linux-gnu'
> 
> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
> 
> I think the (regexp-quote) function must have a bug (or I
> misunderstand something):
> 
> (regexp-quote "\begin{document}")
>   => "^Hegin{document}

The latter.  "\b" is a single back-space.  regexp-quote never gets to
see either the backslash or the b.  Try

(regexp-quote (read-string "Regexp? ")) C-x C-e \begin{document} RET

for comparison.

Then you'll get

> Instead of : "\\\\begin{document}"


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]