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: Tue, 09 Feb 2021 08:23:29 +0000 Message-ID: <8ed9b4350256bb8eeb74@heytings.org> References: <7ef75c33936136eb3a20@heytings.org> <3b0170ad-bb87-f79e-dbbe-f2e7097e2d3f@dasyatidae.com> <7e12c1c3c120012674ec@heytings.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="66WIYzhRDd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31878"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 09 10:12:50 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 1l9P4k-0008Be-Bn for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Feb 2021 10:12:50 +0100 Original-Received: from localhost ([::1]:47550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9P4j-0008Iw-Cy for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Feb 2021 04:12:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9OJK-00088y-PX for emacs-devel@gnu.org; Tue, 09 Feb 2021 03:23:50 -0500 Original-Received: from heytings.org ([95.142.160.155]:43022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9OJ5-0000wa-6z for emacs-devel@gnu.org; Tue, 09 Feb 2021 03:23:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1612859009; bh=PZZ69aHodEAIce3DwBHyeRX55lahjPwTfsnUafSSldE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=oVqWgohxt3JM2eiPYHeqEEsCXrC8w8nRt05gQ/eT7hSUi0GfWByCKeLex0U30aXSG DLOIbvM8r2X6Xt/zIObANOnAcswQwQSkXp5sIekPadC2Uxy+ilYSRxkjBZ2LdrEuOw dZB/c3gj1S3gTbBYRwIw1EzKK02W91KG5uRcthIvrH4Y5kZom3L8pzMZbzUUocoBnu 9ezVIKfQV+zHPLhYrnkO8fTTjG0smKYzjA0sl+xX3ZUgUIrsKAIjgwOY8WOFsNYdxW 9tpP2/+sw3Wfql4EMwzWrqdlrBkmL19YCmqNO6PzlVg2KlaiVioIU3VVUgjrCsg7Qz KPSypcUQ3irUw== In-Reply-To: Content-ID: <8ed9b435028f68fadd14@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:264213 Archived-At: --66WIYzhRDd Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: <8ed9b43502f62aa01d47@heytings.org> >> For example you can move all C-x bindings to F7 with (progn (define-key= =20 >> global-map (kbd "") ctl-x-map) (define-key global-map (kbd "C-x")=20 >> nil)). > > Does it work that easily though? > No it doesn't, it was just a short proof of concept, which works mostly. > > Observed: I get a =E2=80=9CC-x-=E2=80=9D prompt in the minibuffer, indica= ting C-x is=20 > still acting as a prefix key. Indeed, pressing C-h reveals a number of=20 > C-x 8 =E2=80=A6 bindings in key translations, and a bunch of C-x @ =E2=80= =A6 bindings in=20 > function key map translations. > Yes, as Andreas Schwab explained a few days ago in another thread, this is= =20 because C-x is a prefix key on the key-translation-map. --66WIYzhRDd--