From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp Date: Sat, 09 Apr 2022 20:06:00 +0300 Message-ID: <838rse89vr.fsf@gnu.org> References: <164933858147.29834.15050766441005536059@vcs2.savannah.gnu.org> <20220407133623.9C209C009A8@vcs2.savannah.gnu.org> <87ee28xyg2.fsf@yahoo.com> <83ee28az95.fsf@gnu.org> <87fsmow1hz.fsf@yahoo.com> <83a6cway59.fsf@gnu.org> <87tub4uivu.fsf@yahoo.com> <83y20fakwn.fsf@gnu.org> <87o81bu7zj.fsf@yahoo.com> <83v8vjai4s.fsf@gnu.org> <87bkxbsqfl.fsf@yahoo.com> <835yniah0u.fsf@gnu.org> <8735impqw4.fsf@yahoo.com> <83v8vi8uyu.fsf@gnu.org> <871qy6o9p3.fsf@yahoo.com> <83o81a8qnd.fsf@gnu.org> <87zgkulbuu.fsf@yahoo.com> <83ilri8iag.fsf@gnu.org> <87k0by43an.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 09 19:07:03 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ndEYB-000AJu-70 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 19:07:03 +0200 Original-Received: from localhost ([::1]:36804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndEYA-00072U-79 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 13:07:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndEXL-0006GS-5q for emacs-devel@gnu.org; Sat, 09 Apr 2022 13:06:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndEXJ-0007NO-Ok; Sat, 09 Apr 2022 13:06:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6TH9u40Na2mlw+Rq0GpFmGJNavgdoXYQGECH6tM5+as=; b=JtYOaJvQ+Qcw CmaOueDGpkSYqex41kmDfXXavb2oE/zNQE6hEBZHHZbUrc3upRNb8QfZV8dv6q9nBoanIp8UU7KOM UNjWb2cdq+bmtx7HoNdiDslZvGSbcfqwvnS5pgddWhpU1QT7wyuLlthgSSZpprhEixaoNwBlWbu0q kJhqf8F6RI1XLZ2cMs6GtrgdcI3lQUmOxgAju8I7RIlD8R3g5+izAPcGJhGdheFLfE8iw2Pscs88a yljQFzpHZs0+AV9tCoHz1NSoeR8G2rCiuBmHpXTBXMDXoyF5rdW01BptnM1Z0k+Ep+NzMor3ajXTO D7qPF5fPodOHDy9YJG938Q==; Original-Received: from [87.69.77.57] (port=3776 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndEXD-0002GV-1o; Sat, 09 Apr 2022 13:06:04 -0400 In-Reply-To: <87k0by43an.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 09 Apr 2022 18:41:52 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288038 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , Po Lu , Richard > Stallman , emacs-devel@gnu.org > Date: Sat, 09 Apr 2022 18:41:52 +0200 > > For instance, I have a pedal that's a USB HID thingie. Amusingly > enough, stomping on the pedal gives me a "b" event. The key "b", > indistinguishable from a "b" from the keyboard. > > So if I could somehow say > > (keymap-set global-mode-map "[device footpad]-b" 'do-something) > > that would be ideal. I would hope that such an event could be called just 'footpad-b', so that any device capable of such events could be implemented as emitting it, regardless of the device name/type/etc.