From: Alan Mackenzie <acm@muc.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-pretest-bug@gnu.org, Chong Yidong <cyd@stupidchicken.com>,
3269@emacsbugs.donarmstrong.com,
Thomas Christensen <thomasc@thomaschristensen.org>,
emacs-devel@gnu.org
Subject: Re: bug#3269: 23.0.93; C-mode text highlighting
Date: Mon, 18 May 2009 21:30:30 +0000 [thread overview]
Message-ID: <20090518213030.GD12920@muc.de> (raw)
In-Reply-To: <jwv7i0eb3e8.fsf-monnier+emacsbugreports@gnu.org>
Hi, Stefan!
On Mon, May 18, 2009 at 03:53:42PM -0400, Stefan Monnier wrote:
> > OK, here is a patch for half of the problem - it now fontifies a broken
> > string in a #define properly
> For some definition of "properly".
The opening string quote (?\" or ?\') gets f-l-warning-face. The rest of
the unclosed string (up to the first EOL which isn't escaped) gets
f-l-string-face.
Actually, that's not _quite_ "proper". A string with an even number of
backslashes at an EOL is broken at that point, but the font locking
doesn't show this (yet). I don't suppose that will bother you all that
much. ;-)
> > The second half of the problem is to fix it so that you don't have to
> > type M-o M-o afterwards. Any change you'll let me do this before
> > this week's pretest, Yidong?
> I think this part is more important. I don't care much (if at all)
> about how invalid code is highlighted.
I agree it's important. I've got it working; what's more, the code
doesn't advise any of the font lock functions for (>= emacs-major-version
22). I'll commit it tomorrow sometime.
> Stefan
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2009-05-18 21:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <878wl1h5fw.fsf@ancient.thomaschristensen.org>
[not found] ` <20090514213924.GB2413@muc.de>
2009-05-18 15:06 ` bug#3269: 23.0.93; C-mode text highlighting Alan Mackenzie
2009-05-18 16:41 ` Chong Yidong
2009-05-18 21:16 ` Alan Mackenzie
2009-05-18 19:53 ` Stefan Monnier
2009-05-18 21:30 ` Alan Mackenzie [this message]
2009-05-19 2:24 ` Stefan Monnier
2009-05-19 10:26 ` Alan Mackenzie
2009-05-19 14:36 ` Stefan Monnier
2009-05-19 22:40 ` Alan Mackenzie
2009-05-20 10:31 ` Jim Meyering
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=20090518213030.GD12920@muc.de \
--to=acm@muc.de \
--cc=3269@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=thomasc@thomaschristensen.org \
/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).