From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp Date: Sun, 10 Apr 2022 08:58:38 +0800 Message-ID: <874k31kb41.fsf@yahoo.com> References: <164933858147.29834.15050766441005536059@vcs2.savannah.gnu.org> <20220407133623.9C209C009A8@vcs2.savannah.gnu.org> <87ee28xyg2.fsf@yahoo.com> <87lewfqf1q.fsf@yahoo.com> <87zgkvosia.fsf@yahoo.com> <87pmlql6mj.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 10 02:59:51 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 1ndLvi-0008VN-Mb for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 02:59:50 +0200 Original-Received: from localhost ([::1]:44302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndLvh-0002Gb-Cq for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 20:59:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndLuq-0001HE-SL for emacs-devel@gnu.org; Sat, 09 Apr 2022 20:58:56 -0400 Original-Received: from sonic302-22.consmr.mail.ne1.yahoo.com ([66.163.186.148]:36544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndLup-0005ci-65 for emacs-devel@gnu.org; Sat, 09 Apr 2022 20:58:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649552333; bh=waPAr4PV9hfgJFO9KXPVT/f75ERhk1bMoHQ5vv8oNIg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=PEQLbHgz3s0ErWGuxP8zLplW0SzSOBiMDSexF1rvpYWPED0EbYVrvI6b4IUtdDrwH0E5u/yTHu1BfSdUe+4xRNCDGSlXAzNkfZxBycoAaZ/nwn4dfAHe9w5bWBmi0PHjl1GfTNGMto7sdgvaOy7W1frt+SlkWzKgOZCRo3TNYr2KocU9jPtauhpxH7yshIa1ruRSHqSeV4vx5SXzvVdW+t2C7NA8K23g4EX40KzqywASNR6YQuBT6oacqawRI/g0bX1zs0BSJByeHB1nJnOogSk8tchkzF6sh43XY/1hC5ClIB9PZ5dY2QGssNPQYjuUAFi1ylDSVlhlIk9fmP2ebw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649552333; bh=t+errygofqCIwGlo5YIJAWTNYhrm5D/Z8vExDdxHSSK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=nb1V+9fV0cyMGpzWU2A8ogV5CicazLJ1ryivJwqUyG7qZ9UHa1tCwwVTzPHYbkyVT/oTfIeutiddArMFVSs8u1KhL9MgS2fSMR2QYweVRa+RIdFoxkqeBLUvS3W97DfjGiE/7qNivtbvRZPthcCr7mGKuUvZ9KVim1dWcq2Z4oQfxiBlEfWaYNKxx+Fgv/29W6fdDuJnU94V9/YxL3wGoOlMLKR90qs+tUpppVgs21S4NX0sd/yTyIjM/RkcfhpNjhIyYfMpIFIcbghRQsFRfy/DLZlxp/ReDsB+p1w6egP8WNnTtTaJP+wCX0HMl/9s35Ozd5hBW7kJObC15fp4xw== X-YMail-OSG: uCIoUrcVM1nd_MeJMAe07PpiKTC9CjLV_yDfZ5XdF3SkAwO.Pb06LtPqH5lW2Da trmu52rQRyTjhYU73UYusQLV_62jUbuomxTsObJyESl8zFb_xCF0ELs8slsq50Zu3BqZGUat2_.Z 38_uc25glm.2tLEB3c.tSceAqLwvMjFlk_9RaQP2CJ7YaCSSycNRpWDn.XB6D8_XZjBnDS.Dz9tx Rn321x5es.SbkttEo4GAytv1ZxaYOFPnxxZ.XpTwevzBjlO3sZWzn8Od_yZsmD_r8uflsO6bz7.O S5N0GIj88ZvDzkQHZX051k0Z_rcpvNBV1x8AzeRzrPtOWRzhRO9WZnMMny8WB1A.MZnm5sasxyos v.IrDOX0GnJAJoUEky86vecy7ltJWUVPxD8HtWr8qIO8b3esmXI8b5L3.IMOWSjSzYvirhEgH_P4 eh3ttGxThbOz8o81U4xRHhRw64oa_N1c0Glts.OfyVg_QrOI3T60NUAueh2qnQoQyZeOIDr9BvfJ VJ51Cec6Z_yPB37siR91lvh02nOfqclc_PBt85GBnk3bJNrYY4whp4u1uJHkZqwQKaR_ZpohUPtU uoozBwaVJnF.NPVIbf23GPhsIPr_gE1ONfLSUbEcPXl1zwySpB2tJ9lL1h8cqXeOEa2Q_FVN5PHk Gz_VQSHjrb9I6862mGjuvI0yzBi0LUIu7AE.mvnn0wuZpnHslLuZhbYEMWjlEpUCyeXcBihcpP9a FxsbX7lYS6kpa_AfLSrkaOX38YbZzptHLaVUXHYuwxcZniySQc.0bxRL8aJSTpjgym63y1daq_VK d0H1LCKqoU3QzsNELrVddF70GbfFTzR1Byc52oAz9m X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 10 Apr 2022 00:58:53 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-gqv44 (VZM Hermes SMTP Server) with ESMTPA ID 7ccbc937524a01aa88f48040603f33c7; Sun, 10 Apr 2022 00:58:47 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Sat, 09 Apr 2022 10:20:06 -0400") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.148; envelope-from=luangruo@yahoo.com; helo=sonic302-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:288077 Archived-At: Stefan Monnier writes: > To some extent, yes, but we can try and design the new representation to > be compatible with the old one. E.g. the "class" could be obtained via: > > (defun event-class (e) > (if (consp e) > (get (event-basic-type e) 'event-class) > character-event-class)) Unfortunately the device class information is separate from the basic type of the event. i.e. trackpoints send mouse movement, and Lars' foot pedal simply pretends to be a keyboard and sends "b". > Here, I'd side with Eli and say that the resulting code churn wojuld be > more trouble than it's worth. Hmm... I will try to think of something.