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.help Subject: Re: PROPOSAL: Repurpose one key and reserve it for third-party packages Date: Thu, 11 Feb 2021 17:48:13 +0000 Message-ID: References: <7ef75c33936136eb3a20@heytings.org> <8735y56naf.fsf@posteo.net> <8ed9b43502ae9a36b057@heytings.org> <87tuqk6d9d.fsf@posteo.net> <3966473cc1ab9f104724@heytings.org> <87o8gr1oom.fsf@posteo.net> <87lfbubthl.fsf@posteo.net> <87tuqia845.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24396"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Thu Feb 11 18:49:38 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 1lAG5y-0006FU-No for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 18:49:38 +0100 Original-Received: from localhost ([::1]:39070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAG5x-0008F6-PG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 12:49:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAG4o-0008Dp-Pt for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 12:48:26 -0500 Original-Received: from heytings.org ([95.142.160.155]:46866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAG4f-0000RY-1F for help-gnu-emacs@gnu.org; Thu, 11 Feb 2021 12:48:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1613065693; bh=MXNQEP7K6CnhknCnR68jYWlIp2lvPinMhrIUgso0Xkg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=PYc1B8KPXlNbyOghpvYWE5HXOq1HQYvrHmXzIaJ2HhQP2BzavCzLNgcqms/dqXAYj RyUzECZ6AEDvoRmF4eJW4uSRw2fU4d3cNLD6RF7xBotgtXefGKoq7uYVeOFjXq/tRq ujDOaWLZ5sGL7jMQ2ViT0T1uj8CHixMYnm9Lfz+oNqmMpbAVDrSd1VKtY5N7ISvGt8 VcNdGAFFkO+L1Q1ojKsvqpMXQ6LVR/AQnXbMVRpONmYKyofABvzzwye857GqcOW7EF T7V9X6kGI/IWWAyEoSFjOllmW0S5/qJfTBMPB4eEY3kMSEHzzMvPWFptX0mayxq+pC 9Xb1a9aI2PCtw== In-Reply-To: <87tuqia845.fsf@posteo.net> Content-ID: 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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:127822 Archived-At: >> The problem of what you propose is that, even if it were possible=20 >> (AFAIU it isn't, given Emacs' key binding conventions), it would be a=20 >> very limited solution: there are only 26 keys reserved for users. Okay,= =20 >> 52, if you count capital letters. > > Wait, if a key were designated, you would have the same issue? But even= =20 > then, you can bind a key to a sub-map, you can rebind exiting keys if a= =20 > package improves on an existing key and you could suggest more than one= =20 > key. > No, with one control key you have all characters (not just letters, also=20 digits and symbols), plus all C-something, plus all M-something, plus=20 C-M-something. With one control key and its corrsponding meta key you=20 multiply that number by two. >> It's what most users expect. apt install elpa-magit, C-x g, and voil=C3= =A0:=20 >> Magit works. > > How do you come to this conclusion? > It's what Magit (and other similar packages) do. The presupposition of=20 the proposal is that such packages know their users. >> BTW, Emacs already does "behind-your-back" customizations, and doesn't= =20 >> ask you any questions for them. It provides sensible defaults, which=20 >> work in most cases, and which you can change if need be. > > I don't get your point here. Are you saying "default Emacs" is a=20 > "behind-your-back customization"? > No, I mean that installing packages already does some "behind-your-back"=20 customizations, for example by modifying auto-mode-alist. There are cases= =20 when such modifications do not what some particular user would expect; as= =20 someone mentioned, a package for Perl who would override the setting of a= =20 package for Prolog because both use the .pl extension.