From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhiwei Chen Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Mon, 25 Jan 2021 12:21:45 +0000 Message-ID: References: <2EFBBE54-62F4-4373-82D6-DC8750B648BA@kuaishou.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13918"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "condy0919@gmail.com" , emacs-devel To: "rms@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 25 13:23:44 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 1l40uF-0003WE-MZ for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Jan 2021 13:23:43 +0100 Original-Received: from localhost ([::1]:38760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l40uE-00031Z-Lu for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Jan 2021 07:23:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l40sq-00024y-Oq for emacs-devel@gnu.org; Mon, 25 Jan 2021 07:22:17 -0500 Original-Received: from smtpcn02.kuaishou.com ([103.107.216.241]:5526 helo=bjfk-gateway02.kuaishou.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l40sl-0007N0-E6; Mon, 25 Jan 2021 07:22:16 -0500 Original-Received: from bjfk-pm-mail08.kuaishou.com ([172.29.5.24]) by bjfk-gateway02.kuaishou.com with ESMTPS id 10PCLjKC058793 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Jan 2021 20:21:45 +0800 (GMT-8) (envelope-from chenzhiwei03@kuaishou.com) Content-Language: zh-CN Content-ID: <59A2F41383EE1E4AAAC5EB4899387351@kuaishou.com> DKIM-Signature: v=1; a=rsa-sha256; d=kuaishou.com; s=dkim; c=relaxed/relaxed; t=1611577305; h=from:subject:to:date:message-id; bh=L29TBu7s5zhdXi8V/5kHjEzcqJJjWN6tVk4u0bOLJtQ=; b=KbjzW3EvbnJoqIKEwOTL5/16uDSPt8M9TrqQn3e1/wnfSYQg/4G3AjxTmtHY3ZckxYF9jvwQbQt 6hfigVjduTCycFZYcDavfuUw0q3sPQs51A5pVdHWSvci11PI6BvqcJeWC6ug2evXfVZn6fV7WMCAe wF7GtDQyTknIPd+KSaU= Original-Received: from KS-B15-MAIL12.kuaishou.com (172.29.5.94) by bjfk-pm-mail08.kuaishou.com (172.29.5.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 25 Jan 2021 20:21:45 +0800 DKIM-Signature: v=1; a=rsa-sha256; d=kuaishou.com; s=dkim; c=relaxed/relaxed; t=1611577305; h=from:subject:to:date:message-id; bh=L29TBu7s5zhdXi8V/5kHjEzcqJJjWN6tVk4u0bOLJtQ=; b=KbjzW3EvbnJoqIKEwOTL5/16uDSPt8M9TrqQn3e1/wnfSYQg/4G3AjxTmtHY3ZckxYF9jvwQbQt 6hfigVjduTCycFZYcDavfuUw0q3sPQs51A5pVdHWSvci11PI6BvqcJeWC6ug2evXfVZn6fV7WMCAe wF7GtDQyTknIPd+KSaU= Original-Received: from bjfk-pm-mail15.kuaishou.com (172.29.5.43) by KS-B15-MAIL12.kuaishou.com (172.29.5.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 25 Jan 2021 20:21:45 +0800 Original-Received: from bjfk-pm-mail15.kuaishou.com ([fe80::7dae:bfab:2aec:940b]) by bjfk-pm-mail15.kuaishou.com ([fe80::7dae:bfab:2aec:940b%19]) with mapi id 15.01.1979.003; Mon, 25 Jan 2021 20:21:45 +0800 Thread-Topic: POLL: make C-x o transient Thread-Index: AQHW8hfZRIt79qArEkuxXRLa6M3kYKo32GQd///mmQA= In-Reply-To: Accept-Language: zh-CN, en-US x-originating-ip: [172.28.1.31] X-MAIL: bjfk-gateway02.kuaishou.com 10PCLjKC058793 Received-SPF: pass client-ip=103.107.216.241; envelope-from=chenzhiwei03@kuaishou.com; helo=bjfk-gateway02.kuaishou.com 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_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:263382 Archived-At: > On Jan 25, 2021, at 1:52 PM, Richard Stallman wrote: >=20 > [[[ 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. ]]] >=20 >> What benefits from this change: >> 1. Fewer keystrokes for multi windows navigation >> 2. Reduce the probability of RSI >> 3. Able to navigate windows backwards >=20 > Would you please spell out the behavior of your proposed new command? > What would the change be for a user? Presume `other-window' navigates clockwise, and current focus is on window = 1. ,-----.-----. | [1] | 2 | |--- -+-----| | 4 | 3 | '-----.-----' 3/4 windows in Emacs are common in HiDPI users. You have to press {C-x o} twice to go to window 3. Meanwhile, you have to release the Control key to avoid the invocation of `delete-blank-lines' whi= ch is bound to {C-x C-o} by default. It's painful for your little finger without = an external keyboard. What will happen if we make {C-x o} bind to a transient map? {C-x o}, forge= t the Control key and press "o" twice. It's easier to navigate to window 3 when compared with the previous one. An analogue is `windmove-left' which is bou= nd to {S-} by default. In practice, we press {S-} without releasing o= f Shift key since it's convenient for the next movement. The same for {C-x o}= but "the Shift key" is pressed implicitly when we enter transient state Bonus: we can bind "O" to a counterclockwise `other-window' function. -- Zhiwei Chen