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: Andreas Schwab <schwab <at> linux-m68k.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 73607 <at> debbugs.gnu.org, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
Date: Thu, 03 Oct 2024 13:58:36 +0200
On Okt 03 2024, Eli Zaretskii wrote:

>> >> 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.

C-x starts a key translation.  If you type C-z C-x 8 " s you get the
same binding as C-z ß.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




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.