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: Concern about new binding. Date: Sat, 06 Feb 2021 10:59:32 +0000 Message-ID: <993b9ce74d1a22da65e3@heytings.org> References: <87zh0mmr54.fsf@gmail.com> <87y2g5smya.fsf@gmail.com> <4FF55FBF-573D-4A70-B3FC-682CA25B7ECB@gnu.org> <83lfc53whk.fsf@gnu.org> <20210203180142.seu6o3i6u7jhkyrh@Ergus> <83eehx3to5.fsf@gnu.org> <20210203221628.xgvvxjvh56gyswba@Ergus> <20210204070033.pm4ido4hq7a6twif@Ergus> <83sg6brhyg.fsf@gnu.org> <5588fb25805d486be704@heytings.org> <878s82esdi.fsf@fastmail.fm> <5588fb258085d00c0e72@heytings.org> <87blcy2d65.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0s9Uq8CTVp" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29197"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Joost Kremers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 06 12:00:39 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 1l8LKR-0007WI-G8 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 12:00:39 +0100 Original-Received: from localhost ([::1]:51266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8LKO-0005Tn-JR for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 06:00:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8LJR-00050v-2p for emacs-devel@gnu.org; Sat, 06 Feb 2021 05:59:37 -0500 Original-Received: from heytings.org ([95.142.160.155]:39164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8LJP-000077-IP for emacs-devel@gnu.org; Sat, 06 Feb 2021 05:59:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1612609173; bh=3jPyqgp6KB3mqncLLzxnmumX0P1vqqwuRC70phBEdxg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=OmRMb0TOz08kW+wcNV3Nl6NingRQo/poONfDuwjqTR5GwoWywpO2JcgJ1mkPG3iUg R8MH5ZGYdb0jYMiqL1y2ZxVVlHeCeWM4JBfki1QL0K5bZx8kx1de5MV8oWxjDcbVnS Z00ui7BDTWhe8RByPXiuGFLG/FGvQ/LM0nyQnFDg5qHHyyuZ62iVDh1Hk6rkQHqbKG J8RpztRD73FZHGulEFfX/HnU9nSTexffnweoDJTHAKy6KlhEvGbTj1z7GhlIUikt0o tgdNTiIotLZqxaBw6d0dNMsEM1M8v8O/9uvvC3oa+KffK7MEJtWR68uFOdVoGoFIvO 8BPGH/64OIp/g== In-Reply-To: <87blcy2d65.fsf@fastmail.fm> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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, 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:264051 Archived-At: --0s9Uq8CTVp Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable > > Moreover, lazy-loading makes it necessary that a package that creates=20 > its own global bindings adds a user option to disable the creation of=20 > those bindings, because otherwise lazy-loading a package could stomp on= =20 > user-defined binding. > >=C2=A0[...] > > It wouldn't solve another problem, however, which is that the key=20 > bindings a user finds in their Emacs will depend on the order in which=20 > packages are loaded. > > [...] > > The only way to avoid that would be for each package to provide an=20 > option to disable the creation of its global bindings. > AFAICS, it's not the only way to avoid that. Another solution is, when a= =20 package is loaded, to check whether the bindings it would like to use are= =20 already used, and if so, issue a warning to the user instead of rebinding= =20 them. In such cases, and only in such cases, the user would have to do=20 something. Typical users who install a few packages each binding a few=20 keys would never have to do anything. --0s9Uq8CTVp--