unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* narrow-to-defun and mark-defun now work properly for CC Mode.
@ 2007-04-09 11:18 Alan Mackenzie
  2007-04-09 17:00 ` Eric Hanchrow
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Alan Mackenzie @ 2007-04-09 11:18 UTC (permalink / raw)
  To: emacs-devel; +Cc: Sean O'Rourke, David Hansen, Dave Love

Hi, Emacs!

I've patched .../lisp/progmodes/cc-{defs,langs,cmds,awk}.el in savannah
(but not yet at SourceForge) so that these two commands work properly -
up till now, they've enclosed the region between the braces; now they
enclose the entire function, including the function header.

The basic idea is to set \(beginning\|end\)-of-defun-function to the
corresponding CC Mode functions.  However, C-M-[ae] remain bound
directly to these CC Mode functions to allow optimisation for large
argument (factor ~10 in speed).

Some macros have been changed, and there are two new ones.  Here is a
recipe for recompiling CC Mode, which gets these macros compiled in the
right order:

(i) M-x byte-compile-file cc-defs.el.  M-x load-file /path/cc-defs.elc
(ii) M-x byte-compile-file cc-langs.el.  M-x load-file /path/cc-langs.elc
(iii) M-x byte-compile-file cc-engine.el.  M-x load-file ../cc-engine.elc
(iv) M-x byte-compile-file cc-mode.el.  M-x load-file ../cc-mode.elc

(v) compile and load cc-{awk,cmds}.el (no dependence on the other four files).

Please complain to me about any problems.

-- 
Alan Mackenzie (Munich, Germany)

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

end of thread, other threads:[~2007-04-12 22:04 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-09 11:18 narrow-to-defun and mark-defun now work properly for CC Mode Alan Mackenzie
2007-04-09 17:00 ` Eric Hanchrow
2007-04-11  0:29 ` Nick Roberts
2007-04-11  5:27   ` martin rudalics
2007-04-11 17:26     ` Chong Yidong
2007-04-11 17:53       ` Chong Yidong
2007-04-11 18:53         ` Eli Zaretskii
2007-04-11 19:49         ` Alan Mackenzie
2007-04-11 20:22           ` Alan Mackenzie
2007-04-11 21:53             ` Robert J. Chassell
2007-04-11 20:51           ` Chong Yidong
2007-04-11 21:02             ` Alan Mackenzie
2007-04-11 22:19               ` Nick Roberts
2007-04-12 18:45                 ` Alan Mackenzie
2007-04-12 22:04                   ` Nick Roberts
2007-04-12 17:43               ` Richard Matthew Stallman
2007-04-12 19:08               ` Stefan Monnier
2007-04-11 21:21             ` Kim F. Storm
2007-04-12  3:18             ` Eli Zaretskii
2007-04-12  3:51               ` Nick Roberts
2007-04-12 19:08                 ` Eli Zaretskii
2007-04-11 19:51         ` Kim F. Storm
2007-04-11 21:27         ` Edward O'Connor
2007-04-11 19:46   ` Richard Matthew Stallman
2007-04-11 18:04 ` Chong Yidong
2007-04-11 23:04   ` Richard Matthew Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).