(c-make-inherited-keymap): Only use set-keymap-parents if set-keymap-parent
doesn't exist.
This commit is contained in:
parent
17150f4857
commit
b705155a62
2 changed files with 6 additions and 3 deletions
|
@ -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 |.
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue