From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: PROPOSAL: Repurpose one key and reserve it for third-party packages Date: Sat, 13 Feb 2021 21:14:49 +0100 Message-ID: <8735xz67ye.fsf@posteo.net> References: <7ef75c33936136eb3a20@heytings.org> <87pn16a1xn.fsf@posteo.net> <87lfbu9q5x.fsf@posteo.net> <329d68a5ed6d1194f3c0@heytings.org> <87czx5a947.fsf@posteo.net> <329d68a5ed1656b4427e@heytings.org> <87zh098lo4.fsf@posteo.net> <329d68a5ed26ba41356b@heytings.org> <87h7mhgyxj.fsf@posteo.net> <329d68a5ed0dcd10a78a@heytings.org> <87czx5gpuj.fsf@posteo.net> <329d68a5ed4f4c7e84fb@heytings.org> <877dndgnhp.fsf@posteo.net> <329d68a5edfafadfe7cd@heytings.org> <87y2fsg5ve.fsf@posteo.net> <87mtw8fi6k.fsf@posteo.net> <87ft20f3ec.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Gregory Heytings Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 21:15:47 2021 Return-path: Envelope-to: geh-help-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 1lB1KV-0009DM-Nb for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 21:15:47 +0100 Original-Received: from localhost ([::1]:39454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB1KU-0006YC-Ol for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 15:15:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB1Jg-0006Xz-35 for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 15:14:56 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:39817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB1Je-0001F4-0K for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 15:14:55 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C2ACC2400FC for ; Sat, 13 Feb 2021 21:14:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613247291; bh=lVZD3M8sAoEztVXyP3hv6qj8pwtH0p9RKFahKeEsjBc=; h=From:To:Cc:Subject:Date:From; b=FqVu3gdgtJJSSn4/Q8PF/mukIqUZEJX2Ii44W8eBOWjRbJ2ZyVE/k7l/VsVfe3umY dxVvJtqHM490Q/yUqJ7HzwzBfvSzEL+am39T44z59ky78nYfyw2rHHmgCzpUb1HqKN A6yqxYX5VqPmQRNoVWKaBlzkVpE2ntzo9/w2U5id6PtovNQkerTzx/49XGNg4R8uTW KVgKZAdh0iGwulZip5HXQVUuBMlrI74mRB/O/pUWFHg265x7oIglB8j+1dZBDSoTjC hUbAKkwxLsptNDkZiBxwWFDDlZYT+/jg6f0khQr3XzqTSq6aJbVPdgCOMJQeXjKtOR HH+M1TSxB9B8A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DdM6M00Sdz9rxf; Sat, 13 Feb 2021 21:14:50 +0100 (CET) In-Reply-To: (Gregory Heytings's message of "Sat, 13 Feb 2021 15:02:18 +0000") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127969 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Gregory Heytings writes: >> >> Sorry for protracting the conversation, I just think the >> interpretation of the guideline is important. >> > > Not for the proposal itself. Well yes, because if packages may bind to C-c *with* the consent of users, the need for a special package map decreases. >>> AFAIU, this is also how the author of Magit understands that >>> guideline: Magit binds three keys globally unless=20 >>> magit-define-global-key-bindings, whose default value is t, has >>> been set to nil, and only recommends in the docstring to bind "C-c >>> g". With your understanding of the guideline, Magit could have >>> added a third possible to magit-define-global-key-bindings, say >>> 'best, with which the "C-c g" binding would have been created >>> automatically. >> >> No, because the user is not asked, and I have to add extra >> configuration, to prevent Magit from changing my environment. > > The point here is that the three values for > magit-define-global-key-bindings would have resulted in three > behaviors: nil =3D> do not bind any key, t =3D> bind keys but not in C-c, > 'best =3D> bind keys including one in C-c. The author of Magit did not > do this, so my guess (it's just a guess, I could be wrong) is that he > also has a literal interpretation of the guideline. The way I see it is that there is no need for a value like 'best, because this whole idea is that magit wants to bind their keys by default, but it shouldn't bind it to C-c g. If you're going to set magit-define-global-key-bindings to 'best, you might just as well directly bind magit-status to C-c g. I think it would be totally ok for Magit to have the default value set to nil, and then bind to C-c g, but that undermines their entire motivation, as there would be no default binding. Btw., are there any other examples of packages binding global keys by default? =20 =2D-=20 Philip K. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCAAxFiEEbW+YL3e0aNnYosjIGB9bla4wszYFAmAoMzkTHHBoaWxpcGtA cG9zdGVvLm5ldAAKCRAYH1uVrjCzNkmwC/0ZGFhd963ge7S8EcSCH16xuf8m4G0v qINK+8VRxvEU55BVyRAooPfNs7eGTpT/z3iUKCJ4HX/xNiROMea35Qfq2oEuYRXN 7j5Rxsij8GrZ1dh28m9aojVmvXySmrN010HpTBIIjO2B6WyxWSTqxcfhPLPFh7L/ XJnmpjF5r5/hzRNULm73If1oLrPTzH6Z3vjIhZ++uagoE1Q02pIDRQV2+Ynkm0Z0 GH0hv8sKmvKwxQLnG1c55oNIIWTM2OlmWyGAxI4Uk/HopYISWbqZD9Htx3MWxC4g LwSn4He2zOEyGiAODnwyTNJfkYmnLYK8b11o1kh5hIY/+9sIjgzkgQUfJw9rqo5l 0PLM/u/wytCXT8RQQh3VWCFJuDYevymSUVuK090bf8lyI6UDzvIQ5sTr+0+2drg3 Mjc7kBTrn4f5BB94ZzYhzwPVXCInzuZyuo7YoJUFw3r7PmJ+9x13aeHBmk7NV/jh UBjvfjEKnlun7r7h1dkGc7jDxXe6N3Tlihc= =9qmH -----END PGP SIGNATURE----- --=-=-=--