From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Opening Up More Keymaps Re: Standardizing more key bindings? Date: Wed, 30 Sep 2020 09:58:34 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35374"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Dmitry Gutov , emacs-devel To: Thibaut Verron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 30 19:12:31 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 1kNfeX-00095i-Py for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Sep 2020 19:12:29 +0200 Original-Received: from localhost ([::1]:33434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNfeW-0005Bw-Qd for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Sep 2020 13:12:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNfRB-0000Mz-Fi for emacs-devel@gnu.org; Wed, 30 Sep 2020 12:58:41 -0400 Original-Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:34024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNfR9-0007mT-Kn for emacs-devel@gnu.org; Wed, 30 Sep 2020 12:58:41 -0400 Original-Received: by mail-pf1-x42e.google.com with SMTP id k13so1604748pfg.1 for ; Wed, 30 Sep 2020 09:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ygFMY2mm+9UeM8/Ix6rqfPWsZmTXeqXFMznzM4qe/+Q=; b=beROAGC1i3A431i5BBgHGAn6jE0FThs3VfAIoc2jAEFby48Qgf/H7WXK8mMguKvYuE heKbB5HzqR7bOdSrSe0yt0lDEbYxiKYrCoS/dp13tq9diC4+FstwyWQmhCXR81Oy/xZZ RcFR2S2MMJhzYplOJbS8nLVNgV58SsJgiNBwSH+8UqDajTY59BYJr/m5O7ZMGDlXAHlC 6QxQ5MBJB8G3lkNwRd193x+6raS3R+27Kwv/wnjannBf5aNXIbM8SebHnMX6pBhS4eoA MPOKrMCWrItQUuIAyG8kv+oexhEBlWAj8FYOzli/S2bRfH3FSI1ck+NZdD+jzGOiS3OY qvyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ygFMY2mm+9UeM8/Ix6rqfPWsZmTXeqXFMznzM4qe/+Q=; b=RxAokc8p2mG3vBiIh8yUY4mAbk3CMZ+hVldKpHRJVPh/fh9pJF5+BGgX5EODNFkFL9 /ChRi4M+1sOSA90YlK+Xmbk8NmsiGxGlYOhE4GsAzxpoEUnm2vqYD2iv1uDqq4oFd3hT TRvrpcK81DhagU87Ey7kaEF+HcT61dXucIh6/Qsb7OFfS7LxwxiEDQFmXE6ClKW+ljDQ JJukPaB0msg6/45oCM6o1v73b6ClqqlcB81YHSzQfxeeVLREs2N8yOIstK7LgIWSfJle PESloUXRAKFKhaqdzJyDEKsZwQ/43Zrv/J7f9n2/PbzCUwV0znLRcGeeJeaHfAXl2Iau JVdQ== X-Gm-Message-State: AOAM530dGfI+36Qwr8fvnR+EfhW8KEql/a4h1UwczTtGQOZvdHRbUe9c BL3d2JSWyuyotRqvuiiD/Jn0kA== X-Google-Smtp-Source: ABdhPJye0VDgoXlmEIDxfUoqVrE2PT81Eytgt63b6NGWoI+gIPNPllCAnISFbBXRTfabGfNpUL/2mA== X-Received: by 2002:a63:4c4e:: with SMTP id m14mr2642955pgl.199.1601485116361; Wed, 30 Sep 2020 09:58:36 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id 1sm3413881pfx.126.2020.09.30.09.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 09:58:35 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 56370C211C3; Wed, 30 Sep 2020 09:58:34 -0700 (PDT) In-Reply-To: (Thibaut Verron's message of "Wed, 30 Sep 2020 08:08:38 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=raman@google.com; helo=mail-pf1-x42e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -180 X-Spam_score: -18.1 X-Spam_bar: ------------------ X-Spam_report: (-18.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.499, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:256776 Archived-At: Almost as courageous as Lars' request to change line-length limits (hopefully not quite as controversial) Perhaps it's time we opened up some additional keymaps so that we can experiment with keybindings without causing too much trouble for long-term users. Proposal: 1. C-z as a prefix --- at present c-z runs suspend-frame under X, and suspends Emacs on the console. Perhaps turn C-z into a new prefix key, and bind the above commands to C-z z -- that gives us a whole new keymap to play with for the future. 2. F2 is currently taken up by 2c (2column support) and perhaps it's time to recover that key, I suspect 2c is not as heavily used to justify a common key like F2, and it would still have C-x6 dedicated to it if we take F2 away from it. =20=20=20=20=20=20 Thibaut Verron writes: > Le mar. 29 sept. 2020 =A8=A4 23:58, Dmitry Gutov a =A8= =A6crit : >> >> On 27.09.2020 12:31, Thibaut Verron wrote: >> > For the REPL example, I guess it should be possible to split basic >> > functionality into some well-defined functions, and let packages >> > assign those functions? Like a comint-create-process-function, a >> > comint-send-region-function, a comint-send-buffer-function, etc. >> >> I applaud this initiative, but one of the steps would be to define >> common bindings to use in all "inferior" (REPL) modes, and that is >> likely to conflict with existing bindings. > > It doesn't have to be in the global-map, it could be a minor mode > activated by those major-modes or users that want it. > And the keymap doesn't even have to be populated by default, I guess. > > If python.el is refactored to use a new proc-send-buffer command, they > can still bind C-c C-c to that in python-mode-map, but a user who > prefers to use C-c C-b in all modes can bind C-c C-b in proc-mode-map. > > Minor clarification: I'm not talking about the process buffers > themselves, but the normal edition buffers for the corresponding > language. E.g. emacs-lisp buffers, not IELM. > --=20 Thanks, --Raman =817=A94 Id: kg:/m/0285kf1 =950=DC8