GNU bug report logs - #58216
Display user's custom keybindings in `help-for-help' (`C-h C-h')

Previous Next

Package: emacs;

Reported by: Allen Li <darkfeline <at> felesatra.moe>

Date: Sat, 1 Oct 2022 09:09:01 UTC

Severity: wishlist

Found in version 28.2

Full log


Message #40 received at control <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Allen Li <darkfeline <at> felesatra.moe>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 58216 <at> debbugs.gnu.org
Subject: Re: bug#58216: 28.2; New help-for-help hides user key bindings
Date: Mon, 3 Oct 2022 11:20:31 +0200
severity 58216 wishlist
thanks

Allen Li <darkfeline <at> felesatra.moe> 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 <rms <at> gnu.org>
    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"?




This bug report was last modified 2 years and 253 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.