aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-defs.el
diff options
context:
space:
mode:
authorAlan Mackenzie <[email protected]>2008-06-27 21:12:46 +0000
committerAlan Mackenzie <[email protected]>2008-06-27 21:12:46 +0000
commit13ac2398ff34ce51d1f3b7cafa2aea9af99cf203 (patch)
tree8187b144e2d1dca839b732facd2da7e1f2819682 /lisp/progmodes/cc-defs.el
parent2a79117ef584d4d01254a7fd311a755984f728b6 (diff)
cc-mode.el (c-mode-base-map): Don't bind C-M-[ae] to the CC Mode specific
functions; this is no longer needed, since {beginning,end}-of-defun now pass ARG to ...-of-defun-function. cc-defs.el (c-emacs-features): new feature 'argumentative-bod-function. ---------------------------------------------------------------------- cc-defs.el cc-mode.el CVS: ----------------------------------------------------------------------
Diffstat (limited to 'lisp/progmodes/cc-defs.el')
-rw-r--r--lisp/progmodes/cc-defs.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index dcdcdaec72..d1a1a75f30 100644
--- a/lisp/progmodes/cc-defs.el
+++ b/lisp/progmodes/cc-defs.el
@@ -1440,6 +1440,14 @@ non-nil, a caret is prepended to invert the set."
'1-bit)
list)))
+ ;; In Emacs >= 23, beginning-of-defun will passes its parameter to
+ ;; beginning-of-defun-function. Assume end-of-defun does the same.
+ (let ((beginning-of-defun-function
+ (lambda (&optional arg)
+ (not (eq arg nil)))))
+ (if (beginning-of-defun 1)
+ (setq list (cons 'argumentative-bod-function list))))
+
(let ((buf (generate-new-buffer " test"))
parse-sexp-lookup-properties
parse-sexp-ignore-comments
@@ -1539,6 +1547,9 @@ might be present:
'8-bit 8 bit syntax entry flags (XEmacs style).
'1-bit 1 bit syntax entry flags (Emacs style).
+'argumentative-bod-function beginning-of-defun passes ARG through
+ to a non-null beginning-of-defun-function. It is assumed
+ the end-of-defun does the same thing.
'syntax-properties It works to override the syntax for specific characters
in the buffer with the 'syntax-table property. It's
always set - CC Mode no longer works in emacsen without