[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c-mark-function goes too far

From: Alan Mackenzie
Subject: Re: c-mark-function goes too far
Date: 10 Jan 2007 21:44:34 +0100
Date: Wed, 10 Jan 2007 21:56:52 +0000
User-agent: Mutt/1.5.9i

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]