From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74423: Low level key events Date: Thu, 26 Dec 2024 09:54:15 -0500 Message-ID: References: <31bdc55d-8c13-4de0-9cef-bd6cc4fb033f@imayhem.com> <705fabb8-1ea0-4894-8c32-05097ab822c9@imayhem.com> <868qsvz07i.fsf@gnu.org> <162dada7-ad54-4ca5-8f11-d55dd6dccb3c@imayhem.com> <867c8ezny3.fsf@gnu.org> <86bjxev7ng.fsf@gnu.org> <343e2854-a16e-4718-894a-470b733ae91f@imayhem.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3785"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, 74423@debbugs.gnu.org, Eli Zaretskii To: Cecilio Pardo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 26 15:55:30 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tQpGr-0000p5-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 15:55:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQpGR-0007Oy-OA; Thu, 26 Dec 2024 09:55:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQpGQ-0007OH-57 for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 09:55:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQpGP-0003q5-SP for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 09:55:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=6MPMSOY3/8u2YuDrNh3F2je027fMLISdQ7LVjKg0xKg=; b=UedpCbbhKdcz6gXaWx0T1vPeJ23bJt8FhV0Jz39oh5nlTMlozP7/QBcMSIIYXEMf7+pKPK0pmUbBCOvjmiAVaN/+7HeD9+ahs9ZtU/qEaI2oDz38nM4k3kqRZNRmY0TjrN5saPuKZhfn4hojpT71qZ7NewHurkFNXGXft01LKa081r/vVi1qSPFnWVqHlm6SQ3gdsezn6bcYxaMWgUMWAYk6qBtutCiYYvQAfqr8lTKiYSwgr9+/hWwpCKk/3W4Fs3QB3GKJYU86YmyMxiwuwLWanJA/K/tNxkfPyhnYYelod2+j3l171x3hkLTP8Ncky6RSfTRoWAr+C0SnHlpXHQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQpGP-0001ll-Ls for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 09:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2024 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74423 X-GNU-PR-Package: emacs Original-Received: via spool by 74423-submit@debbugs.gnu.org id=B74423.17352248666717 (code B ref 74423); Thu, 26 Dec 2024 14:55:01 +0000 Original-Received: (at 74423) by debbugs.gnu.org; 26 Dec 2024 14:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:40598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQpFp-0001kH-VP for submit@debbugs.gnu.org; Thu, 26 Dec 2024 09:54:26 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQpFn-0001k2-Cb for 74423@debbugs.gnu.org; Thu, 26 Dec 2024 09:54:24 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 72DCD10004A; Thu, 26 Dec 2024 09:54:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1735224856; bh=f3YkOMiYHpvpP3YxXVv+QTx8FOLB18iQp3Lf2cuOiik=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VaXQUxb/Tl9D7hbMGmqMDPs0/308+TTPleGM3bGp5mwcdvY1mvVQ+wmoYP4+v+S83 nMF3OFfibmxH++Kq8cXFsfrZ/YkCj8syvrcNXyRqSmHurmhyDQAiGBf0kBpJsRGHcO 7brCkTg4Fuj8m2tyIeKsfuSO0xGKbmQqBYUbMTLi5/MXCozss1krzlGzmea6+BRfl8 UzQDvHIXJt96UHoyho6YM/DuTXO5hpr8epKNEQWGmhEP94rRJ5N8lneblj2akcl8Zq P7u1a0wjQCKevQku4dOatg1LUX5mcroDs1txjrqFJDVe7CS0k3yWHVlfQ+4WS+7DXA TcDBLUx3EsU/Q== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BDE95100035; Thu, 26 Dec 2024 09:54:16 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8A04B12056E; Thu, 26 Dec 2024 09:54:16 -0500 (EST) In-Reply-To: (Cecilio Pardo's message of "Thu, 26 Dec 2024 11:16:11 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297769 Archived-At: > How can we make sure that only the user configures this, and external > packages do not? I can't think of a good reason why we would actively want to prevent external packages from touching this. At least not via technical means. As a matter of fact, I think we'd welcome packages dedicated to configuring this: your code is currently layered as a C part which provides the low-level events and an ELisp part which constructs useful semantics out of it, but that ELisp part can be thought of as a separate package, so we already have an example of useful "external" package configuring this. Another package could provide an alternative way to use those low-level events. As for "normal" packages (say major modes), I suspect they will tend to naturally refrain from touching it because it's not available everywhere. We may document guidelines about those low-level events alongside our conventions for key bindings, OTOH. Stefan