comparison lisp/cc-mode/cc-mode.el @ 183:e121b013d1f0 r20-3b18

Import from CVS: tag r20-3b18
author cvs
date Mon, 13 Aug 2007 09:54:23 +0200
parents bfd6434d15b3
children b405438285a2
comparison
equal deleted inserted replaced
182:f07455f06202 183:e121b013d1f0
5 ;; Authors: 1992-1997 Barry A. Warsaw 5 ;; Authors: 1992-1997 Barry A. Warsaw
6 ;; 1987 Dave Detlefs and Stewart Clamen 6 ;; 1987 Dave Detlefs and Stewart Clamen
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.15 10 ;; Version: 5.16
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!
14 ;; NOTE: See the accompanying texinfo manual for details on using this mode! 14 ;; NOTE: See the accompanying texinfo manual for details on using this mode!
15 15
78 ;;; Code: 78 ;;; Code:
79 79
80 (eval-when-compile 80 (eval-when-compile
81 (require 'cc-menus)) 81 (require 'cc-menus))
82 (require 'cc-defs) 82 (require 'cc-defs)
83
84 (defvar c-buffer-is-cc-mode nil
85 "Non-nil for all buffers with a `major-mode' derived from CC Mode.
86 Otherwise, this variable is nil. I.e. this variable is non-nil for
87 `c-mode', `c++-mode', `objc-mode', `java-mode', `idl-mode', and any
88 other non-CC Mode mode that calls `c-initialize-cc-mode'
89 \(e.g. `awk-mode').")
90 (make-variable-buffer-local 'c-buffer-is-cc-mode)
91 (put 'c-buffer-is-cc-mode 'permanent-local t)
83 92
84 93
85 ;; Other modes and packages which depend on CC Mode should do the 94 ;; Other modes and packages which depend on CC Mode should do the
86 ;; following to make sure everything is loaded and available for their 95 ;; following to make sure everything is loaded and available for their
87 ;; use: 96 ;; use:
183 comment-end "" 192 comment-end ""
184 c-conditional-key c-C++-conditional-key 193 c-conditional-key c-C++-conditional-key
185 c-comment-start-regexp c-C++-comment-start-regexp 194 c-comment-start-regexp c-C++-comment-start-regexp
186 c-class-key c-C++-class-key 195 c-class-key c-C++-class-key
187 c-access-key c-C++-access-key 196 c-access-key c-C++-access-key
188 c-double-slash-is-comments-p t
189 c-recognize-knr-p nil 197 c-recognize-knr-p nil
190 imenu-generic-expression cc-imenu-c++-generic-expression) 198 imenu-generic-expression cc-imenu-c++-generic-expression)
191 (run-hooks 'c-mode-common-hook) 199 (run-hooks 'c-mode-common-hook)
192 (run-hooks 'c++-mode-hook) 200 (run-hooks 'c++-mode-hook)
193 (c-update-modeline)) 201 (c-update-modeline))
224 c-conditional-key c-C-conditional-key 232 c-conditional-key c-C-conditional-key
225 c-comment-start-regexp c-C++-comment-start-regexp 233 c-comment-start-regexp c-C++-comment-start-regexp
226 c-class-key c-ObjC-class-key 234 c-class-key c-ObjC-class-key
227 c-baseclass-key nil 235 c-baseclass-key nil
228 c-access-key c-ObjC-access-key 236 c-access-key c-ObjC-access-key
229 c-double-slash-is-comments-p t
230 c-method-key c-ObjC-method-key) 237 c-method-key c-ObjC-method-key)
231 (run-hooks 'c-mode-common-hook) 238 (run-hooks 'c-mode-common-hook)
232 (run-hooks 'objc-mode-hook) 239 (run-hooks 'objc-mode-hook)
233 (c-update-modeline)) 240 (c-update-modeline))
234 241
265 comment-end "" 272 comment-end ""
266 c-conditional-key c-Java-conditional-key 273 c-conditional-key c-Java-conditional-key
267 c-comment-start-regexp c-Java-comment-start-regexp 274 c-comment-start-regexp c-Java-comment-start-regexp
268 c-class-key c-Java-class-key 275 c-class-key c-Java-class-key
269 c-method-key c-Java-method-key 276 c-method-key c-Java-method-key
270 c-double-slash-is-comments-p t
271 c-baseclass-key nil 277 c-baseclass-key nil
272 c-recognize-knr-p nil 278 c-recognize-knr-p nil
273 c-access-key c-Java-access-key 279 c-access-key c-Java-access-key
274 ;defun-prompt-regexp c-Java-defun-prompt-regexp 280 ;defun-prompt-regexp c-Java-defun-prompt-regexp
275 imenu-generic-expression cc-imenu-java-generic-expression 281 imenu-generic-expression cc-imenu-java-generic-expression
310 comment-end "" 316 comment-end ""
311 c-conditional-key c-C++-conditional-key 317 c-conditional-key c-C++-conditional-key
312 c-comment-start-regexp c-C++-comment-start-regexp 318 c-comment-start-regexp c-C++-comment-start-regexp
313 c-class-key c-C++-class-key 319 c-class-key c-C++-class-key
314 c-access-key c-C++-access-key 320 c-access-key c-C++-access-key
315 c-double-slash-is-comments-p t
316 c-recognize-knr-p nil) 321 c-recognize-knr-p nil)
317 ;; imenu-generic-expression cc-imenu-c++-generic-expression) 322 ;; imenu-generic-expression cc-imenu-c++-generic-expression)
318 (run-hooks 'c-mode-common-hook) 323 (run-hooks 'c-mode-common-hook)
319 (run-hooks 'idl-mode-hook) 324 (run-hooks 'idl-mode-hook)
320 (c-update-modeline)) 325 (c-update-modeline))
321 326
322 327
323 ;; defuns for submitting bug reports 328 ;; defuns for submitting bug reports
324 (defconst c-version "5.15" 329 (defconst c-version "5.16"
325 "CC Mode version number.") 330 "CC Mode version number.")
326 331
327 (defconst c-mode-help-address 332 (defconst c-mode-help-address
328 "bug-gnu-emacs@prep.ai.mit.edu, cc-mode-help@python.org" 333 "bug-gnu-emacs@prep.ai.mit.edu, cc-mode-help@python.org"
329 "Address for CC Mode bug reports.") 334 "Address for CC Mode bug reports.")