aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-08 03:20:17 +0000
committerRichard M. Stallman1997-09-08 03:20:17 +0000
commitb2eeba64e91f3b38008f512887766b6a20c5f6fe (patch)
tree9cebebc1d773c6b50bfdddfd0141aaf0bc513e3e
parentfd3b1ef6558975a67e1a29fb7caa9753cdf03022 (diff)
downloademacs-b2eeba64e91f3b38008f512887766b6a20c5f6fe.tar.gz
emacs-b2eeba64e91f3b38008f512887766b6a20c5f6fe.zip
(c-mode-base-map): Don't define C-c C-e here.
(c-mode-map, c++-mode-map): Define C-c C-e here. (objc-mode-map): Define C-c C-e, not /. (java-mode-map, idl-mode-map): Don't define /.
-rw-r--r--lisp/progmodes/cc-langs.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index ab1bc898e65..f27d944ee00 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.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: 22-Apr-1997 (split from cc-mode.el) 9;; Created: 22-Apr-1997 (split from cc-mode.el)
10;; Version: 5.16 10;; Version: 5.17
11;; Keywords: c languages oop 11;; Keywords: c languages oop
12 12
13;; This file is part of GNU Emacs. 13;; This file is part of GNU Emacs.
@@ -375,7 +375,6 @@ it finds in `c-file-offsets'."
375 (define-key c-mode-base-map "\C-c\C-b" 'c-submit-bug-report) 375 (define-key c-mode-base-map "\C-c\C-b" 'c-submit-bug-report)
376 (define-key c-mode-base-map "\C-c\C-c" 'comment-region) 376 (define-key c-mode-base-map "\C-c\C-c" 'comment-region)
377 (define-key c-mode-base-map "\C-c\C-d" 'c-toggle-hungry-state) 377 (define-key c-mode-base-map "\C-c\C-d" 'c-toggle-hungry-state)
378 (define-key c-mode-base-map "\C-c\C-e" 'c-macro-expand)
379 (define-key c-mode-base-map "\C-c\C-o" 'c-set-offset) 378 (define-key c-mode-base-map "\C-c\C-o" 'c-set-offset)
380 (define-key c-mode-base-map "\C-c\C-s" 'c-show-syntactic-information) 379 (define-key c-mode-base-map "\C-c\C-s" 'c-show-syntactic-information)
381 (define-key c-mode-base-map "\C-c\C-t" 'c-toggle-auto-hungry-state) 380 (define-key c-mode-base-map "\C-c\C-t" 'c-toggle-auto-hungry-state)
@@ -429,6 +428,7 @@ it finds in `c-file-offsets'."
429 nil 428 nil
430 (setq c-mode-map (c-make-inherited-keymap)) 429 (setq c-mode-map (c-make-inherited-keymap))
431 ;; add bindings which are only useful for C 430 ;; add bindings which are only useful for C
431 (define-key c-mode-map "\C-c\C-e" 'c-macro-expand)
432 ) 432 )
433 433
434;;;###autoload 434;;;###autoload
@@ -455,9 +455,10 @@ it finds in `c-file-offsets'."
455 nil 455 nil
456 (setq c++-mode-map (c-make-inherited-keymap)) 456 (setq c++-mode-map (c-make-inherited-keymap))
457 ;; add bindings which are only useful for C++ 457 ;; add bindings which are only useful for C++
458 (define-key c++-mode-map "\C-c:" 'c-scope-operator) 458 (define-key c++-mode-map "\C-c\C-e" 'c-macro-expand)
459 (define-key c++-mode-map "<" 'c-electric-lt-gt) 459 (define-key c++-mode-map "\C-c:" 'c-scope-operator)
460 (define-key c++-mode-map ">" 'c-electric-lt-gt)) 460 (define-key c++-mode-map "<" 'c-electric-lt-gt)
461 (define-key c++-mode-map ">" 'c-electric-lt-gt))
461 462
462;;;###autoload 463;;;###autoload
463(defvar c++-mode-syntax-table nil 464(defvar c++-mode-syntax-table nil
@@ -491,7 +492,7 @@ it finds in `c-file-offsets'."
491 nil 492 nil
492 (setq objc-mode-map (c-make-inherited-keymap)) 493 (setq objc-mode-map (c-make-inherited-keymap))
493 ;; add bindings which are only useful for Objective-C 494 ;; add bindings which are only useful for Objective-C
494 (define-key objc-mode-map "/" 'c-electric-slash)) 495 (define-key objc-mode-map "\C-c\C-e" 'c-macro-expand))
495 496
496;;;###autoload 497;;;###autoload
497(defvar objc-mode-syntax-table nil 498(defvar objc-mode-syntax-table nil
@@ -519,7 +520,7 @@ it finds in `c-file-offsets'."
519 nil 520 nil
520 (setq java-mode-map (c-make-inherited-keymap)) 521 (setq java-mode-map (c-make-inherited-keymap))
521 ;; add bindings which are only useful for Java 522 ;; add bindings which are only useful for Java
522 (define-key java-mode-map "/" 'c-electric-slash)) 523 )
523 524
524;;;###autoload 525;;;###autoload
525(defvar java-mode-syntax-table nil 526(defvar java-mode-syntax-table nil
@@ -544,8 +545,8 @@ it finds in `c-file-offsets'."
544(if idl-mode-map 545(if idl-mode-map
545 nil 546 nil
546 (setq idl-mode-map (c-make-inherited-keymap)) 547 (setq idl-mode-map (c-make-inherited-keymap))
547 ;; additional bindings 548 ;; add bindings which are only useful for IDL
548 (define-key idl-mode-map "/" 'c-electric-slash)) 549 )
549 550
550;;;###autoload 551;;;###autoload
551(defvar idl-mode-syntax-table nil 552(defvar idl-mode-syntax-table nil