From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: master 859190f 2/3: Convert some keymaps to defvar-keymap Date: Wed, 13 Oct 2021 15:32:45 +0000 Message-ID: <818f9907c2091cc091a5@heytings.org> References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <20211004081727.4F24921048@vcs0.savannah.gnu.org> <871r4qcs8s.fsf@gnus.org> <87o87ubcnl.fsf@gnus.org> <87h7dm9en7.fsf@gnus.org> <818f9907c2b1fe8b54b1@heytings.org> <83tuhlnkxm.fsf@gnu.org> <818f9907c2f359a71f49@heytings.org> <83czo9nj4g.fsf@gnu.org> <818f9907c244b9db0bea@heytings.org> <871r4p575m.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7108"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 13 17:35:41 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 1magI7-0001Xh-Ol for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Oct 2021 17:35:40 +0200 Original-Received: from localhost ([::1]:38962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1magI6-0007xm-Hu for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Oct 2021 11:35:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1magFT-0004g3-G4 for emacs-devel@gnu.org; Wed, 13 Oct 2021 11:32:57 -0400 Original-Received: from heytings.org ([95.142.160.155]:49458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1magFO-0000ln-Ff; Wed, 13 Oct 2021 11:32:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1634139166; bh=LiTrN7c4tD/QTPn5dxqi+I3vgFkXiI2SsBn3yF6p1PE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=kRfTJUVtuLAmGoW5kgSg4mt2J7tyZUOdK5SkI6265xzjjTTJF13eurcc1338zEXox /XxZnZ/oNKQVJlI75GbRpSLmOlXM9JBy4hhC/vHWPpeM2q87acLMK9p0h64Z1A2vUZ JSCzojMSCrlqIlqAHlCtpesu7zeACl7DJrt8fNGGUX/wJV4pTHQQzdfvSElKiStsHL QHO3GLPSmEmtA/R0iD+C9GbfMTSne8aFGhOF/4Abdw6PqMAJKlrIChOdoo+084CKPg m92Q/aZnfyTlNRDCwDl6fvw80u6fBjPfvJk+chx2pKLdRFog53pUeNrJh75BVm7blm +fmLkqzg8Nv4Q== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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.23 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:276917 Archived-At: >> We don't want our basic building blocks to be DWIM-ey, but instead have >> well-documented, reliable interfaces, and certainly not change those >> interfaces in subtle ways. So changing `define-key' in this way is a >> no go. > > I agree with Lars here. > I really don't see how this could break anything, but okay. > > But how about a new function (e.g. named 'bind-key') that defaults to > kbd-syntax? Then we could encourage its use in new code and init files. > Yes. But then you'd need another set of new functions, "bind-key-after", "global-bind-key", "local-bind-key", "global-unbind-key", "local-unbind-key". And another one for "lookup-key", too. A rather confusing situation, IMO.