From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: PROPOSAL: Repurpose one key and reserve it for third-party packages Date: Fri, 12 Feb 2021 04:45:46 +0000 Message-ID: <87tuqhsxl1.fsf@robertthorpeconsulting.com> References: <87lfbu9q5x.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18972"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, help-gnu-emacs@gnu.org To: "Philip K." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 12 05:46:50 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 1lAQLx-0004p9-Sa for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 05:46:49 +0100 Original-Received: from localhost ([::1]:43160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAQLw-0005VM-Ty for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 23:46:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAQLa-0005Uy-8y for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 23:46:26 -0500 Original-Received: from outbound-smtp50.blacknight.com ([46.22.136.234]:33979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAQLY-0002E6-14 for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 23:46:25 -0500 Original-Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp50.blacknight.com (Postfix) with ESMTPS id 80B8AFAD1E for ; Fri, 12 Feb 2021 04:46:19 +0000 (GMT) Original-Received: (qmail 17499 invoked from network); 12 Feb 2021 04:46:19 -0000 Original-Received: from unknown (HELO rt-inspiron-3480) (rt@robertthorpeconsulting.com@[109.76.74.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 12 Feb 2021 04:46:19 -0000 In-Reply-To: <87lfbu9q5x.fsf@posteo.net> (philipk@posteo.net) Received-SPF: pass client-ip=46.22.136.234; envelope-from=rt@robertthorpeconsulting.com; helo=outbound-smtp50.blacknight.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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:127835 Archived-At: "Philip K." writes: > [1:text/plain Hide] > > Gregory Heytings writes: > ... >> That reminds me the famous "640 kb should be enough for anyone" ;-) >> Indeed, 26 letters is not enough. Magit has three global commands,=20 >> Org-mode has three, and Bookmark+ has three keymaps. With just three >> packages you've already used 35% of the available keys. I hope you=20 >> understand that it can't be a long-term solution. Moreover, AFAIU, >> packages cannot automatically bind their commands to C-c LETTER keys=20 >> anyway: these keys are strictly reserved for users in their personal >> configuration files. > > I think that's the pessimistic way to look at it, the optimistic one > would be to say that you only need 35% of the key-space. I don't have a > feeling for how many global keys people bind by default, one would have > to study public configurations to find out. But I still remain sceptical > that -- compared to memory usage -- that need for keys is rising that > much. Remember prefix keys here. A user can define a prefix key anywhere in the region reserved for users. The manual says: "A small number of keys are reserved for user-defined bindings, and should not be used by modes, so key bindings using those keys are safer in this regard. The reserved key sequences are those consisting of =E2=80=98C-c=E2=80=99 followed by a letter (either upper or lower case), an= d function keys through without modifiers (*note Modifier Keys::)." It does not ban using those keys as prefixes. I can make a prefix, then I have the full keyboard to play with once again once I've pressed F9. BR, Robert Thorpe