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 21:14:19 +0800 Message-ID: <875ynh9j2s.fsf@yahoo.com> References: <164933858147.29834.15050766441005536059@vcs2.savannah.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> <87tub1kbkf.fsf@yahoo.com> <831qy58ofh.fsf@gnu.org> <87sfqlfomt.fsf@yahoo.com> <83wnfx77s0.fsf@gnu.org> <87o819e80r.fsf@yahoo.com> <83sfql73di.fsf@gnu.org> <87ee25cosj.fsf@yahoo.com> <87v8vh9k73.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="18733"; 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, larsi@gnus.org, monnier@iro.umontreal.ca, rms@gnu.org To: Brian Cully Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 10 15:16:30 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 1ndXQa-0004Zd-AD for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 15:16:28 +0200 Original-Received: from localhost ([::1]:46988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndXQY-0002AC-P4 for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 09:16:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndXOj-0001Go-3H for emacs-devel@gnu.org; Sun, 10 Apr 2022 09:14:33 -0400 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:37690) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndXOh-00084Y-Kw for emacs-devel@gnu.org; Sun, 10 Apr 2022 09:14:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649596470; bh=EmtyM/r5VXqE30bh5W6XNGHeVHK+Zh62xA15vQvcCW4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=MEbXiQER/KlxbtB5ZMq73HCX5U8sJEHx/uQvS1OivV5/6+PAHO3XQ/lokOWmtTDKutOOoxagpW/SLZqvGh7BhDCdg9NKPSkVcYmTE4CEhFNeWNq5a9jzTIrloZsytNpQCF3b709HWGm3dX+nVbeKYIYHedXAurk8g4u77la96tOzYcNjO1G0jG0STz+QetiNaHQ1Sg1Jz/llEKlnYdYzmLIh8Yjsygmd6f9WMdifDJNvp1QWyLPEZo//nssRMSXuLdGszRT3P2vLYk6yAAOFBWIbaoNACp+kwPmcI5sLEtQaJ7sFPxI47MPC8NxYwxgYhnE25K7yJsVxAss56qY3Hg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649596470; bh=PVLulemymd2BQ0S7iPAj3gV0PEeqjZ/NQf/11rwwAy3=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=DlW8VUwgCEcMrrNNYEXuwxRPOXM02gVB8oiHUOiFVLO3gd9AfiHBl5lmyiab/vStaxH9iObXI9PsJa5uw77SXhoecjudk/nTNXTj89UEQuFvjQWerkqP8oEppnB4t+wWL3TyCjerBbMWIX1AhDBtTzz0RNtzEv2lH0ltvpinqluPlDyzBAr+dCWJMlT/jW3qoCrtPVprzeHehi6Ks6RGX8kJWf4lgm3gS2vyeoVvRZTw3whEj9r13RAOdnjsJwlGsnUMElXomPkJdeiS+GJLre4Xh8m6BxDkP6Nil4WBEzsU00RskQuoSdtVuBsjVwN9Gqxhfua/55RB2OYuKSrBHw== X-YMail-OSG: e.uZEgkVM1mn_RI2b0Yr4xbWsjrExkRchqCRBwFav5GhG0YoMfaSmtwFg_hcSwp nV5IjpP5By8S0JHcREE7y8XMzBikLe8vO06ox3dpDtMC.yA9YLhOruEVvgNcfdywGg_A5WOJ6IAK xi2IT7tUz8kY8IhrkdHWHtILzBdkhM_9M6JtDeLQssJE60TcWz_SLu324RVC1SzrIjKTIuWGtJZE svPfSNdrXvDyUkzrJjJa2RYewkTwkw_uP6Qv6e9vyeKiWRvKffwig7w_Yml.SCF4e8OeDMLzbA8f Go513evuWBBWML5hdnDGq5gki9nzXclml883vfalZWMCVPWJMJChoA6mWHBKSnoaRKup.Bh_QH7K uwqFSPuql.HfzyDqr5YeEGF.VF8tT_84FoYmhJN_osdd_5pA8kIUWjs8ZTBZoPFeRasr0Q40Nc3R e2FutNvV0pnNTE9BG1qr7A_ODUHUEkamGFxIzJUZIkW6SdYSlW9Lhndbni3vNnfbDvEyCjtLhDSO vgjhN17QXk3jTQHyOgP7qrwo5cuIh7Qov2G9t4NuwJlvSVxqDfBfrct.C1NjoJfA3Wi5rJ5CVn7k WtfIAx30gdsj3iol4fMwpUIwnI9BsJw8P6qGX2Gp1FTy6pCJ6J_VDaCcPDPoTRnLz5N4dhX23oiT 3q2qc2KlYqcaHg_D44DvtxIcj9TM_sHpkEBPJxzXhUtG1c4_BHzYF_aZsKn.L6z01G36nq5XnoN4 .lKWW.ymYbp8ylMlYBodYeb0J7YtB.BZXDPZqDlDe2UChOucMrXW9FPKkg_mdk1wsW5eURlzXSj_ _74maXb7U3.j49q3BZdbz43YSWZCAcwtoV.M3bJhbB X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sun, 10 Apr 2022 13:14:30 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-stp77 (VZM Hermes SMTP Server) with ESMTPA ID 3ab6b6e6e2d43462d2273317c9473597; Sun, 10 Apr 2022 13:14:24 +0000 (UTC) In-Reply-To: <87v8vh9k73.fsf@ditto.jhoto.spork.org> (Brian Cully's message of "Sun, 10 Apr 2022 08:44:08 -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.188.204; envelope-from=luangruo@yahoo.com; helo=sonic311-23.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:288136 Archived-At: Brian Cully writes: > What level of application code is exposed to device naming? > Surely the vast majority of code in Krita is completely agnostic as to > where the event is coming from and only responding to an event type. The > configuration would only specify a map of device+device-event -> > internal-event (eg: (=E2=80=9Clogitech usb mouse=E2=80=9D + =E2=80=9Cbutt= on 1 down=E2=80=9D) -> =E2=80=9Ceraser > down=E2=80=9D), and the rest of the code in the system only cares about t= he > latter event (=E2=80=9Ceraser down=E2=80=9D in this case). That's out-of-scope. Krita plugins are based on attaching Qt signals to objects, and the plugins are supposed to utilize the Qt input device object that is passed around inside input events, which contains the name. Qt determines the type of device via that name, like Emacs does and other X programs do.