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: PROPOSAL: Repurpose one key and reserve it for third-party packages Date: Wed, 10 Feb 2021 11:07:12 +0000 Message-ID: <3966473cc18953bb033c@heytings.org> References: <7ef75c33936136eb3a20@heytings.org> <87czxazbhr.fsf@melete.silentflame.com> <871rdqfaix.fsf@ericabrahamsen.net> <87mtwd42ck.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LNe6Hfi3o1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 10 12:08:51 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 1l9nMZ-00040b-Ca for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 12:08:51 +0100 Original-Received: from localhost ([::1]:54190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9nMY-00040S-Co for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 06:08:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9nL4-0002IY-8e for emacs-devel@gnu.org; Wed, 10 Feb 2021 06:07:18 -0500 Original-Received: from heytings.org ([95.142.160.155]:44796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9nL2-0001iH-Em; Wed, 10 Feb 2021 06:07:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1612955232; bh=loj3FWk05znMMbvJolprQMQhw/xtZ+Pz8Z1EmVSXSzo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=OIBISBdNkYCkdmQw+6/TKx7TwTVRoNao9aXLCWHzxBbjoCUqS7CgxIXJ8/XNAxRG2 c8TqIxrv5hJrVL8cDoJmrXcsOg5qbQqXwOazpOUt7ZDTFSexacZOClbMZ68UQLa1YX jDL8fNHgF+TTpeW5SNViur7OBiitpVczrARoGr+rWq3qC8ZThetLB3yVptGwAZpoZQ XWkR8TiYc9TXZITyJhGSCDNQLRQ+laP1W4QeSZC+/5wf6leD8iy/ycB8Glht7SiAJq lCVxQVmvs4Hh4IqCpFWF0L6jj5omqLSvLKf7e6LgLPe4rCQ0Qcn3XaHAx7YjCwtVHs 1RQtlZxp9YElA== In-Reply-To: Content-ID: <3966473cc1d5253a7fd9@heytings.org> 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:264268 Archived-At: --LNe6Hfi3o1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: <3966473cc1798c99bb94@heytings.org> > > Suppose we reserve one key for third-party packages. Let's refer to=20 > that key as C-=CE=B1, to avoid specifying which key is chosen. > > Various packages will set up their own bindings for it. If you load=20 > more than one such package, which package's bindings will you get? How=20 > do you get the ones you want? > This is something that should be left to packages. Org-mode would bind,=20 say, C-=CE=B1 a, C-=CE=B1 c and C-=CE=B1 l, or perhaps C-=CE=B1 o a, C-=CE= =B1 o c and C-=CE=B1 o l;=20 Magit would bind C-=CE=B1 g and C-=CE=B1 M-g, or perhaps C-=CE=B1 g g and C= -=CE=B1 g f; and so=20 forth. There will be conflicts, of course, but only occasionally, and in= =20 those cases users would have to do something to resolve the conflict. > > Here's an idea. > > Have one command you can use to specify which package's bindings C-=CE=B1= =20 > will run. It could be C-=CE=B1 C-=CE=B1; then individual packages will n= ot give=20 > their own bindings for C-=CE=B1 C-=CE=B1. > > So you can type C-=CE=B1 C-=CE=B1 Foopkg RET, then C-=CE=B1 gives you the= Foopkg=20 > bindings. > I'm not sure I understand what you mean. Would this mean that each time=20 you want to use, say, Org-mode you would have to C-=CE=B1 C-=CE=B1 org-mode= RET=20 before typing C-=CE=B1 c? If so, I don't think this would work. --LNe6Hfi3o1--