From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Sat, 06 Feb 2021 21:25:36 +0200 Organization: LINKOV.NET Message-ID: <87sg69dmjb.fsf@mail.linkov.net> References: <2EFBBE54-62F4-4373-82D6-DC8750B648BA@kuaishou.com> <87eei9xb5r.fsf@mail.linkov.net> <87sg6m5mjs.fsf@mail.linkov.net> <8735ykc37u.fsf@mail.linkov.net> <938445fec66b0cdb0c4e@heytings.org> <87y2gchcpm.fsf@posteo.net> <9031b3534b1379ca1f96@heytings.org> <5588fb25809fad66f986@heytings.org> <8735yanbau.fsf@mail.linkov.net> <5588fb2580cf77301ab1@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Richard Stallman , emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 06 20:33:33 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 1l8TKn-0003Uk-Tr for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 20:33:33 +0100 Original-Received: from localhost ([::1]:58838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8TKm-0008C5-V8 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 14:33:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8TJR-0006vK-93 for emacs-devel@gnu.org; Sat, 06 Feb 2021 14:32:09 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:59435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8TJP-00058R-G3; Sat, 06 Feb 2021 14:32:09 -0500 X-Originating-IP: 91.129.108.204 Original-Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 8EAF0C0002; Sat, 6 Feb 2021 19:32:02 +0000 (UTC) In-Reply-To: <5588fb2580cf77301ab1@heytings.org> (Gregory Heytings's message of "Fri, 05 Feb 2021 09:34:25 +0000") Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@linkov.net; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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:264078 Archived-At: >>> C-x o C-x z z z C-- C-x z : nine keys pressed, control key pressed and >>> released three times >>> >>> C-x o C-= C-= C-= C-- C-= : seven keys pressed, control key pressed >>> twice and released pressed only once >> >> This needs to be compared also with the last letter typed: >> >> C-x o o o o O : six keys pressed, control key pressed once and released >> pressed once > > ... and shift key pressed and released once. True (unless an unshifted key is bound for going to the previous window). > ... and possibly pressing C-g to exit the transient keymap. True (no way to avoid this design flaw). > That solution has a number of limits: > > 1. it is not general, you have to define specific keys for each case > > 2. the keys that are bound are not self-inserting anymore, you may have to > exit the transient keymap manually with C-g > > 3. there are even cases where this is not possible to use it, for example, > how would you repeat C-x C-t? Either by repeating the last char 'C-t', or using a custom transient keymap with more keys. > 4. you cannot freely change the argument between two repetitions Why not? C-x o O should be equivalent to C-x o C-- o.