GNU bug report logs - #71479
30.0.50; describe-key description incorrect when using input methods

Previous Next

Package: emacs;

Reported by: Robert Pluim <rpluim <at> gmail.com>

Date: Mon, 10 Jun 2024 17:02:01 UTC

Severity: normal

Tags: confirmed

Found in version 30.0.50

To reply to this bug, email your comments to 71479 AT debbugs.gnu.org.

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#71479; Package emacs. (Mon, 10 Jun 2024 17:02:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; describe-key description incorrect when using input methods
Date: Mon, 10 Jun 2024 18:45:36 +0200
emacs -Q
C-u C-\ cyrillic-translit
C-h z h

=>
    ж (translated from h ж) runs the command
    self-insert-command (found in global-map), which is an interactive
    primitive-function in ‘C source code’.

This should say '*translated from z h)'. The underlying reason is that
quail.el messes around with `last-command-event', which confuses
describe-key.

I doubt this issue is confined to this particular input method.

Robert
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#71479; Package emacs. (Tue, 11 Jun 2024 15:53:01 GMT) Full text and rfc822 format available.

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

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 71479 <at> debbugs.gnu.org
Subject: Re: bug#71479: 30.0.50; describe-key description incorrect when
 using input methods
Date: Mon, 10 Jun 2024 23:02:58 +0100
Robert Pluim <rpluim <at> gmail.com> writes:

> emacs -Q
> C-u C-\ cyrillic-translit
> C-h z h

When testing, I get
C-h z is undefined

>
> =>
>     ж (translated from h ж) runs the command
>     self-insert-command (found in global-map), which is an interactive
>     primitive-function in ‘C source code’.
>
> This should say '*translated from z h)'. The underlying reason is that
> quail.el messes around with `last-command-event', which confuses
> describe-key.
>
> I doubt this issue is confined to this particular input method.
>
> Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#71479; Package emacs. (Tue, 11 Jun 2024 16:11:02 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Jeremy Bryant <jb <at> jeremybryant.net>
Cc: 71479 <at> debbugs.gnu.org
Subject: Re: bug#71479: 30.0.50; describe-key description incorrect when
 using input methods
Date: Tue, 11 Jun 2024 09:33:48 +0200
>>>>> On Mon, 10 Jun 2024 23:02:58 +0100, Jeremy Bryant <jb <at> jeremybryant.net> said:

    Jeremy> Robert Pluim <rpluim <at> gmail.com> writes:
    >> emacs -Q
    >> C-u C-\ cyrillic-translit
    >> C-h z h

    Jeremy> When testing, I get
    Jeremy> C-h z is undefined

Because I messed up the key binding, it should be 'C-h k z'

Robert
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#71479; Package emacs. (Tue, 11 Jun 2024 20:22:02 GMT) Full text and rfc822 format available.

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

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 71479 <at> debbugs.gnu.org
Subject: Re: bug#71479: 30.0.50; describe-key description incorrect when
 using input methods
Date: Tue, 11 Jun 2024 21:18:02 +0100
Robert Pluim <rpluim <at> gmail.com> writes:

>>>>>> On Mon, 10 Jun 2024 23:02:58 +0100, Jeremy Bryant <jb <at> jeremybryant.net> said:
>
>     Jeremy> Robert Pluim <rpluim <at> gmail.com> writes:
>     >> emacs -Q
>     >> C-u C-\ cyrillic-translit
>     >> C-h z h
>
>     Jeremy> When testing, I get
>     Jeremy> C-h z is undefined
>
> Because I messed up the key binding, it should be 'C-h k z'
>
> Robert

As I test this (on 29.3), the result is:

з (translated from <return> з) runs the command self-insert-command




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#71479; Package emacs. (Sat, 15 Jun 2024 10:42:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 71479 <at> debbugs.gnu.org
Subject: Re: bug#71479: 30.0.50;
 describe-key description incorrect when using input methods
Date: Sat, 15 Jun 2024 13:41:14 +0300
> From: Robert Pluim <rpluim <at> gmail.com>
> Date: Mon, 10 Jun 2024 18:45:36 +0200
> 
> 
> emacs -Q
> C-u C-\ cyrillic-translit
> C-h k z h
> 
> =>
>     ж (translated from h ж) runs the command
>     self-insert-command (found in global-map), which is an interactive
>     primitive-function in ‘C source code’.
> 
> This should say '*translated from z h)'. The underlying reason is that
> quail.el messes around with `last-command-event', which confuses
> describe-key.
> 
> I doubt this issue is confined to this particular input method.

Right, it looks like the problem is in this-single-command-raw-keys,
and more deeply in what we store in the raw_keybuf vector.

Stefan, any suggestions for how we could fix this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#71479; Package emacs. (Sat, 15 Jun 2024 14:35:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Robert Pluim <rpluim <at> gmail.com>, 71479 <at> debbugs.gnu.org
Subject: Re: bug#71479: 30.0.50; describe-key description incorrect when
 using input methods
Date: Sat, 15 Jun 2024 10:34:26 -0400
>> C-h k z h
>> =>
>>     ж (translated from h ж) runs the command

Eww.

>> This should say '*translated from z h)'. The underlying reason is that
>> quail.el messes around with `last-command-event', which confuses
>> describe-key.
> Right, it looks like the problem is in this-single-command-raw-keys,
> and more deeply in what we store in the raw_keybuf vector.

I don't have a deep enough understanding of all the elements in play to
have a good idea how to fix it.  All I can say is that IMO `raw_keybuf`
should never see ж because that is simply not the "raw" input.


        Stefan





Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 01 Mar 2025 02:06:02 GMT) Full text and rfc822 format available.

This bug report was last modified 109 days ago.

Previous Next


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