From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Proposal: new default bindings for winner and windmove Date: Tue, 02 Jul 2024 14:57:31 +0300 Message-ID: <86y16kc8gk.fsf@gnu.org> References: <875xto7lbn.fsf@dancol.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20384"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 02 13:58:47 2024 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 1sOc9n-000568-Ho for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jul 2024 13:58:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOc8r-0007c6-Sl; Tue, 02 Jul 2024 07:57:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOc8k-0007bX-IV for emacs-devel@gnu.org; Tue, 02 Jul 2024 07:57:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOc8h-0004fU-MY; Tue, 02 Jul 2024 07:57:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZKhat0s4R24fLV7QxAu4oyIVh69fZLCPhHdfq/Cb+3Q=; b=Idx8zZGP9m+P JuoQYSwc+1G7zGDnOHrjdPhYz3OUzhwL1em7NrftBZ8gf8rpuRTNADlORbNaUdku0uL9MzX8B7Bq1 RMaf46S3iawshFLNpbL716ap+IW+i5SkhYPHAqMoYrLWn5ofwRvTpG5fKrrvC7g2tpMKTduJIqLdq RblUhHxN0/K2XJoDHENYC6ZBWgMRhqGpnH4uX2rfRfKatJF8sIeaCT2uYYwQ5aOfdeJaTZMSVon/j abhHIZKenmejMFdbWYTYGRqc0H1+L8vuLbFFsO8mVQT4cacFrD90jrlGrs9Dnc3VK/MKiztqC7VsV 4xEZGLQzvsDfzQbNL6V/Eg==; In-Reply-To: <875xto7lbn.fsf@dancol.org> (message from Daniel Colascione on Mon, 01 Jul 2024 19:18:36 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321132 Archived-At: > From: Daniel Colascione > Cc: Stefan Monnier , emacs-devel@gnu.org > Date: Mon, 01 Jul 2024 19:18:36 -0400 > > +Using the keyboard, you can switch windows directionally by typing > +@kbd{C-x 4} followed by an arrow key. Emacs determines the direction of > +movement using the geometry of windows on the screen rather than history > +of recently-selected windows, so these commands may often by less > +surprising than @kbd{C-x o} above. ^^ Did you mean "be"? > +@kindex C-x 4 S-LEFT > +@kindex C-x 4 S-RIGHT > +@kindex C-x 4 S-UP > +@kindex C-x 4 S-DOWN > + > +These commands are like the other directional movement commands, except > +that Emacs, instead of moving point to the window in the desired > +direction, moves the whole buffer state, as if taking the current buffer > +and moving it to the desired window. This description needs to be clarified. Something like (I hope I understand the full effect of the command): These commands switch to a window in the direction of the arrow, like @kbd{C-x 4} followed by an arrow key, but they also move the current buffer to be displayed in that window. (The buffer which was displayed in that window will be now displayed in the previously-selected window, i.e. the two buffers swap their windows.) > --- a/etc/tutorials/TUTORIAL > +++ b/etc/tutorials/TUTORIAL > @@ -907,6 +907,11 @@ cursor which blinks when you are not typing. The other windows have > their own cursor positions; if you are running Emacs in a graphical > display, those cursors are drawn as unblinking hollow boxes. > > +You can also use arrow keys prefixed by C-x 4 to move > +between windows directionally. > + > +>> Type C-x 4 to move to the window above the current one. AFAICT, if the user does exactly what the tutorial says, he/she will be in the upper window at this point, so "C-x 4 " will signal an error. Perhaps the text should be modified to cater to both situations, because it is unknown how many times the user will type "C-x o".