From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Cc: Sean O'Rourke <sorourke@cs.ucsd.edu>,
David Hansen <david.hansen@gmx.net>, Dave Love <fx@gnu.org>
Subject: narrow-to-defun and mark-defun now work properly for CC Mode.
Date: 9 Apr 2007 13:18:04 +0200 [thread overview]
Message-ID: <20070409123730.GD1065@muc.de> (raw)
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)
next reply other threads:[~2007-04-09 11:18 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-09 11:18 Alan Mackenzie [this message]
2007-04-09 17:00 ` narrow-to-defun and mark-defun now work properly for CC Mode 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070409123730.GD1065@muc.de \
--to=acm@muc.de \
--cc=david.hansen@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=fx@gnu.org \
--cc=sorourke@cs.ucsd.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.