From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw. Date: Fri, 15 Dec 2006 11:44:49 -0500 Message-ID: <87vekd6rcu.fsf@stupidchicken.com> 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 1166201175 5533 80.91.229.10 (15 Dec 2006 16:46:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2006 16:46:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 15 17:46:13 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 1GvGCD-00052r-As for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2006 17:46:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvGCC-0001yS-Qm for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2006 11:46:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvGAs-00017D-70 for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:44:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvGAr-00016M-IG for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:44:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvGAr-00016D-DO for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:44:41 -0500 Original-Received: from [18.19.1.138] (helo=cyd.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GvGAr-0000jh-8D for emacs-devel@gnu.org; Fri, 15 Dec 2006 11:44:41 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id D2FD94E457; Fri, 15 Dec 2006 11:44:49 -0500 (EST) Original-To: "Sean O'Rourke" In-Reply-To: (Sean O'Rourke's message of "Fri\, 15 Dec 2006 08\:16\:00 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (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:63785 Archived-At: "Sean O'Rourke" writes: > 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. OTOH, there's no other place in Emacs that assumes that you should bind foo-function to nil before calling foo-function. That would be considered surprising behavior.