GNU bug report logs - #25747
25.1.91; hideshow binding C-c @ C-h overrides help

Previous Next

Package: emacs;

Reported by: Allen Li <vianchielfaura <at> gmail.com>

Date: Wed, 15 Feb 2017 22:31:02 UTC

Severity: minor

Tags: wontfix

Found in version 25.1.91

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25747 in the body.
You can then email your comments to 25747 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Wed, 15 Feb 2017 22:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Allen Li <vianchielfaura <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 15 Feb 2017 22:31:02 GMT) Full text and rfc822 format available.

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

From: Allen Li <vianchielfaura <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Wed, 15 Feb 2017 14:30:34 -0800
hideshow-minor-mode binds C-c @ C-h, preventing C-h from being used as
the help key to describe the bindings under the C-c @ prefix.

In GNU Emacs 25.1.91.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8),
modified by Debian
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS

Configured using:
 'configure --build x86_64-linux-gnu --build x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/google-emacs:/etc/emacs:/usr/local/share/emacs/25.1.91+gg1+2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1.91+gg1+2/site-lisp:/usr/share/emacs/site-lisp
 --with-crt-dir=/usr/lib/x86_64-linux-gnu --disable-build-details
 --disable-silent-rules --with-modules GOOGLE_VERSION=25.1.91+gg1+2
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 build_alias=x86_64-linux-gnu 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
 -Wl,-fuse-ld=gold,--export-dynamic-symbol=__google_auxv'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2 -DGOOGLE_EMACS_DEFINE_AUXV''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Thu, 16 Feb 2017 05:58:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Allen Li <vianchielfaura <at> gmail.com>
Cc: 25747 <at> debbugs.gnu.org
Subject: Re: bug#25747: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Thu, 16 Feb 2017 07:57:16 +0200
> From: Allen Li <vianchielfaura <at> gmail.com>
> Date: Wed, 15 Feb 2017 14:30:34 -0800
> 
> hideshow-minor-mode binds C-c @ C-h, preventing C-h from being used as
> the help key to describe the bindings under the C-c @ prefix.

You can type "C-c @ ?" instead, i.e. use the question-mark '?' instead
of C-h.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Thu, 16 Feb 2017 08:55:02 GMT) Full text and rfc822 format available.

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

From: Allen Li <vianchielfaura <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 25747 <at> debbugs.gnu.org
Subject: Re: bug#25747: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Thu, 16 Feb 2017 00:54:34 -0800
On Wed, Feb 15, 2017 at 9:57 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> You can type "C-c @ ?" instead, i.e. use the question-mark '?' instead
> of C-h.

Ah, that's embarrassing.  Rereading the manual I see this
important bit that I have forgotten:

    You can get a list of subcommands for a particular prefix key by
    typing C-h, ?, or F1 (describe-prefix-bindings) after the prefix
    key. (There are a few prefix keys for which not all of these keys
    work—those that provide their own bindings for that key. One of
    these prefix keys is ESC, because ESC C-h is actually C-M-h,
    which marks a defun. However, ESC F1 and ESC ? work fine.)

I guess this is working as intended, then?  I was thinking of the
recommendation in the style guide, which I have read many times more
than the manual:

    Don’t bind C-h following any prefix character (including
    C-c). If you don’t bind C-h, it is automatically available as
    a help character for listing the subcommands of the prefix
    character.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Thu, 16 Feb 2017 16:11:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Allen Li <vianchielfaura <at> gmail.com>
Cc: 25747 <at> debbugs.gnu.org
Subject: Re: bug#25747: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Thu, 16 Feb 2017 18:11:06 +0200
> From: Allen Li <vianchielfaura <at> gmail.com>
> Date: Thu, 16 Feb 2017 00:54:34 -0800
> Cc: 25747 <at> debbugs.gnu.org
> 
>     You can get a list of subcommands for a particular prefix key by
>     typing C-h, ?, or F1 (describe-prefix-bindings) after the prefix
>     key. (There are a few prefix keys for which not all of these keys
>     work—those that provide their own bindings for that key. One of
>     these prefix keys is ESC, because ESC C-h is actually C-M-h,
>     which marks a defun. However, ESC F1 and ESC ? work fine.)
> 
> I guess this is working as intended, then?

I don't know, it could be.

> I was thinking of the recommendation in the style guide, which I
> have read many times more than the manual:
> 
>     Don’t bind C-h following any prefix character (including
>     C-c). If you don’t bind C-h, it is automatically available as
>     a help character for listing the subcommands of the prefix
>     character.

Perhaps we should make that somewhat softer, e.g. "We don't recommend
binding C-h ... if it can be avoided.." or somesuch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Sun, 15 Nov 2020 01:15:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Allen Li <vianchielfaura <at> gmail.com>, 25747 <at> debbugs.gnu.org
Subject: Re: bug#25747: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Sat, 14 Nov 2020 17:14:36 -0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>>     You can get a list of subcommands for a particular prefix key by
>>     typing C-h, ?, or F1 (describe-prefix-bindings) after the prefix
>>     key. (There are a few prefix keys for which not all of these keys
>>     work—those that provide their own bindings for that key. One of
>>     these prefix keys is ESC, because ESC C-h is actually C-M-h,
>>     which marks a defun. However, ESC F1 and ESC ? work fine.)
>>
>> I guess this is working as intended, then?
>
> I don't know, it could be.
>
>> I was thinking of the recommendation in the style guide, which I
>> have read many times more than the manual:
>>
>>     Don’t bind C-h following any prefix character (including
>>     C-c). If you don’t bind C-h, it is automatically available as
>>     a help character for listing the subcommands of the prefix
>>     character.
>
> Perhaps we should make that somewhat softer, e.g. "We don't recommend
> binding C-h ... if it can be avoided.." or somesuch.

I think it's fine to maintain a firm recommendation.  Binding C-h is a
very poor choice, and should be discouraged accordingly.

I also think that "C-c @ C-h" is a very unfortunate keybinding, even if
it is mnemonic for "hide".  But it seems much too late to do anything
about that now.

So I don't think we should do anything here, besides closing this as
wontfix.  Any other opinions?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Sun, 15 Nov 2020 01:50:01 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Stefan Kangas <stefan <at> marxist.se>, Eli Zaretskii <eliz <at> gnu.org>
Cc: Allen Li <vianchielfaura <at> gmail.com>, 25747 <at> debbugs.gnu.org
Subject: RE: bug#25747: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Sat, 14 Nov 2020 17:47:32 -0800 (PST)
> I also think that "C-c @ C-h" is a very unfortunate keybinding, even if
> it is mnemonic for "hide".

I agree.  There are other *hide* commands that don't use `C-h'
in their bindings.  There are even other hideshow hide commands
that don't use it:

C-c @ C-M-h
C-c @ C-l
C-c @ C-t
C-c @ C-d

There's anyway redundancy: C-c @ C-h is the same as C-c @ C-d.
(And C-c @ C-M-h is the same as C-c @ C-t.)  Are all of the
default bindings really necessary/useful?

(If you think it's important to have something that fits with
the `C-c @ C-M-h' of `hs-hide-all' then use `C-c @ M-h'.)

My guess is that the author just didn't know about using `C-h'
after a prefix arg.  And the more exceptions to that working,
the more people will do likewise: mistakenly (in ignorance)
bind `C-h' after a prefix key, preventing it from that use.

> But it seems much too late to do anything about that now.

Why is it too late?  Just drop `C-c @ C-h' - that's my suggestion.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25747; Package emacs. (Wed, 01 Dec 2021 19:19:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Allen Li <vianchielfaura <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>,
 25747 <at> debbugs.gnu.org
Subject: Re: bug#25747: 25.1.91; hideshow binding C-c @ C-h overrides help
Date: Wed, 01 Dec 2021 20:18:34 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> So I don't think we should do anything here, besides closing this as
> wontfix.  Any other opinions?

I agree that there doesn't seem to be anything to do here, so I'm
closing this bug report now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 01 Dec 2021 19:19:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 25747 <at> debbugs.gnu.org and Allen Li <vianchielfaura <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 01 Dec 2021 19:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Dec 2021 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 168 days ago.

Previous Next


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