summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1997-10-23 07:31:46 +0000
committerKarl Heuer <kwzh@gnu.org>1997-10-23 07:31:46 +0000
commitdc2b4c5f0f7504f96be6f35f7b1fd22194f38415 (patch)
tree0b339ec8f6993a6f8252d637e7d1d89af5995e14 /lisp/progmodes
parent05896d7773b24b3268416f023de318fb950625d2 (diff)
downloademacs-dc2b4c5f0f7504f96be6f35f7b1fd22194f38415.tar.gz
(objc-mode): Bind imenu-create-index-function
to cc-imenu-objc-function to enable Imenu support for Objective-C. Contributed by Masatake (jet) YAMATO.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 98fe3a2aabd..2ddf2d4ee4e 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -7,7 +7,7 @@
;; 1985 Richard M. Stallman
;; Maintainer: cc-mode-help@python.org
;; Created: a long, long, time ago. adapted from the original c-mode.el
-;; Version: 5.17
+;; Version: 5.18
;; Keywords: c languages oop
;; NOTE: Read the commentary below for the right way to submit bug reports!
@@ -234,7 +234,8 @@ Key bindings:
c-class-key c-ObjC-class-key
c-baseclass-key nil
c-access-key c-ObjC-access-key
- c-method-key c-ObjC-method-key)
+ c-method-key c-ObjC-method-key
+ imenu-create-index-function 'cc-imenu-objc-function)
(run-hooks 'c-mode-common-hook)
(run-hooks 'objc-mode-hook)
(c-update-modeline))
@@ -243,7 +244,7 @@ Key bindings:
;;;###autoload
(defun java-mode ()
"Major mode for editing Java code.
-To submit a problem report, enter `\\[c-submit-bug-report]' from an
+To submit a problem report, enter `\\[c-submit-bug-report]' from a
java-mode buffer. This automatically sets up a mail buffer with
version information already added. You just need to add a description
of the problem, including a reproducible test case and send the
@@ -326,7 +327,7 @@ Key bindings:
;; defuns for submitting bug reports
-(defconst c-version "5.17"
+(defconst c-version "5.18"
"CC Mode version number.")
(defconst c-mode-help-address