Subject: bug#57512: 29.0.50; outline-minor-mode-map outline-minor-mode-cycle-map are eq

From: Juri Linkov <[email-masked]>
Date: Thu, 01 Sep 2022 10:27:25 +0300

> (progn
>   (require 'outline)
>   (eq outline-minor-mode-map outline-minor-mode-cycle-map))
>
> -> t

It seems you found a bug in easy-mmode-define-keymap.

  (define-minor-mode outline-minor-mode
    :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)

This supposed to create a new keymap with these additional keybindings.
But it also destructively modifies outline-minor-mode-cycle-map
from which it should only inherit without changing it.