From: Dave L. <fx...@gn...> - 2006-05-09 14:19:55
|
{beginning,end}-of-defun-function should be bound appropriately to DTRT in Emacs, at least. There's a comment in cc-mode.el about not binding \e\C-a, \e\C-e, saying that rms said not to. I don't know whether that's just because it's not the right way to do it and maybe it dates from before I added the hooks, but the current situation is clearly wrong. As you doubtless realize, C-M-a fails completely with K&R style, and it doesn't even go to the actual beginning of the function with GNU style, just the outer brace. I've been annoyed by that for a long time, but I don't think I realized that the CC basic support was there. This patch sets things up appropriately for Emacs. The hooks aren't in XEmacs, so that won't be affected. |