From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Standardizing more key bindings? Date: Wed, 07 Oct 2020 00:19:05 -0400 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thibaut.verron@gmail.com, emacs-devel@gnu.org To: Nikolay Kudryavtsev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 07 06:20:09 2020 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 1kQ0vw-0004RS-SY for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Oct 2020 06:20:08 +0200 Original-Received: from localhost ([::1]:51698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ0vv-0007Zk-R8 for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Oct 2020 00:20:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ0v0-00077V-5c for emacs-devel@gnu.org; Wed, 07 Oct 2020 00:19:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39203) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ0uz-00027r-S1; Wed, 07 Oct 2020 00:19:09 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kQ0uv-0004Pl-CB; Wed, 07 Oct 2020 00:19:05 -0400 In-Reply-To: (message from Nikolay Kudryavtsev on Tue, 6 Oct 2020 15:53:22 +0300) 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:257181 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > This led me to thinking that maybe Emacs actually needs a separate > intermediate level of abstraction for keybinding customization. What occurs to me is that we could have a level of indirection in keybindings. C-w could be bound to something like cut-region-binding, and cut-region-binding could be bound to some command (by default, kill-region). And likewise M-w and C-y. Turning on CUA mode would bind C-x to cut-region-binding and C-w to something else, and other bindings likewise. I have written the indirecting key bindings like symbols, but since symbbols as key bindings have another meaning, I think they must not be symbols. They should be some data type chosen to distinguish these indirections all other valid key bindings. Perhaps lists of the form (:indirect KEY-INDIRECTED-TO). -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)