From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sean O'Rourke" Newsgroups: gmane.emacs.devel Subject: Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw. Date: Fri, 15 Dec 2006 08:16:00 -0800 Message-ID: References: <878xh987lg.fsf@stupidchicken.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166259399 28885 80.91.229.10 (16 Dec 2006 08:56:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2006 08:56:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 09:56:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvVLP-0007XS-1x for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 09:56:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvVLO-0003BG-L5 for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 03:56:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvFjI-0006IR-La for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:16:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvFjF-0006Gj-VY for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:16:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvFjF-0006Gc-Op for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:16:09 -0500 Original-Received: from [132.239.1.59] (helo=mailbox7.ucsd.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GvFjF-0002P1-IJ for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:16:09 -0500 Original-Received: from smtp.ucsd.edu (smtp.ucsd.edu [132.239.1.49]) by mailbox7.ucsd.edu (8.13.6/8.13.6) with ESMTP id kBFGG6K3009718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Dec 2006 08:16:07 -0800 (PST) Original-Received: from localhost (csegradus2.ucsd.edu [132.239.95.209]) by smtp.ucsd.edu (8.13.6/8.13.4) with ESMTP id kBFGG5gI003539; Fri, 15 Dec 2006 08:16:06 -0800 (PST) Original-To: Chong Yidong In-Reply-To: <878xh987lg.fsf@stupidchicken.com> (Chong Yidong's message of "Fri\, 15 Dec 2006 11\:08\:43 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (darwin) X-Mailman-Approved-At: Sat, 16 Dec 2006 03:54:46 -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:63822 Archived-At: Chong Yidong writes: > This binding should take place in CC-mode code; there's no > reason to expect all beginning-of-defun functions to run with > beginning-of-defun-function rebound to nil. I think this is a reasonable expectation: if the custom b-o-d-f wants to call itself, it can do so directly, and b-o-d-f needs to be bound to nil at some point anyways to avoid recursion. It's probably less error-prone to do it in just one place, rather than letting each new foo-mode's foo-beginning-of-defun discover this problem for itself. /s