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:
committed by
Alan Mackenzie
parent
125a8a62db
commit
7dd72d76ef
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user