projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
125a8a6
)
Make prog-mode-map the parent of c-mode-base-map. Fixes bug #26658.
author
Vasilij Schneidermann
<mail@vasilij.de>
Wed, 12 Jul 2017 17:42:12 +0000
(17:42 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Wed, 12 Jul 2017 17:42:12 +0000
(17:42 +0000)
* 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-mode.el
b/lisp/progmodes/cc-mode.el
index 1150ebd33b5e4d106a57c5cd09541d42126ec91d..23044b1f4f4d587230c12d380e5918f7c2a9007e 100644
(file)
--- 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.