From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Tue, 02 Feb 2021 12:44:51 -0700 Message-ID: <87y2g645l8.fsf@melete.silentflame.com> References: <2EFBBE54-62F4-4373-82D6-DC8750B648BA@kuaishou.com> <8735yhpou7.fsf@iki.fi> <87r1lz1zfg.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36996"; mail-complaints-to="usenet@ciao.gmane.io" Cc: condy , Zhiwei Chen , emacs-devel@gnu.org To: Juri Linkov , Teemu Likonen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 02 20:44:58 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 1l71bc-0009SR-4s for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Feb 2021 20:44:56 +0100 Original-Received: from localhost ([::1]:59996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l71bb-0006jn-5g for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Feb 2021 14:44:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l71ap-0006If-Ln for emacs-devel@gnu.org; Tue, 02 Feb 2021 14:44:07 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l71an-0006nw-MV for emacs-devel@gnu.org; Tue, 02 Feb 2021 14:44:07 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E9DF65C0322; Tue, 2 Feb 2021 14:44:04 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 02 Feb 2021 14:44:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=54H5ywd8wkXMBwzc4MgiEO+jNk SytcVv0NyenViSJv8=; b=o4zc9RoFZ/KRyz+7+oSkMEuANSKHOJ9MqKbVvjShEh KXgqAqdZE4o/TtKftYQzb9oJenSq0b5dVQHvt/C19wlDKu0X4TjipvXkJxitV0KY NTi86YecBQ9kWA81gI+Z1DpwaGM3oCol1STKk7/gItp0ueeXDXs/owXJl/hO4QJm +HqSD+b8vlYAqjesEyFA8YkOVQKzjBzFCCpIRGG8tuNCxDFummtZ2rnM/ORD0f7V yUQeYCc2LbW41U6DAHfSsBxwW5PRGH0N+22kTst0OYGUKR9Q4jbHoAC0C6RTEgtT 05gX/1ai5wFPXRE1CygCNpthfhg4zFBmTL+RRt2dDBUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=54H5yw d8wkXMBwzc4MgiEO+jNkSytcVv0NyenViSJv8=; b=YZJ0HSsPnyfnDDJpBDw/OK ao6pOkqNvkvaDNmMsBXbyqbSsIGrIEl9SrJvN3ThvFyKvYc1/iqKFlh0jRhzkGPt huvzaonz/QllTNb5+57fr0wgigWJRxr/y9HdvztL8XALszoh3fIVO3Ovw8SKBdp8 lcbOzjXoccYzkQK9V8+76INzCiFh1atZB5AvV6w8LouBWthNBfyJbAZMg9fgBoGK 6OpYcXH5oIS8SGYwoneZbHbfHpPbkDOpfJCuAViw2SnupulpQNcL04wl3GWTXeTy r9WRnQEMLLOk6LCiR83GD/5Locen8PnWob9kd3gwbvoS7xKE+BHRdsog+3Jevokg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedtgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeegtddvheegfffhffdvfeefhffgjefflefhteevffffkeetgfdt jedtiedvtdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: In-Reply-To: <87r1lz1zfg.fsf@mail.linkov.net> Received-SPF: pass client-ip=66.111.4.29; envelope-from=spwhitton@spwhitton.name; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:263747 Archived-At: Hello, On Mon 01 Feb 2021 at 07:21PM +02, Juri Linkov wrote: >> I would really like to have "C-x o o o o" feature to cycle through >> frame's windows. I think one cycling direction is enough because frames >> don't usually have large number of windows. On the other hand even "C-x >> o o" is much nicer than "C-x o C-x o". > > Repeating the last character is the most convenient way to repeat the command, > indeed. No other key combination would be equally easy to type. For example, > when there is a need to navigate next-error locations with 'M-g n M-g n ...' > changing the modifier key in 'M-g n C-=' won't do it better than just > 'M-g n n n ...' > > But since typing a self-inserting key is ambiguous, and sometimes requires > typing another key to break the key sequence to insert the character, > this means that such feature should be optional. > > In this case it's easy to implement it as a minor mode that uses hooks, > e.g. last-char-repeatable-mode added to repeat.el. > > This could be like delete-selection-mode that by default > puts a special property on symbols of affected commands. I think this is the best way to implement this. People who don't want to accept getting into transient states where not every self-insert key is self-inserting can turn the mode off entirely (and maybe bind 'repeat to C-z or something, which is what I do), and people who haven't had problems with that can turn it on once and have it work all over. -- Sean Whitton