bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19268: 25.0.50; Customize widgets vs <kp-...> keys


From: Nicolas Richard
Subject: bug#19268: 25.0.50; Customize widgets vs <kp-...> keys
Date: Thu, 04 Dec 2014 19:55:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:
>> From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
>> Date: Thu, 04 Dec 2014 13:57:44 +0100
>> 
>> M-x cust-var RET
>> cua-mode RET
>> C-s state RET ;; this is the "State" button.
>> RET ;; activate it
>> 
>> Now hitting 5 on my numeric keypad gives the error "Canceled".
>
> I suspect that your numpad-5 key sends something that begins with ESC
> ESC ESC.  What does "C-h l" show?

It shows <kp-5>

Sorry, I was a bit in a hurry and forgot to include the backtrace.

I'll try to explain how I understand the problem :

It happens in widget-choose, where that function does :
 (define-key map (vector next-digit) function)
Here, next-digit is the integer ?5. Moreover there's a
default binding
 (define-key map [t] 'keyboard-quit)
which is what is triggered when I hit <kp-5>

Simply trying to bind [kp-5] to function there won't work either,
because further in the code, there is this test:
 (while (not (or (and (integerp char)
                      (>= char ?0) (< char next-digit))
                 (eq value 'keyboard-quit)))
where "char" is the symbol kp-5 (it is the integer ?5 in the
working case)

Does that make any sense ?

-- 
Nicolas Richard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]