From 7dd72d76effad5198c0d43a2b68aafbfe34b5ee7 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Wed, 12 Jul 2017 17:42:12 +0000 Subject: [PATCH] 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. --- lisp/progmodes/cc-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 1150ebd33b5..23044b1f4f4 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -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. -- 2.39.2