unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: 16645@debbugs.gnu.org
Subject: bug#16645: 24.3; in xterm, keypad = is translated to M-o x
Date: Sat, 28 Mar 2020 02:23:27 +0100	[thread overview]
Message-ID: <20200328012327.GS2770@zira.vinc17.org> (raw)
In-Reply-To: <87bloh47sj.fsf@stefankangas.se>

On 2020-03-28 01:55:40 +0100, Stefan Kangas wrote:
> Vincent Lefevre <vincent@vinc17.net> 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 <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





  reply	other threads:[~2020-03-28  1:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 23:58 bug#16645: 24.3; in xterm, keypad = is translated to M-o x Vincent Lefevre
2014-02-05  0:15 ` Vincent Lefevre
2014-02-05  1:17   ` Vincent Lefevre
2020-03-28  0:55     ` Stefan Kangas
2020-03-28  1:23       ` Vincent Lefevre [this message]
2021-09-06  9:36         ` Lars Ingebrigtsen
2021-09-07  9:53           ` Vincent Lefevre
2021-09-08  7:25             ` Lars Ingebrigtsen
2021-09-06  9:59         ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200328012327.GS2770@zira.vinc17.org \
    --to=vincent@vinc17.net \
    --cc=16645@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).