From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.help Subject: Re: numpad doesnt seem to send kp events in wayland Date: Thu, 24 Oct 2024 20:17:04 +0200 Message-ID: <87ed45l61r.fsf@tanaka.verona.se> References: <874j55qc5o.fsf@tanaka.verona.se> <86r087ol9n.fsf@aarsen.me> <87r087mgyr.fsf@tanaka.verona.se> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1685"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 20:17:54 2024 Return-path: Envelope-to: geh-help-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 1t42PA-0000If-Vt for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 20:17:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t42Og-0000UF-8h; Thu, 24 Oct 2024 14:17:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t42Oa-0000Ty-QO for help-gnu-emacs@gnu.org; Thu, 24 Oct 2024 14:17:19 -0400 Original-Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t42OX-0005PL-DO for help-gnu-emacs@gnu.org; Thu, 24 Oct 2024 14:17:15 -0400 Original-Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id C169911D25F for ; Thu, 24 Oct 2024 20:17:05 +0200 (CEST) Original-Received: from s980.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id B34F811D754; Thu, 24 Oct 2024 20:17:05 +0200 (CEST) Original-Received: from s470.loopia.se (unknown [172.22.191.6]) by s980.loopia.se (Postfix) with ESMTP id B198D2201628; Thu, 24 Oct 2024 20:17:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se Authentication-Results: s470.loopia.se (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=verona.se Original-Received: from s934.loopia.se ([172.22.191.6]) by s470.loopia.se (s470.loopia.se [172.22.190.34]) (amavisd-new, port 10024) with LMTP id aXhHMFH0_QNC; Thu, 24 Oct 2024 20:17:04 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: smtpuser@verona.se X-Loopia-Originating-IP: 193.234.148.196 Original-Received: from tanaka.verona.se (unknown [193.234.148.196]) (Authenticated sender: smtpuser@verona.se) by s934.loopia.se (Postfix) with ESMTPSA id 4B1C17CEA75; Thu, 24 Oct 2024 20:17:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verona.se; s=loopiadkim1720028670; t=1729793824; bh=mzT+TfkI24KP/TjRhCD5h7g8Ko/QTaxPbgZB3ZgPXGM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ilPTNAEsFR0l9qZMlJa0QLGTDdxriOKv70CYX3st1OzxKQROvCUeFxq5HXljvr2eP WVXG2xoBuVZnUWNoDCJ7qNi/xhGa7wjyeROuB73XfbHuSDW10rzq/xMSJwS4CG+cUE Z/PdDMzDX5HP1Lev5vC40+ij8riiFYqvySwPCP556A3HdyVcIxreCOvamWKDm2njMR 1b2rNTqlIT9PwkEoPPAIrwZIklc8g/MPb1N1RrMcrxGlG3ReGEXTTbs63k0GmUwUWf gYa0NpzCwVLMBiwIDina7r8aq7TWGS2lN7si2/T+KaqGb8zg2IvfriMBnTk/UZReNt 3DCln/Bmp+2pg== In-Reply-To: (Stefan Monnier via Users list for the's message of "Wed, 23 Oct 2024 09:06:44 -0400") Received-SPF: pass client-ip=93.188.3.37; envelope-from=joakim@verona.se; helo=smtp.outgoing.loopia.se X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.697, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148244 Archived-At: Stefan Monnier via Users list for the GNU Emacs text editor writes: >> 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. ] (read-event) returns 4, for numpad 4, as you expected. > >> I get the same in a emacs gtk session. > > Hmm... so what was the other session? I thought emacs-pgtk and emacs was distinct on fedora, maybe I'm misunderstanding something. yes, both are compiled --with-pgtk lol! so now I tried emacs-29.4-gtk+x11 -Q and then I get "4 (translated from )" on c-h k, numpad 4, so xwayland is doing something correctly in this case, which pgtk isnt doing in the same way(imho incorrectly but what do I know) (and as a reminder, I run emacs-pgtk because it looks super nice on wayland, with the scaling hints I use on my framework hidpi screen, but emacs-29.4-gtk+x11 doesnt look good.) > >> Maybe gtk is doing something weird? > > No comment =F0=9F=99=82 > >> I will need to compile some other type of emacs toolkit next I guess. > > I'd actually suggest a bug report. Alright, I'll try that thanks. > > 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. ] Thanks, I'll remember to add this when I get the numpad working again :) Regards /Joakim > > --=20 Joakim Verona joakim@verona.se