GNU bug report logs - #24173
25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Sun, 7 Aug 2016 00:52:02 UTC

Severity: minor

Tags: notabug

Found in version 25.1.50

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Clément Pit--Claudel <clement.pit <at> gmail.com>
To: 24173 <at> debbugs.gnu.org
Cc: Andreas Schwab <schwab <at> linux-m68k.org>
Subject: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode
Date: Sun, 7 Aug 2016 05:27:06 -0400
[Message part 1 (text/plain, inline)]
On 2016-08-07 05:11, Andreas Schwab wrote:
> Clément Pit--Claudel <clement.pitclaudel <at> live.com> writes:
> 
>> In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" are highlighted with (font-lock-constant-face font-lock-string-face). Is this expected?
> 
>          ;; Words inside \\[] tend to be for `substitute-command-keys'.
>          (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]")

Thanks Andreas!

Should this regexp be conditional on being in a docstring? Otherwise please feel free to close as notabug :)

Clément.

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 331 days ago.

Previous Next


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