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 10:11:38 +0800 Message-ID: <871qy5it5x.fsf@yahoo.com> References: <164933858147.29834.15050766441005536059@vcs2.savannah.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> <838rse89vr.fsf@gnu.org> <87czhqb0l2.fsf@ditto.jhoto.spork.org> <87k0bxkbbq.fsf@yahoo.com> <874k31bsvw.fsf@ditto.jhoto.spork.org> 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="717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org, Lars Ingebrigtsen , rms@gnu.org, monnier@iro.umontreal.ca To: Brian Cully Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 10 04:13:28 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 1ndN4y-000AZU-4z for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 04:13:28 +0200 Original-Received: from localhost ([::1]:39248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndN4w-0004fp-OG for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 22:13:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndN3l-0003yD-UQ for emacs-devel@gnu.org; Sat, 09 Apr 2022 22:12:14 -0400 Original-Received: from sonic315-21.consmr.mail.ne1.yahoo.com ([66.163.190.147]:39137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndN3T-0007XS-Bd for emacs-devel@gnu.org; Sat, 09 Apr 2022 22:12:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649556713; bh=EtdJ6meIPtXpU3hwQkXCvD1IMR8DXUwBdfLWlAnwo4Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=HUlZ+Sc5uQAJVYbRLNU5CN7TpcHjj3JFSmhjzmsZQFMs+/oSSNI2y13pFuyAuG1R5ByorRUy+m6qdkM4qdZzSstoiEhUcns+nSBYROJf8aWNgtJ+0OpMgG5JCpLOCez3sU1IkRaaUQ/4NksSebxriVy06EVzeueOdC4dWTj1VyU1yuuHY6qoBa5Gukf1H57dulnWP7lZADISfkX7Q4pyI0P4yTeCNsJgtZhwWfCj/6votSVnWhbVJP5epqIcb4/hrwY1uU4riE2H1JbF7oclX95TxQL2HB4VwNuiVlLq0WNwBm12OM0I35182AaX4dP+uk6aVCNellUf5R336Kxbew== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com;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nTIB7hEg1OtLCX8xPxETLtaP1JB6qZ3UgM.EnZUzGZI9XGbgSpKUX iwIalrwpRzLWdpn_9BQZH806ZeKIv7U1KO0E64iG_bRxlKsat1ASjwLQUTuwkvsb.k2tG4yBkcMO RHKDdNuxyvIIaZ3DVxNRyvf0yr.JDeC4f62qnz7R7CkEJOzAec0GgoX4fCgmF63613qDxbQ6ELB9 9eyUMOiyidC24XtY2Bipt._nkonGRonr04V5eEZVNT X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sun, 10 Apr 2022 02:11:53 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-srcdp (VZM Hermes SMTP Server) with ESMTPA ID 7fcea4d35fc6a43912d9c126570f8e0e; Sun, 10 Apr 2022 02:11:50 +0000 (UTC) In-Reply-To: <874k31bsvw.fsf@ditto.jhoto.spork.org> (Brian Cully's message of "Sat, 09 Apr 2022 21:46:24 -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.190.147; envelope-from=luangruo@yahoo.com; helo=sonic315-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:288086 Archived-At: Brian Cully writes: > But my input driver is, for instance, a USB HID driver, and only > cares about the usage tables my device is using. I can plug whatever > device I want in, regardless of any kind of unique or stable identifier, > by virtue of it responding correctly to probes from the USB layer > describing its capabilities. Everything built on top of this stack Just > Works, no matter how I name the device. Then the input driver will set the right properties depending on which events are currently being sent, and Emacs will also take into account which events are being generated to decide how it behaves. > I see very much the value in being able to differentiate similar > or identical events based on their source, but my worry has been about > having Emacs somehow decide for me that because my device is named =E2=80= =9CX=E2=80=9D > it has capabilities w, y, and z. No, Lisp code will decide based on the class of your device (on X, that's calculated based on the name) _and_ the events it is currently generating that it has capabilities x, y and z. > In a previous email, it seems as though your thoughts are around > having the user specify capabilities or event mappings themselves based > on the device name. I don=E2=80=99t know nearly enough about the specific= s to > comment on any particular approach, but I am reasonably sure I don=E2=80= =99t > want Emacs making those decisions for me. That was specifically referring to user customisations. Either way, I severely doubt this is a real problem, since such a device would be fairly useless if it couldn't work with other programs such as Firefox, LibreOffice, etc.