unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: numpad doesnt seem to send kp events in wayland
Date: Wed, 23 Oct 2024 09:06:44 -0400	[thread overview]
Message-ID: <jwvjzdz0yaa.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 87r087mgyr.fsf@tanaka.verona.se

> using (read-key) in emacs-pgtk, both the numpad and the number row are
> received as the same event:

Lower-level is `read-event`: `read-key` has code to specifically
"decode" key events.  [ But I doubt it'll make a difference based on
what you posted earlier.  ]

> I get the same in a emacs gtk session.

Hmm... so what was the other session?

> Maybe gtk is doing something weird?

No comment 🙂

> I will need to compile some other type of emacs toolkit next I guess.

I'd actually suggest a bug report.


        Stefan


PS: You can rewrite your macro into a function.  I.e.

    (defmacro sylt-song-event-map-key (key num)
      `(define-key cider-mode-map (kbd ,key)
                   (lambda  ()
                     (interactive)
                     (cider-nrepl-sync-request:eval
                      ,(concat "(sylt.core/song-event \"" num "\")")))))

to

    (defun sylt-song-event-map-key (key num)
      (define-key cider-mode-map (kbd key)
                  (lambda  ()
                    (interactive)
                    (cider-nrepl-sync-request:eval
                     (concat "(sylt.core/song-event \"" num "\")")))))

[ This needs your file to start with the `-*- lexical-binding:t -*-`
  thingy, of course.  ]




  reply	other threads:[~2024-10-23 13:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21 23:17 numpad doesnt seem to send kp events in wayland joakim
2024-10-22 21:55 ` Arsen Arsenović
2024-10-23  7:11   ` joakim
2024-10-23 13:06     ` Stefan Monnier via Users list for the GNU Emacs text editor [this message]
2024-10-24 18:17       ` joakim
2024-10-24 20:05         ` Stefan Monnier
2024-10-25 18:21           ` joakim
2024-10-25 20:18             ` Stefan Monnier
2024-10-29 21:13               ` joakim

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=jwvjzdz0yaa.fsf-monnier+emacs@gnu.org \
    --to=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
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).