* bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
@ 2024-10-03 2:42 Sean Whitton
2024-10-03 7:05 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Sean Whitton @ 2024-10-03 2:42 UTC (permalink / raw)
To: 73607
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."
I am on the pgtk build.
--
Sean Whitton
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
2024-10-03 2:42 bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command Sean Whitton
@ 2024-10-03 7:05 ` Eli Zaretskii
2024-10-03 7:13 ` Sean Whitton
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2024-10-03 7:05 UTC (permalink / raw)
To: Sean Whitton; +Cc: 73607
> From: Sean Whitton <spwhitton@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?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
2024-10-03 7:05 ` Eli Zaretskii
@ 2024-10-03 7:13 ` Sean Whitton
2024-10-03 11:22 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Sean Whitton @ 2024-10-03 7:13 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 73607
Hello,
On Thu 03 Oct 2024 at 10:05am +03, Eli Zaretskii wrote:
>> From: Sean Whitton <spwhitton@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.
--
Sean Whitton
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
2024-10-03 7:13 ` Sean Whitton
@ 2024-10-03 11:22 ` Eli Zaretskii
2024-10-03 11:58 ` Andreas Schwab
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2024-10-03 11:22 UTC (permalink / raw)
To: Sean Whitton; +Cc: 73607
> From: Sean Whitton <spwhitton@spwhitton.name>
> Cc: 73607@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@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command
2024-10-03 11:22 ` Eli Zaretskii
@ 2024-10-03 11:58 ` Andreas Schwab
2024-10-04 9:15 ` Sean Whitton
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2024-10-03 11:58 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 73607, Sean Whitton
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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-10-04 9:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-03 2:42 bug#73607: 30.0.90; Strange behaviour of C-x with define-prefix-command Sean Whitton
2024-10-03 7:05 ` Eli Zaretskii
2024-10-03 7:13 ` Sean Whitton
2024-10-03 11:22 ` Eli Zaretskii
2024-10-03 11:58 ` Andreas Schwab
2024-10-04 9:15 ` Sean Whitton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.