unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
Cc: 24173@debbugs.gnu.org
Subject: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode
Date: Sun, 07 Aug 2016 11:11:12 +0200	[thread overview]
Message-ID: <m2vazdgczz.fsf@linux-m68k.org> (raw)
In-Reply-To: <eeab5d0e-2ae6-f3f7-025a-81f5cd688660@live.com> ("Clément Pit--Claudel"'s message of "Sat, 6 Aug 2016 20:51:02 -0400")

Clément Pit--Claudel <clement.pitclaudel@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 "\\)\\]")

Andreas.

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





  parent reply	other threads:[~2016-08-07  9:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-07  0:51 bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode Clément Pit--Claudel
2016-08-07  1:19 ` Drew Adams
2016-08-07  1:24   ` Clément Pit--Claudel
2016-08-07  9:11 ` Andreas Schwab [this message]
2016-08-07  9:27   ` Clément Pit--Claudel
2016-08-07 14:08     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2vazdgczz.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=24173@debbugs.gnu.org \
    --cc=clement.pitclaudel@live.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).