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: Sun, 12 Nov 2006 00:14:50 -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 1163308643 25267 80.91.229.2 (12 Nov 2006 05:17:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2006 05:17:23 +0000 (UTC) Cc: AMackenzie@harmanbecker.com, emacs-devel@gnu.org, rudalics@gmx.at Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 06:17:21 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 1Gj7iX-0003WJ-24 for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2006 06:17:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gj7iW-0002wn-GP for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2006 00:17:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gj7gC-0001kJ-KX for emacs-devel@gnu.org; Sun, 12 Nov 2006 00:14:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gj7gC-0001jx-4T for emacs-devel@gnu.org; Sun, 12 Nov 2006 00:14:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gj7gB-0001jj-N2 for emacs-devel@gnu.org; Sun, 12 Nov 2006 00:14:51 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gj7gB-0006Zc-D5 for emacs-devel@gnu.org; Sun, 12 Nov 2006 00:14:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Gj7gA-0000lp-2F; Sun, 12 Nov 2006 00:14:50 -0500 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Fri, 10 Nov 2006 23:52:50 -0500) 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:62099 Archived-At: > Emacs is looking for an open-paren at top level in list structure. When? Since around 1975. We're talking about a patch to beginning-of-defun, right? Beginning-of-defun has until now been defined by regexps. I don't think we are talking about the same question. beginning-of-defun has a customization feature involving regexps, but that isn't the point I'm talking about. I'm talking about what it actually did, which (normally) was to find an open-paren in column 0. You asked what I meant by heuristic and I explained it to you. > The heuristic is to take an open-paren at column zero and assume > it is at top level. The docstring of beginning-of-defun doesn't say anything about "toplevel". So what? AFAIK beginning-of-defun is a function in the same category as forward-paragraph and things like that, which do not care much about the global syntax state, but instead only pay attention to the immediately surrounding text. That is not how I think of it. The original definition was to look for an open paren at top level. But that was too slow, so I established the convention of assuming that an open paren in column 0 would be taken as top level even if it was not really at top level.