emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d029ec8d76: Fix outline-minor-mode-map


From: Lars Ingebrigtsen
Subject: master d029ec8d76: Fix outline-minor-mode-map
Date: Thu, 1 Sep 2022 06:24:56 -0400 (EDT)

branch: master
commit d029ec8d76d0d949bfeacc3364061d879d84ee6e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix outline-minor-mode-map
    
    * lisp/outline.el (outline-minor-mode): Avoid using
    easy-mmode-define-keymap, since it doesn't handle :inherit
    correctly (bug#57512).
---
 lisp/outline.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/outline.el b/lisp/outline.el
index 857ac9562f..2e18fd5b8f 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]