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: "whether the global keymap C-x 4 will be replaced by a command," Date: Sun, 19 Jul 2020 22:39:37 -0400 Message-ID: References: <83ft9woo68.fsf@gnu.org> <87wo377wxp.fsf_-_@mail.linkov.net> <87wo353f77.fsf@mail.linkov.net> <87o8ofoy9o.fsf@mail.linkov.net> <874kq41kaw.fsf@mail.linkov.net> 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="3506"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 20 04:40:10 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 1jxLis-0000l1-9a for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Jul 2020 04:40:10 +0200 Original-Received: from localhost ([::1]:40652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxLir-0003Ai-4e for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jul 2020 22:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxLiO-0002ki-Cf for emacs-devel@gnu.org; Sun, 19 Jul 2020 22:39:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54886) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxLiN-0000eI-C3; Sun, 19 Jul 2020 22:39:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jxLiL-0006Na-65; Sun, 19 Jul 2020 22:39:37 -0400 In-Reply-To: <874kq41kaw.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 19 Jul 2020 02:21:27 +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:253117 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. ]]] > I propose the following design: > 1. keep the existing 'C-x 4' bindings and other-window commands > unchanged to maintain backwards compatibility; > 2. add a catch-all fallback to ctl-x-4-map and bind it to the command > invoked when an unbound key is typed after 'C-x 4'. LGTM. > There are 2 possibilities what to do with an unbound key in this command: > 2.1. define a new keymap with mappings from such unbound keys to commands. Why do we need this -- can't we define those exceptions directly in ctl-x-4-map? > 2.2. another possibility is when the above keymap doesn't match > an unbound key then run its global keybinding. > For example, typing 'C-x 4 C-h i' will display the Info manual > in another window. > Now I tried to implement this, but the problem is that the fallback > '[remap t]' doesn't work, for example in: > (define-key ctl-x-4-map [remap t] 'other-window-prefix) We could make that work, one way or another. -- 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)