GNU bug report logs - #23559
25.0.93; Wrong type argument on C-u C-x = with Czech input method

Previous Next

Package: emacs;

Reported by: Milan Zamazal <pdm <at> zamazal.org>

Date: Mon, 16 May 2016 19:18:02 UTC

Severity: normal

Found in version 25.0.93

Done: Eli Zaretskii <eliz <at> gnu.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 23559 in the body.
You can then email your comments to 23559 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#23559; Package emacs. (Mon, 16 May 2016 19:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Milan Zamazal <pdm <at> zamazal.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 16 May 2016 19:18:02 GMT) Full text and rfc822 format available.

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

From: Milan Zamazal <pdm <at> zamazal.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.93; Wrong type argument on C-u C-x = with Czech input method
Date: Thu, 12 May 2016 21:35:55 +0200
When I press `C-u C-x =' with a Czech input method enabled, I get the
following error:

  quail-gen-decode-map: Wrong type argument: characterp, kp-add

How to reproduce the bug:

- Start Emacs, e.g.: emacs -Q
- Select Czech input method: C-x RET C-\ czech RET
- Make sure you are on some character in the buffer, e.g. go to the
  beginning of *scratch* buffer with the semicolon character.
- Run what-cursor-position with a prefix argument: C-u C-x =
- You should receive the error above.

The bug is also present in Emacs 24.5.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23559; Package emacs. (Thu, 19 May 2016 16:58:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Milan Zamazal <pdm <at> zamazal.org>
Cc: 23559 <at> debbugs.gnu.org
Subject: Re: bug#23559: 25.0.93;
 Wrong type argument on C-u C-x = with Czech input method
Date: Thu, 19 May 2016 19:56:57 +0300
> From: Milan Zamazal <pdm <at> zamazal.org>
> Date: Thu, 12 May 2016 21:35:55 +0200
> 
> When I press `C-u C-x =' with a Czech input method enabled, I get the
> following error:
> 
>   quail-gen-decode-map: Wrong type argument: characterp, kp-add

Do you (or someone else) understand why Czech and Slovak input methods
include kp-* keys in the input method definitions?  Like this:

(quail-define-rules
 ("1" ?+)
 ...
 ("=}" ?})
 ([kp-1] ?1)
 ([kp-2] ?2)
 ([kp-3] ?3)
 ([kp-4] ?4)
 ([kp-5] ?5)
 ([kp-6] ?6)
 ([kp-7] ?7)
 ([kp-8] ?8)
 ([kp-9] ?9)
 ([kp-0] ?0)
 ([kp-add] ?+))

What does this try to accomplish, and why?  No other input method does
that, and the bindings this tries to produce are already available by
default, so what is their purpose?  Those bindings are the cause of
this problem, AFAICT.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23559; Package emacs. (Thu, 19 May 2016 18:51:02 GMT) Full text and rfc822 format available.

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

From: Milan Zamazal <pdm <at> zamazal.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23559 <at> debbugs.gnu.org
Subject: Re: bug#23559: 25.0.93;
 Wrong type argument on C-u C-x = with Czech input method
Date: Thu, 19 May 2016 20:50:33 +0200
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:

    EZ> Do you (or someone else) understand why Czech and Slovak input
    EZ> methods include kp-* keys in the input method definitions?

The reason is that those input methods replace digit keys at the main
part of the keyboard with Czech and Slovak characters.  But the keys at
the numeric keypad should of course still produce digits and not Czech
and Slovak characters.

IIRC at the time those input methods were introduced, quail definitions
like

  ("1" ?+)

caused both the `1' and kp-1 keys to produce `+' and adding

  ([kp-1] ?1)

was necessary to keep kp-1 producing `1' and not `+'.  If this is no
longer necessary then those bindings can be simply removed.





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 19 May 2016 20:01:02 GMT) Full text and rfc822 format available.

Notification sent to Milan Zamazal <pdm <at> zamazal.org>:
bug acknowledged by developer. (Thu, 19 May 2016 20:01:02 GMT) Full text and rfc822 format available.

Message #16 received at 23559-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Milan Zamazal <pdm <at> zamazal.org>
Cc: 23559-done <at> debbugs.gnu.org
Subject: Re: bug#23559: 25.0.93;
 Wrong type argument on C-u C-x = with Czech input method
Date: Thu, 19 May 2016 23:00:34 +0300
> From: Milan Zamazal <pdm <at> zamazal.org>
> Cc: 23559 <at> debbugs.gnu.org
> Date: Thu, 19 May 2016 20:50:33 +0200
> 
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> 
>     EZ> Do you (or someone else) understand why Czech and Slovak input
>     EZ> methods include kp-* keys in the input method definitions?
> 
> The reason is that those input methods replace digit keys at the main
> part of the keyboard with Czech and Slovak characters.  But the keys at
> the numeric keypad should of course still produce digits and not Czech
> and Slovak characters.
> 
> IIRC at the time those input methods were introduced, quail definitions
> like
> 
>   ("1" ?+)
> 
> caused both the `1' and kp-1 keys to produce `+' and adding
> 
>   ([kp-1] ?1)
> 
> was necessary to keep kp-1 producing `1' and not `+'.

I see, thanks.

> If this is no longer necessary then those bindings can be simply
> removed.

They don't seem to be necessary, so I removed them, and I'm marking
the bug done.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 17 Jun 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 7 days ago.

Previous Next


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