all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* beginning-of-defun in cc-mode based languages doesn't work?
@ 2010-06-03 19:51 cstacy
  2010-06-03 20:14 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: cstacy @ 2010-06-03 19:51 UTC (permalink / raw
  To: help-gnu-emacs

It seems that c-m-a never works for me in cc-mode based languages,
such as csharp-mode.
It always moves to the beginning of the most top-level definition,
such as namespace.
I expected to move to the beginning ot something more local, such as
the current function definition.

(Tried without any init file in most versions of emacs, including 21
and 22.)
I don't think I've ever seen this work (in the last 10 years...)

Are my expectations wrong, or what?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: beginning-of-defun in cc-mode based languages doesn't work?
  2010-06-03 19:51 beginning-of-defun in cc-mode based languages doesn't work? cstacy
@ 2010-06-03 20:14 ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2010-06-03 20:14 UTC (permalink / raw
  To: help-gnu-emacs

cstacy <cstacy.google@dtpq.com> wrote:
> It seems that c-m-a never works for me in cc-mode based languages, such
> as csharp-mode.  It always moves to the beginning of the most top-level
> definition, such as namespace.  I expected to move to the beginning ot
> something more local, such as the current function definition.

> (Tried without any init file in most versions of emacs, including 21
> and 22.) I don't think I've ever seen this work (in the last 10
> years...)

> Are my expectations wrong, or what?

This is a longstanding problem which has been fixed in CC Mode 5.32
(which hasn't yet been released).  If you want to play with this version,
download it by following the instructions on
<http://cc-mode.sourceforge.net/anoncvs.php>.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-03 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03 19:51 beginning-of-defun in cc-mode based languages doesn't work? cstacy
2010-06-03 20:14 ` Alan Mackenzie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.