]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix outline-minor-mode-map
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 1 Sep 2022 10:24:17 +0000 (12:24 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 1 Sep 2022 10:24:17 +0000 (12:24 +0200)
* lisp/outline.el (outline-minor-mode): Avoid using
easy-mmode-define-keymap, since it doesn't handle :inherit
correctly (bug#57512).

lisp/outline.el

index 857ac9562fd679b148ac55f83be46e030bf331a0..2e18fd5b8fed1b4595f5bce93feb67115d86f91e 100644 (file)
@@ -444,10 +444,10 @@ outline font-lock faces to those of major mode."
 
 See the command `outline-mode' for more information on this mode."
   :lighter " Outl"
-  :keymap (easy-mmode-define-keymap
-           `(([menu-bar] . ,outline-minor-mode-menu-bar-map)
-             (,outline-minor-mode-prefix . ,outline-mode-prefix-map))
-           :inherit outline-minor-mode-cycle-map)
+  :keymap (define-keymap
+            :parent outline-minor-mode-cycle-map
+            "<menu-bar>" outline-minor-mode-menu-bar-map
+            (key-description outline-minor-mode-prefix) outline-mode-prefix-map)
   (if outline-minor-mode
       (progn
         (when outline-minor-mode-highlight