GNU bug report logs - #21449
Emacs lisp mode: incorrect fontification of symbols containing escaped characters.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Wed, 9 Sep 2015 20:17:01 UTC

Severity: minor

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

Bug is archived. No further changes may be made.

Full log


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

From: Alan Mackenzie <acm <at> muc.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 21449 <at> debbugs.gnu.org
Subject: Re: bug#21449: Emacs lisp mode: incorrect fontification of symbols
 containing escaped characters.
Date: Fri, 11 Sep 2015 14:49:22 +0000
Hello, Stefan.

On Wed, Sep 09, 2015 at 11:30:31PM -0400, Stefan Monnier wrote:
> > one too.  It feels like there really ought to be some major mode
> > dependent flag saying whether or not escaped characters are valid in
> > identifiers.  They are in Emacs lisp, but they're not in C.

> You mean like words-include-escapes?

Is there any objection to me installing the patch to lisp-mode.el?

It inserts "\\|\\\\." into each font-locking regexp which contains a bit
looking like "(?:\\sw\\|\\s_", so that escaped characters will be picked
up.  There are no other changes.

I think it unlikely this will do any damage.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 5 years and 263 days ago.

Previous Next


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