(c-make-inherited-keymap): Only use set-keymap-parents if set-keymap-parent
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Jun 2008 19:52:37 +0000 (19:52 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Jun 2008 19:52:37 +0000 (19:52 +0000)
doesn't exist.

lisp/ChangeLog
lisp/progmodes/cc-mode.el

index b80d9ac..0b6f336 100644 (file)
@@ -1,5 +1,8 @@
 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * progmodes/cc-mode.el (c-make-inherited-keymap): Only use
+       set-keymap-parents if set-keymap-parent doesn't exist.
+
        * vc-bzr.el (vc-bzr-annotate-extract-revision-at-line):
        Allow more than one space before the |.
 
index 0ae0385..9076491 100644 (file)
@@ -214,12 +214,12 @@ control).  See \"cc-mode.el\" for more info."
     ;; function is called from top-level forms that are evaluated
     ;; while cc-bytecomp is active when one does M-x eval-buffer.
     (cond
-     ;; XEmacs
-     ((cc-bytecomp-fboundp 'set-keymap-parents)
-      (set-keymap-parents map c-mode-base-map))
      ;; Emacs
      ((cc-bytecomp-fboundp 'set-keymap-parent)
       (set-keymap-parent map c-mode-base-map))
+     ;; XEmacs
+     ((cc-bytecomp-fboundp 'set-keymap-parents)
+      (set-keymap-parents map c-mode-base-map))
      ;; incompatible
      (t (error "CC Mode is incompatible with this version of Emacs")))
     map))