Subject: bug#58216: 28.2; New help-for-help hides user key bindings

From: Stefan Kangas <[email-masked]>
Date: Mon, 3 Oct 2022 11:20:31 +0200

severity 58216 wishlist
thanks

Allen Li <[email-masked]> writes:

> Before the recent binding of C-h C-h to help-for-help, C-h C-h was
> unbound

AFAICT, that key binding has been the same since at least:

    commit 433ae6f6e191af1d1bc67025200ea54a08761e68
    Author: Richard M. Stallman <[email-masked]>
    Date:   Sun Aug 25 21:47:10 1991 +0000

        Initial revision

Which says:

    (define-key global-map "\C-h" 'help-command)
    (fset 'help-command help-map)
    (define-key help-map "\C-h" 'help-for-help)

> and thus used the default behavior of printing help for all keys
> bound to the prefix map.  As an example see the behavior for C-x C-h.
> If the user bound a key with C-h prefix, that binding previously would
> show up in C-h C-h help.

That's not what I see in Emacs 27.1.  Have you tried it in "emacs -Q"?