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 01:37:25 +0100 Message-ID: <87y2fsg5ve.fsf@posteo.net> References: <7ef75c33936136eb3a20@heytings.org> <87o8gr1oom.fsf@posteo.net> <87lfbubthl.fsf@posteo.net> <87tuqia845.fsf@posteo.net> <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> 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="25079"; 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 01:38:23 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 1lAix4-0006Qf-Ot for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 01:38:22 +0100 Original-Received: from localhost ([::1]:35404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAix3-00077H-PJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 19:38:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAiwI-00076r-HQ for help-gnu-emacs@gnu.org; Fri, 12 Feb 2021 19:37:34 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:51721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAiwD-0004ip-T1 for help-gnu-emacs@gnu.org; Fri, 12 Feb 2021 19:37:34 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E0F422400FB for ; Sat, 13 Feb 2021 01:37:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613176646; bh=ByMFRytu2s+0auASlSj2lrVPdmTuwPngzIRkI+WVabQ=; h=From:To:Cc:Subject:Date:From; b=lSONbb3ltrZkImnQFnAG8gl4D79OeBpyLXAFVIpQ1LDOcCHcyTm4mihdz6SbWUA09 o76EW5zXcsLRmy6Qd3IhWMhd35qNWlH/6mYBSprFvIiodTW5l06QMj17ZN1eBEu00N jjt1QfT4UksujtZzicxT+yyfCiNeKdd0XmPD06PDADrjO/RrRs3D3XfDPYR43OYM0P y1/UarLuGdGi2+mdeyA6wWXt1pmg0/rgskmdo0M5XUqkWm0ZKaE/jYWMx4AHIejJVr Ozr2JhOP2j+ZHqBFe/Q8o8iZlR5CM7usbz6ClnS+cemBzjv5NyMBNq87fHehXGfTlS ce9NPa5v2OzTQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dcrzp0q5Cz9rxG; Sat, 13 Feb 2021 01:37:25 +0100 (CET) In-Reply-To: <329d68a5edfafadfe7cd@heytings.org> (Gregory Heytings's message of "Fri, 12 Feb 2021 21:48:12 +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:127882 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Gregory Heytings writes: >> My reading of the guideline on "C-c LETTER" is that a major/minor >> mode shouldn't bind C-c LETTER to a command, so that it overshadows >> whatever is bound globally to C-c LETTER. But a system like what I >> propose just generates to configuration *for* the user, in a user >> file in which case the guideline doesn't apply. That's what I mean >> by avoiding the need for an extra key-space. >> > > I'm not sure your interpetation of that guideline ("Don't define 'C-c > LETTER' as a key in Lisp programs") is correct, but now at least I see=20 > what you mean: you're more or less cheating the guideline by > generating a configuration file, after asking the user if they're okay > with that, instead of binding the key directly in the package > depending on the value of a configuration variable. To me what you > propose looks pretty close to using customize to set a > foobar-set-global-binding variable that would be used in a call to > global-set-key. Yes, that could also be done, the precise code that is generated is an open question > And that doesn't solve the problem that 26 letter keys is a small > number. Yes, you can also use capital letters, and yes, you can put > keymaps on these 26 letters instead of single commands. IMO, that > can't work as a long-term solution; if it were, it would already be > used, and the fact is that it isn't, and that third-party packages > prefer to use, or recommend to use, keys that are not yet bound by > Emacs. You could use C-c LETTER as a fallback, and suggest more convenient keys first, that are usually unbound. But even considering that, what do you think that the long-term issue is? Do you think that with time, people will be using more and more packages that need global keys? =2D-=20 Philip K. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCAAdFiEEbW+YL3e0aNnYosjIGB9bla4wszYFAmAnH0UACgkQGB9bla4w szbwIgv+MSSfXuR2UWqhNsGYMz5ycEzhJcIZAfgcP3k38MqSDlBhrJ1B5ZvjYvjA iEXD7lVzyV6QgaKRRpgBnq5JElPmzSFuXx2w4+ZCJgqeLwgSFsewOGxcy8wiG8fH 16CDsbus6jVFC/xGxaj81Qs3miSePkdIaHStu0z2iQFcvTmYJV+6Y5eJMw9taukk 1qVFodLXh2FDjZRlZbEFXg+Fst9kSSq7fmUF9l/E3iCU//iq055nqfFL6yYN53ss U0DJN+e8BBx/NzF1aX0ZQpn6kwVm3y1YW9bU+E0WTGxOo//3EoTNoJb4QkITj+Pu xZY8S7QKq9x0en9TZ8WUaQerOrzAxmvFYahtZPBARVrje6GNeUal7haGcc74xoHS WES6oiUNHtGvhMAtVFz5WHciPOY/pWWD6aN7ZgThPn2UgCV9mK+SBkTJkAstlFyy j1zbEXkC9OZKZwNAObf6qZOgowiwhHAUzPulXNk/PWPjlVfRCeWN6w13EPGn6QMM OWQkIzEk =zLgq -----END PGP SIGNATURE----- --=-=-=--