From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: Re: c-mark-function goes too far Date: 10 Jan 2007 21:44:34 +0100 Message-ID: <20070110215652.GB1136@muc.de> References: <000c01c73202$ec8e9880$6506a8c0@fountain> <87hcuz69lh.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168464086 1252 80.91.229.12 (10 Jan 2007 21:21:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2007 21:21:26 +0000 (UTC) Cc: bug-cc-mode@gnu.org, bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 10 22:21:24 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H4ksg-0000qs-MA for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jan 2007 22:21:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4ksg-0006n7-DW for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jan 2007 16:21:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4kJM-0006ax-An for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2007 15:44:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4kJK-0006Za-Dg for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2007 15:44:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4kJK-0006ZC-6j for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2007 15:44:38 -0500 Original-Received: from [193.149.48.1] (helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H4kJI-000197-7V for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2007 15:44:36 -0500 Original-Received: (qmail 13077 invoked by uid 3782); 10 Jan 2007 20:44:34 -0000 Original-Received: from acm.muc.de (p54A3F17B.dip.t-dialin.net [84.163.241.123]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 10 Jan 2007 21:44:32 +0100 Original-Received: (qmail 3860 invoked by uid 1000); 10 Jan 2007 21:56:52 -0000 Original-Date: Wed, 10 Jan 2007 21:56:52 +0000 Original-To: Richard Stallman , Miles Bader Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-Mailman-Approved-At: Wed, 10 Jan 2007 16:21:08 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15519 Archived-At: Hi, Miles, Richard and Emacs! On Wed, Jan 10, 2007 at 01:46:17PM -0500, Richard Stallman wrote: > Languages like Java have it much worse -- even isolated braces are > indented because functions are always methods within a class, so Emacs > function-oriented commands basically never do the right thing. > What about the commands that CC mode provides in Java mode? > Do they work better in these cases? No, not at the moment. This enhancement (making C-M-[ae] jump to the beginning/end of a function/method/... contained within a class/namespace/...) has been at the top of the CC Mode TODO list for some time. It's been asked for by quite a lot of people. The feature almost made it into CC Mode 5.31 at the end of 2005. It isn't actually that hard an enhancement, particularly after the recent refactoring of c-\(beginning\|end\)-of-defun. Amending the CC Mode and Emacs manuals will likely be more work than fixing the code. Just as soon as I've got "all" the bugs fixed for 5.31.4 and released it, I'll get this into a quick 5.32 release (with one other new feature). -- Alan.