From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: Proposal: new default bindings for winner and windmove Date: Tue, 02 Jul 2024 09:31:56 -0400 Message-ID: References: <875xto7lbn.fsf@dancol.org> <86ed8ce2mh.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34861"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dancol@dancol.org, stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 02 15:33:05 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 1sOdd3-0008o7-7N for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jul 2024 15:33:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOdcb-0001YL-V0; Tue, 02 Jul 2024 09:32:39 -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 1sOdcR-0001Qk-OG for emacs-devel@gnu.org; Tue, 02 Jul 2024 09:32:27 -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 1sOdcP-00083F-C6; Tue, 02 Jul 2024 09:32:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=MWLAPDmMKTDIBmqnI4HHo1apms7qIxipq918/NyEr8k=; b=KbLKlnygcefi YiJ2m31EOhjuy032tk7CdtFnL6LFwXj3jx/113tbZVN3gJCD577/f71sjfugmgL1nO/ELv7OOy8MW L6ZBMDtSEJ1IZgNMHi2Zy0erzjVpDVgnWdo8CH8ZXIsOdDepzScEv5xh9ocO1qz1yTyPNp6BlWbc9 /CIWrUyvIXJr4AYnBOZ2cppYldyBNf9CyUicltGZ5OsFpTTHVoJDsJtNk6vuFlHjaDH+Gyfg+vW1c HaK0JxRON0Ic108TY+IEFWoorccU1DlRSL/SAG3NZx+nFV+dhHo7q+marXVj77fM8eMY48pgHdfJ0 hk57JlBNgxAKf7pRWntivw==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sOdbw-0003wX-Hf; Tue, 02 Jul 2024 09:32:12 -0400 In-Reply-To: <86ed8ce2mh.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 02 Jul 2024 09:50:38 +0300) 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:321151 Archived-At: >> Thus, I don't think I see any compelling reason not to go ahead with >> this change. I would propose that we now start discussing the specifics >> of how to go about doing that (patches, proposed alternative solutions). > > How's this? > > +@kindex C-x 4 LEFT > +@kindex C-x 4 RIGHT > +@kindex C-x 4 UP > +@kindex C-x 4 DOWN I can't believe someone might want to use such long key sequences for one of the most frequent actions. It's even longer than 'C-x o' it's supposed to improve. I think there are no better keys for switching windows than arrows with a modifier. Arrow keys with a modifier are already generally bound to movement already, and it would be weird if they switched windows... That C-x 4 .. etc are 'long' reminds me of when GNU Emacs changed many of the register based keybindings (C-x g, C-x x, C-x s and C-x j ...) to 'long' ones (C-x r ...). People got used to using those, though maybe register usage in Emacs fell out of favour, I don't know. The benefit is that C-x 5 could in theory be used to move between frames, and would match things quite nicley. Some keybindings to navigate between frame or windows seems like a very useful thing, even if they are somewhat long they would make writing keyboard macros slightly easier (for example). And it seems that C-x 4 etc are the ones that are available, and seem to be the most logical if they are to be added compared to repurposing things like M- .. which would break other peoples workflows who depend on the default bindings. Since all keybindings in the 'C-x 4' keymap are for commands that display a buffer in another window, 'C-x 4 LEFT/...' could do the same to display the buffer of the next command in the specified window.