GNU bug report logs - #73607
30.0.90; Strange behaviour of C-x with define-prefix-command

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Thu, 3 Oct 2024 02:43:01 UTC

Severity: normal

Found in version 30.0.90

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 73607 <at> debbugs.gnu.org
Subject: bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
Date: Thu, 03 Oct 2024 14:22:43 +0300
> From: Sean Whitton <spwhitton <at> spwhitton.name>
> Cc: 73607 <at> debbugs.gnu.org
> Date: Thu, 03 Oct 2024 15:13:52 +0800
> 
> Hello,
> 
> On Thu 03 Oct 2024 at 10:05am +03, Eli Zaretskii wrote:
> 
> >> From: Sean Whitton <spwhitton <at> spwhitton.name>
> >> Date: Thu, 03 Oct 2024 10:42:05 +0800
> >>
> >> 1. emacs -q
> >> 2. (global-set-key "\C-z" (define-prefix-command 'foo))
> >> 3. C-z C-c => "C-z C-c is undefined" as expected
> >>
> >> However:
> >>
> >> 4. C-z C-x => "C-z C-x- (C-h for help)"
> >> 5. C-z C-x C-h => "No commands with a binding that start with C-z C-x."
> >
> > Why is that a problem?
> 
> It should say "C-z C-x is undefined" right away, like with every other key.

C-x is not like other keys, it is handled specially.  I think.




This bug report was last modified 234 days ago.

Previous Next


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