From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: The new keymap functions Date: Sat, 13 Nov 2021 12:36:29 +0100 Message-ID: <8735o0mgj3.fsf@fastmail.fm> References: <87zgq8sfw3.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1130"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.6; emacs 27.2.50 Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 13 12:39:58 2021 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 1mlrO0-000AcO-W5 for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Nov 2021 12:39:58 +0100 Original-Received: from localhost ([::1]:52590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlrNz-0003Ik-3L for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Nov 2021 06:39:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlrNA-0002ak-RY for emacs-devel@gnu.org; Sat, 13 Nov 2021 06:39:04 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlrN9-0005YX-3P for emacs-devel@gnu.org; Sat, 13 Nov 2021 06:39:04 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9FDB55C0178; Sat, 13 Nov 2021 06:39:00 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 13 Nov 2021 06:39:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=kU37H30v3spAz4T1jk2E5yVpK9 h/6ZfclHYk7xzgRuM=; b=LpcDQogaSAPElawGATHngebhY68hlovG59RMR1mCLN qoiNBYTG7V2oKDGPhTabv+cfiqPqnyWWKpRlkX9DBXYqMg/qCsHWYmsyffituP2p uxLOsecwiLhbk2ysy8cvT5xyQBpQiyRE9WibMZy+KYRKfIfZsXozkzCF+QrItKgI DrJh0yIc8QYQKsVO2zjVWFm9Et2xZsnE1f3UDREHKSFeMUJtZDelAhFBAZhfPGWB Qu9jDkuaLUxAg4wPk5V/1OfwaoaTz3CtxEBu6M4Qc5lLgZYtojCi1MjQuvJ5HnWZ CIUQzpmfqJRvZb0lTjWDSbyVeudBT/WNVr1Q5hbhdV0g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=kU37H3 0v3spAz4T1jk2E5yVpK9h/6ZfclHYk7xzgRuM=; b=kLYzA0pJynZ6uyYfhTDfKT Hmt6dJJ+c4UjUu7autyWkfuPETHaPgPrntPYNuqkClUC3CKvQDQaJ1bORSbHwZMB NUvqKGCoBXnK78mHfcVy1AtZqBqWK+ecIIh59e7egiFEcdRFYnz3bjV25fNF9Jn1 lH2vcyQzVmdlKSfv5j46SzgFyESb5QXeQNLwODZwvP2aoCkAv2/lwNImTCeanCXv dHhAXe4o35xNyeM9owvDiOJsQRrdJMu+OUBHhm/X8DNc3TgvxXsWQ2RCY7RHq5Cu ZZuYGmKinWddi3dJLKKUfipRlsqH31Ba7LrYR4voRbiljz8NGMX1AanlWsjx4wCQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrvdehgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhsthcu mfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmheqne cuggftrfgrthhtvghrnhepvdeihfetueevkeduteehudeihedvlefgieejhedvteefgeel leehhfejudeijeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 13 Nov 2021 06:38:59 -0500 (EST) In-reply-to: <87zgq8sfw3.fsf@gnus.org> Received-SPF: pass client-ip=66.111.4.28; envelope-from=joostkremers@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:279314 Archived-At: On Sat, Nov 13 2021, Lars Ingebrigtsen wrote: > The most difficult thing here is naming, of course, but after much > discussion, I've settled on these: > > keymap-set > keymap-local-set > keymap-global-set > keymap-local-unset > keymap-global-unset > keymap-lookup [...] > Finally, the -unset functions remove the bindings instead of setting > them to nil. If they do something different from what `local-unset-key` and `global-unset-key` do, would it perhaps be useful to name them differently as well? Perhaps `unbind` instead of `unset`? -- Joost Kremers Life has its moments