GNU bug report logs - #8935
24.0.50; `substitute-command-keys' doc

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 25 Jun 2011 21:30:04 UTC

Severity: minor

Tags: fixed

Found in version 24.0.50

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #57 received at 8935 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 8935 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#8935: 24.0.50; `substitute-command-keys' doc
Date: Mon, 18 Jul 2011 12:20:44 -0400
>> Actually \ does have a special meaning, which depends on the following
>> char (just like \ in regexps).  The difference between that and regexps
>> is that in regexp \<char> turns into just <char> when \<char> has no
>> special meaning, where it turns into \<char> here.

> If you want a \ in a regexp you must write \\, always.  But if you want
> to have a \ from substitute-command-keys you just write \, and if you
> want \\= you must write \\=\=.  Thus \ by itself is not special here.

The "by itself" doesn't mean much, and \ is special because it changes
the meaning of the subsequent character.  I agree it's not special in
the same way as it is in regexps, but it is still special.


        Stefan




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

Previous Next


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