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: Sat, 09 Apr 2022 11:17:01 +0800 Message-ID: <87zgkvosia.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24680"; 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 Sat Apr 09 05:17:52 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 1nd1bk-0006Cj-FF for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 05:17:52 +0200 Original-Received: from localhost ([::1]:60594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nd1bi-0002RN-Ur for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Apr 2022 23:17:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd1b8-0001kk-Kx for emacs-devel@gnu.org; Fri, 08 Apr 2022 23:17:14 -0400 Original-Received: from sonic316-21.consmr.mail.ne1.yahoo.com ([66.163.187.147]:42914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nd1b6-0005gl-Ht for emacs-devel@gnu.org; Fri, 08 Apr 2022 23:17:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649474230; bh=/YXey7TF4ru8zjOzcHevAAgqqLyFjn5BY+9hhklOnJY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=kyoe5g2HQELKMPkNSQT8CqRciYyDx6ozbzTrlmfG2lW84VSS8Zrlw0OmY8F6u9UlLdCcMynx+4FSHWXy39B/xLKPCc2aJL6cb527kTvL9vjUp/1hpWzDQvy99XiB+WT/fXjRkfr1UUC2IBEP2Qp19iKn7drd/mqayz15mclkcrOVt/5vbM1MreEogcIqeiuZtO50R2a4U31Es3EA4kv5PpB9mXToXYEtqamXeLTrzw1OsYuftREPAvP5rLF3TvvZcv/2HeTUAhqNvAdt9iV33y0sMi8yM8tKe1fiyAijuKkFa+5uqbPq56I0porunPuyzNXzmb4nwcsjnTCMgcvxkw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649474230; bh=oWbLNCZUPQ9D62k6qZ0+XFs0kSAi8tCTAGVCxvVikq6=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=VVuepyj9OMXQ0j2ynkv7uI2OVwDwCO3LsizTlxojVAotZ8cISIlQXY/6h7sCmS2d5UKu+RX4jGJQTku7UrB3FWSZ7v7RhrnCwr9a1lLYHUZ+qcTDpGY1CUxWoibap+BHA+GgFFmMXI3oWMN+X3yDbkV6Aa4gCC2ThXqozXyGV/iKcHW19vm1BU02/x+6yHWEnX0KEqa2Sw4gt7IVTl9A8Kt/BXuyQrN8QYCXiPuAToohGXIjfYDZy7M7CDe+ZlXjGzJ/b+jiqWUufdG+tZH1Wn1b/5L1E1Vqe/NeZEARdYW9sGRaR6OKa26PjetQ/XVcmOqYE6vyRATHPDNmUhw0ag== X-YMail-OSG: XB9iXqcVM1mL0IEu9Vkc7Aj0kqtVr81siffguMvlPu5O4fCHloGjNrypgVt7Qwe c9fqZJx2FngcxGpUwrPinNvam7fQNx65y1MCiWbYDC8L85AixD9x.dAA9KPLaxygbqnPkYkF6YJ3 pGQQbhcROy4TmT8lmHkB3vTRAtDulErIdbWKYSpo5c07bAYeynEmV0__dC6O9oeIFyOYhm9TmswX ilQZSjdPcjNb_6RswQz4OwEphS4KL7kn7KTct1xFkp_oLOMIF0NJ8SJ0x.HnD8YDMgjUW20GDIfA swdQp5I..OByt4gLQcXYeB2QPJsp4Q_2Rb.i5YRH3JmqO_yRRIlI4y0sIRgdfnoj4wj1H_bBW2b9 _wZ07VECATzXJy9kcXKSbdT5Aj7KQcCxqBd13fJchvBFyhylp4P57c8EmU9LJ8Vg903A6KUSRWDQ lICCxt2bQeYibIfLFskCtQPqbaMXMv8nhuqkgw1TOLK_wtZRPJ92pnDV2goth_4sqPu9Fr3vWBta K6AsgDrrhPmVY8xWBL4BVj9IiNkpSYLXpLVO9Lug.jjlznIzoLDZ0Rdcc9DbLuETTn3jZhFO.SO2 .0qw0rVLLG9a4bUAbmZ.KuXv57.SB6ovrqrHlzKO1TdWOWA7rTdbggR.i15.DPnHRspCXDki15Im hFBkUxZV8m3Of0FnNx61PPfjpBQS8kHU07C9Ux.5nZzsYWtZQ_6tqCqPAMlZbZkrM81mchmbUTGX iliLdqK7VT8Hn.oFhoZfbD.5BBtkubojo6fAVrys_ZTcc3Y9M1hDyKJ0ivjWq.LTRqPx1VvPOzc2 ts8Db_O7Nnp96fwJC2e3Yz3hHW_cmmq.1uTlnbaR0Y X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Apr 2022 03:17:10 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-c48mf (VZM Hermes SMTP Server) with ESMTPA ID f4921f0d1749ef2f4f0156faefb8e232; Sat, 09 Apr 2022 03:17:06 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Fri, 08 Apr 2022 22:52:53 -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.187.147; envelope-from=luangruo@yahoo.com; helo=sonic316-21.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:287991 Archived-At: Stefan Monnier writes: > We could put it in the "posn" thingy, but at the same time it's not > really a "posn" and it's kinda weird to duplicate it into the start and > the end posn of an event. It would be better to associate it with the > event itself and have an `event-device` function to access it. But wouldn't that mean the `event-device' function would have to have a specific implementation for each kind of event, with different indexes passed to `nth', since we can only add information to the end of each event? That's the sort of thing I was trying to avoid. Thanks.