From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: AW: font-locking and open parens in column 0 Date: Sat, 04 Nov 2006 01:38:48 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1162622603 22995 80.91.229.2 (4 Nov 2006 06:43:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2006 06:43:23 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 04 07:43:18 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 1GgFFM-0000SO-7A for ged-emacs-devel@m.gmane.org; Sat, 04 Nov 2006 07:43:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GgFFL-0007zH-QY for ged-emacs-devel@m.gmane.org; Sat, 04 Nov 2006 01:43:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GgFB4-0003j9-Dp for emacs-devel@gnu.org; Sat, 04 Nov 2006 01:38:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GgFB3-0003iD-VC for emacs-devel@gnu.org; Sat, 04 Nov 2006 01:38:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GgFB3-0003hx-EP for emacs-devel@gnu.org; Sat, 04 Nov 2006 01:38:49 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GgFB3-0002KE-Bp for emacs-devel@gnu.org; Sat, 04 Nov 2006 01:38:49 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GgFB2-0003xI-4i; Sat, 04 Nov 2006 01:38:48 -0500 Original-To: "Mackenzie, Alan" In-reply-to: (AMackenzie@harmanbecker.com) 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:61747 Archived-At: I agree with you. :-) However, my patch is to do with beginning-of-defun-raw, not font-locking. Are you saying that open-paren-in-column-0-is-defun-start shouldn't exist at all? When it is nil, a paren in column 0 may not, of itself, be regarded as a defun start. Richard, please say what you think about this. I think it is correct to implement open-paren-in-column-0-is-defun-start in the best way possible. So please install your change. However, it is also important to implement the font lock optimizations as Stefan described them. Can you do that now? Also, warning about misleading parens as Lisp mode does would be a good thing to implement in C mode, whenever appropriate. Stefan wrote: According to its docstring, the current behavior is correct: Normally a defun starts when there is a char with open-parenthesis syntax at the beginning of a line. The purpose of open-paren-in-column-0-is-defun-start is to enable ot disable this heuristic. Setting it to nil disables the heuristic. So I think his change is correct.