From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Fri, 05 Feb 2021 08:37:39 +0000 Message-ID: <5588fb25809fad66f986@heytings.org> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="dQG0tkTWcw" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 05 09:38:46 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 1l7wda-0004R8-3U for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 09:38:46 +0100 Original-Received: from localhost ([::1]:42952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7wdZ-0008C3-64 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 03:38:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7wce-0007kx-Vz for emacs-devel@gnu.org; Fri, 05 Feb 2021 03:37:49 -0500 Original-Received: from heytings.org ([95.142.160.155]:37512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7wcY-0005MM-JC; Fri, 05 Feb 2021 03:37:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1612514259; bh=z4i0ZzIbZBdPRXtWVR/p4SAH5bjQbIqxbwevtaY0bN0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=u63vFHgtZkqMYc2+0unf6IcWxZALrOFYg2nrmB7K0QGsFc+KvW6Z0WIeLAMHQUN+C YAExq+NBTqEjYx05PyyPL9GQHlwKvXUlqL1tmP7e3rIm0RhOwJcq0CIgVMgO9iAi0b 6RASH8LY1KLIrLrVO59YwU52YeR44yVLcLq6a80kl6f48Pe0T7ElQTK6e4nafdEWfw Bszny9E9KKuErHSGWYIK0v8NAjAzDwi9B6I9iCzJ/IIsWlWhKhrZzEg/P0xBvG30/G YLh+rOEEqg4duJmdFDijMPXUY3y+7tLFoAjqWtdicn/fKodXygBtwGUddmZyRvLKoa yF4DlF2d/wLGQ== In-Reply-To: Content-ID: <5588fb258087d1129d2f@heytings.org> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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:263951 Archived-At: --dQG0tkTWcw Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: <5588fb2580949216f924@heytings.org> >> 2. Create a unified way to repeat the last command with its argument (= =C3=A0=20 >> la "." command in Vi), by binding the existing "repeat" command to a=20 >> single key binding, for example "C-=3D". With this it also becomes=20 >> possible to change the argument between two repetitions, possibly to=20 >> something different than "opposite". No command must be changed. > > Is that different from C-x z? > > It could be another binding for C-x z. Perhaps C-=3D is moreconvenient. > It is different indeed. The OP's problem was to minimize key presses and= =20 releases to "reduce the probability of RSI". With C-=3D bound to repeat,= =20 you can change the command argument between two repetitions of a command,= =20 without typing the command again and without even releasing the control=20 key. You cannot do that with C-x z. An example: calling (other-window 1) four times followed by (other-window= =20 -1) one time requires: C-x o C-x z z z C-- C-x z : nine keys pressed, control key pressed and=20 released three times C-x o C-=3D C-=3D C-=3D C-- C-=3D : seven keys pressed, control key pressed= twice=20 and released pressed only once --dQG0tkTWcw--