GNU bug report logs - #3820
23.0.96; Emacs Lisp typo

Previous Next

Package: emacs;

Reported by: waterloo <waterloo2005 <at> gmail.com>

Date: Sat, 11 Jul 2009 10:50:05 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: waterloo <waterloo2005 <at> gmail.com>
Cc: 3820 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: bug#3820: 23.0.96; Emacs Lisp typo
Date: Sat, 11 Jul 2009 14:59:43 +0200
waterloo <waterloo2005 <at> gmail.com> writes:

> In 34.3.1.1 Emacs Lisp Reference ,
>      Note that `\' also has special meaning in the read syntax of Lisp
>      strings (*note String Type::), and must be quoted with `\'.  For
>      example, the regular expression that matches the `\' character is
>      `\\'.  To write a Lisp string that contains the characters `\\',
>      Lisp syntax requires you to quote each `\' with another `\'.
>      Therefore, the read syntax for a regular expression matching `\'
>      is `"\\\\"'.
> The last sentence , it should be " .... matching `\\' is `"\\\\"'  ".

No, that string matches only a single backslash when interpreted as a
regexp.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



This bug report was last modified 16 years and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.