emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-locking and open parens in column zero


From: Stefan Monnier
Subject: Re: font-locking and open parens in column zero
Date: Sun, 10 Sep 2006 15:26:54 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> +++
> *** font-lock: in modes like C and Lisp where the fontification assumes that
> an open-paren in column 0 is always outside of any string or comment,
> font-lock now highlights any such open-paren-in-column-zero in bold-red
> if it is inside a string or a comment, to indicate that it can cause
> trouble with fontification and/or indentation.

> This entry is wrong: In C mode open parens in column 0 are not
> highlighted in bold-red, probably due to the test

Indeed, C mode has changed since this was written.  Thanks for spotting it.

> In addition, it might seem reasonable to check whether the settings of
> `open-paren-in-column-0-is-defun-start' conflict with the approach used
> by `font-lock-compile-keywords'.  Currently, any user settings for
> `open-paren-in-column-0-is-defun-start' are overridden by C mode.

This feature is unrelated to open-paren-in-column-0-is-defun-start AFAIK.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]