Make prog-mode-map the parent of c-mode-base-map. Fixes bug #26658.

* lisp/progmodes/cc-mode.el (top level): Make prog-mode-map the parent of
c-mode-base-map if possible.
This commit is contained in:
Vasilij Schneidermann 2017-07-12 17:42:12 +00:00 committed by Alan Mackenzie
parent 125a8a62db
commit 7dd72d76ef

View file

@ -265,6 +265,8 @@ control). See \"cc-mode.el\" for more info."
nil
(setq c-mode-base-map (make-sparse-keymap))
(when (boundp 'prog-mode-map)
(c-set-keymap-parent c-mode-base-map prog-mode-map))
;; Separate M-BS from C-M-h. The former should remain
;; backward-kill-word.