From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: font-locking and open parens in column zero Date: Sun, 10 Sep 2006 15:26:54 -0400 Message-ID: References: <4503E44B.5020406@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157916474 7294 80.91.229.2 (10 Sep 2006 19:27:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2006 19:27:54 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 10 21:27:51 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMUy0-0004nm-TN for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 21:27:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMUy0-0005LB-DC for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 15:27:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMUxJ-00056T-KQ for emacs-devel@gnu.org; Sun, 10 Sep 2006 15:27:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMUxF-00054K-LW for emacs-devel@gnu.org; Sun, 10 Sep 2006 15:27:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMUxF-00054C-Fu for emacs-devel@gnu.org; Sun, 10 Sep 2006 15:26:57 -0400 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMUyL-0000bu-Pb for emacs-devel@gnu.org; Sun, 10 Sep 2006 15:28:06 -0400 Original-Received: from localhost ([70.55.142.189]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060910192654.BBZF18394.tomts5-srv.bellnexxia.net@localhost>; Sun, 10 Sep 2006 15:26:54 -0400 Original-Received: by localhost (Postfix, from userid 20848) id C713C6C284; Sun, 10 Sep 2006 15:26:54 -0400 (EDT) Original-To: martin rudalics In-Reply-To: <4503E44B.5020406@gmx.at> (martin rudalics's message of "Sun, 10 Sep 2006 12:09:15 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59635 Archived-At: > +++ > *** 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