From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#19268: 25.0.50; Customize widgets vs keys Date: Thu, 04 Dec 2014 19:55:58 +0100 Message-ID: <878uins0qp.fsf@yahoo.fr> References: <8761dr8tdj.fsf@yahoo.fr> <83mw7349m2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417719442 20644 80.91.229.3 (4 Dec 2014 18:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 18:57:22 +0000 (UTC) Cc: Nicolas Richard , 19268@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 19:57:14 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XwbaU-0005qH-DD for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 19:57:14 +0100 Original-Received: from localhost ([::1]:47203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwbaU-0002DT-2G for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 13:57:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwbaN-0002DI-9m for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 13:57:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwbaI-0003nC-5i for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 13:57:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwbaI-0003n3-1r for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 13:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XwbaH-0007Wx-IX for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 13:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Dec 2014 18:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19268-submit@debbugs.gnu.org id=B19268.141771936328879 (code B ref 19268); Thu, 04 Dec 2014 18:57:01 +0000 Original-Received: (at 19268) by debbugs.gnu.org; 4 Dec 2014 18:56:03 +0000 Original-Received: from localhost ([127.0.0.1]:53900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwbZK-0007Vj-OC for submit@debbugs.gnu.org; Thu, 04 Dec 2014 13:56:03 -0500 Original-Received: from mailrelay007.isp.belgacom.be ([195.238.6.173]:10335) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwbZI-0007VJ-9T for 19268@debbugs.gnu.org; Thu, 04 Dec 2014 13:56:01 -0500 X-Belgacom-Dynamic: yes Original-Received: from 108.188-177-91.adsl-dyn.isp.belgacom.be (HELO LDLC-portable) ([91.177.188.108]) by relay.skynet.be with ESMTP; 04 Dec 2014 19:55:58 +0100 In-Reply-To: <83mw7349m2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 04 Dec 2014 19:18:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96866 Archived-At: Eli Zaretskii writes: >> From: Nicolas Richard >> 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 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 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