Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

(custom-mode-map): Switch back to a sparse keymap.

  • Loading branch information...
commit 3729f54bf45c4c534c2b9bd51ff0f39f200c88c2 1 parent 57cda95
@monnier monnier authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lisp/cus-edit.el
View
4 lisp/cus-edit.el
@@ -3661,7 +3661,9 @@ The format is suitable for use with `easy-menu-define'."
"Keymap for `custom-mode'.")
(unless custom-mode-map
- (setq custom-mode-map (make-keymap))
+ ;; This keymap should be dense, but a dense keymap would prevent inheriting
+ ;; "\r" bindings from the parent map.
+ (setq custom-mode-map (make-sparse-keymap))
(set-keymap-parent custom-mode-map widget-keymap)
(suppress-keymap custom-mode-map)
(define-key custom-mode-map " " 'scroll-up)
Please sign in to comment.
Something went wrong with that request. Please try again.