diff options
| author | Karl Heuer | 1997-10-23 07:31:46 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-23 07:31:46 +0000 |
| commit | dc2b4c5f0f7504f96be6f35f7b1fd22194f38415 (patch) | |
| tree | 0b339ec8f6993a6f8252d637e7d1d89af5995e14 | |
| parent | 05896d7773b24b3268416f023de318fb950625d2 (diff) | |
| download | emacs-dc2b4c5f0f7504f96be6f35f7b1fd22194f38415.tar.gz emacs-dc2b4c5f0f7504f96be6f35f7b1fd22194f38415.zip | |
(objc-mode): Bind imenu-create-index-function
to cc-imenu-objc-function to enable Imenu support for Objective-C.
Contributed by Masatake (jet) YAMATO.
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 9 |
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 @@ | |||
| 7 | ;; 1985 Richard M. Stallman | 7 | ;; 1985 Richard M. Stallman |
| 8 | ;; Maintainer: cc-mode-help@python.org | 8 | ;; Maintainer: cc-mode-help@python.org |
| 9 | ;; Created: a long, long, time ago. adapted from the original c-mode.el | 9 | ;; Created: a long, long, time ago. adapted from the original c-mode.el |
| 10 | ;; Version: 5.17 | 10 | ;; Version: 5.18 |
| 11 | ;; Keywords: c languages oop | 11 | ;; Keywords: c languages oop |
| 12 | 12 | ||
| 13 | ;; NOTE: Read the commentary below for the right way to submit bug reports! | 13 | ;; NOTE: Read the commentary below for the right way to submit bug reports! |
| @@ -234,7 +234,8 @@ Key bindings: | |||
| 234 | c-class-key c-ObjC-class-key | 234 | c-class-key c-ObjC-class-key |
| 235 | c-baseclass-key nil | 235 | c-baseclass-key nil |
| 236 | c-access-key c-ObjC-access-key | 236 | c-access-key c-ObjC-access-key |
| 237 | c-method-key c-ObjC-method-key) | 237 | c-method-key c-ObjC-method-key |
| 238 | imenu-create-index-function 'cc-imenu-objc-function) | ||
| 238 | (run-hooks 'c-mode-common-hook) | 239 | (run-hooks 'c-mode-common-hook) |
| 239 | (run-hooks 'objc-mode-hook) | 240 | (run-hooks 'objc-mode-hook) |
| 240 | (c-update-modeline)) | 241 | (c-update-modeline)) |
| @@ -243,7 +244,7 @@ Key bindings: | |||
| 243 | ;;;###autoload | 244 | ;;;###autoload |
| 244 | (defun java-mode () | 245 | (defun java-mode () |
| 245 | "Major mode for editing Java code. | 246 | "Major mode for editing Java code. |
| 246 | To submit a problem report, enter `\\[c-submit-bug-report]' from an | 247 | To submit a problem report, enter `\\[c-submit-bug-report]' from a |
| 247 | java-mode buffer. This automatically sets up a mail buffer with | 248 | java-mode buffer. This automatically sets up a mail buffer with |
| 248 | version information already added. You just need to add a description | 249 | version information already added. You just need to add a description |
| 249 | of the problem, including a reproducible test case and send the | 250 | of the problem, including a reproducible test case and send the |
| @@ -326,7 +327,7 @@ Key bindings: | |||
| 326 | 327 | ||
| 327 | 328 | ||
| 328 | ;; defuns for submitting bug reports | 329 | ;; defuns for submitting bug reports |
| 329 | (defconst c-version "5.17" | 330 | (defconst c-version "5.18" |
| 330 | "CC Mode version number.") | 331 | "CC Mode version number.") |
| 331 | 332 | ||
| 332 | (defconst c-mode-help-address | 333 | (defconst c-mode-help-address |