From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#16645: 24.3; in xterm, keypad = is translated to M-o x Date: Sat, 28 Mar 2020 02:23:27 +0100 Message-ID: <20200328012327.GS2770@zira.vinc17.org> References: <87k3da2zxl.fsf@xvii.vinc17.org> <20140205001548.GE10242@xvii.vinc17.org> <20140205011701.GH10242@xvii.vinc17.org> <87bloh47sj.fsf@stefankangas.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15812"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.12.1+33 (6a74e24e) vl-117499 (2019-06-23) Cc: 16645@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 28 02:24:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jI0Ct-0003zv-N7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 02:24:15 +0100 Original-Received: from localhost ([::1]:49006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jI0Cr-0005zt-2n for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 21:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46079) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jI0Ch-0005xE-Rh for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 21:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jI0Cg-0002KS-LU for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 21:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55816) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jI0Cg-0002KE-I6 for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 21:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jI0Cg-0002Se-Ez for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 21:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Mar 2020 01:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16645 X-GNU-PR-Package: emacs Original-Received: via spool by 16645-submit@debbugs.gnu.org id=B16645.15853586129414 (code B ref 16645); Sat, 28 Mar 2020 01:24:02 +0000 Original-Received: (at 16645) by debbugs.gnu.org; 28 Mar 2020 01:23:32 +0000 Original-Received: from localhost ([127.0.0.1]:33556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jI0CB-0002Rl-PW for submit@debbugs.gnu.org; Fri, 27 Mar 2020 21:23:32 -0400 Original-Received: from joooj.vinc17.net ([155.133.131.76]:46438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jI0C9-0002Rd-Tc for 16645@debbugs.gnu.org; Fri, 27 Mar 2020 21:23:30 -0400 Original-Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 6FC80C8; Sat, 28 Mar 2020 02:23:28 +0100 (CET) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id CC43BC2042C; Sat, 28 Mar 2020 02:23:27 +0100 (CET) Content-Disposition: inline In-Reply-To: <87bloh47sj.fsf@stefankangas.se> X-Mailer-Info: https://www.vinc17.net/mutt/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177794 Archived-At: On 2020-03-28 01:55:40 +0100, Stefan Kangas wrote: > Vincent Lefevre writes: > > > On 2014-02-05 01:15:48 +0100, Vincent Lefevre wrote: > >> On 2014-02-05 00:58:14 +0100, Vincent Lefevre wrote: > >> > With "emacs -Q -nw" in xterm, the keypad = key (keysym 0xffbd, KP_Equal) > >> > is translated to M-o x instead of the = character. > >> > >> According to "tack", the keypad "=" gives: > >> > >> ^[OX Unknown > >> > >> instead of > >> > >> = Unknown > >> > >> Then, I don't know yet whether this is intentional or this is a bug > >> in xterm. > > > > It was due to my XKB settings (only the "=" keypad key gave a > > KP_something keysym due to missing configuration for this key, > > contrary to the other keypad ones). > > So it seems like this was not a bug in Emacs? I think that there's something missing for Emacs. As I've said, the xterm.el file contains only: (define-key map "\eOj" [kp-multiply]) (define-key map "\eOk" [kp-add]) (define-key map "\eOl" [kp-separator]) (define-key map "\eOm" [kp-subtract]) (define-key map "\eOo" [kp-divide]) (define-key map "\eOp" [kp-0]) (define-key map "\eOq" [kp-1]) (define-key map "\eOr" [kp-2]) (define-key map "\eOs" [kp-3]) (define-key map "\eOt" [kp-4]) (define-key map "\eOu" [kp-5]) (define-key map "\eOv" [kp-6]) (define-key map "\eOw" [kp-7]) (define-key map "\eOx" [kp-8]) (define-key map "\eOy" [kp-9]) Why nothing for [kp-equal]? > > So, now that the "=" keypad > > key gives a normal "=" keysym, the problem is no longer visible > > in Emacs on my machine. However I'm still wondering about the > > remarks below: > > I'm assuming you are here referring the difference between "^[OX" and > "\eOx"? It seems to me that it's just a difference in how this keysym > is displayed by Emacs and tack. But my point is that the case for "O" and "X" matters. For instance, M-O A moves the cursor up, but M-O a is undefined. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)