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: movement bindings in c-mode Date: Mon, 23 Jun 2008 14:45:24 -0400 Message-ID: References: <20080623141334.GA7132@muc.de> <877icgz1hn.fsf@catnip.gol.com> <20080623170553.GC7132@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214246753 11652 80.91.229.12 (23 Jun 2008 18:45:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 18:45:53 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, Miles Bader To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 20:46:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KAr3d-0006RH-KX for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 20:46:30 +0200 Original-Received: from localhost ([127.0.0.1]:45220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAr2n-0006xb-Cd for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 14:45:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAr2i-0006xS-89 for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:45:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAr2f-0006x8-T6 for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:45:30 -0400 Original-Received: from [199.232.76.173] (port=53024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAr2f-0006x5-N8 for emacs-devel@gnu.org; Mon, 23 Jun 2008 14:45:29 -0400 Original-Received: from vpn-132-204-232-71.acd.umontreal.ca ([132.204.232.71]:34015 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAr2b-0000Mm-N3; Mon, 23 Jun 2008 14:45:25 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 2EAF2B408A; Mon, 23 Jun 2008 14:45:24 -0400 (EDT) In-Reply-To: <20080623170553.GC7132@muc.de> (Alan Mackenzie's message of "Mon, 23 Jun 2008 17:05:53 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 1239 seconds by postgrey-1.27 at monty-python; Mon, 23 Jun 2008 14:45:25 EDT 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:99801 Archived-At: >> > I think beginning-of-defun-function should be passed the repeat count >> > (naturally doing the right thing when that function can't take it). >> Actually, I just looked at the place where beginning-of-defun-function >> is called (in `beginning-of-defun-raw'), and it _does_ pass the repeat >> count (with appropriate handling for old-style callees that don't expect >> it). > Well, so it does. I missed that change. Thanks, Stefan! >> So then this should be simple, right? > Right. I'll change it. > Just one small point, though. The doc-string for > beginning-of-defun-function recommends putting point at the { rather > than the function header. I think this is unright. Stefan? It's just a recommendation. It makes it unnecessary to define end-of-defun-function. But in your case you probably don't want to follow that recommendation, and define an appropriate end-of-defun-function to find the end of the body. Stefan