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

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

Re: numpad doesnt seem to send kp events in wayland


From: Stefan Monnier
Subject: Re: numpad doesnt seem to send kp events in wayland
Date: Wed, 23 Oct 2024 09:06:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> 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 via email to

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