From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Proposal: new default bindings for winner and windmove Date: Tue, 02 Jul 2024 09:53:15 -0400 Message-ID: <135F52E2-4ADA-4012-A624-4784E4B96F0C@dancol.org> References: <875xto7lbn.fsf@dancol.org> <86tth8c7h4.fsf@gnu.org> <865xtndijg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1293"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: luangruo@yahoo.com, stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 02 15:53:49 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 1sOdx4-000AWG-N0 for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jul 2024 15:53:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOdwm-0004LX-Ki; Tue, 02 Jul 2024 09:53:28 -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 1sOdwl-0004Ku-0w for emacs-devel@gnu.org; Tue, 02 Jul 2024 09:53:27 -0400 Original-Received: from dancol.org ([2600:3c01:e000:3d8::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOdwh-0007RS-EE; Tue, 02 Jul 2024 09:53:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: References:In-Reply-To:Subject:CC:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4MHfPcqNcrkJ6jRxN5in0vES3zBW5acCO/jlLQWwsRc=; b=e4+RwV+vX/VcP20hpdGlL+iWJW xxGjSZp67gnQVN38B40usoc3AruXk1vDruDkZiRAyqIiOuNcNi1NGf5rxkRp6YeorjqFMjBZlpIoR o0BToHsGpOWlB+2GY/J6pra97/H921ELNmXfBN6fc87HhJL8ou4xR1kekzIBZqPSSf6SOVvM3CQnb zfn3QcTUYq9CfQwV8rG/QgeB/qq9Mn3rOFYhrgXw4wM+/SDC7o/6uRtYC8cdPsEAqD20H4kiN7Ryp g6b/RdGiTFpUXFsIfYz7h3MFi+aLM0nLLi8EqRZFl/Wx4acIXbE0SnZWK3ycOvHBDXpgb9lypdJc/ W9fkeg1w==; Original-Received: from 2603-9001-4203-1ab2-05eb-444b-867a-c5cd.inf6.spectrum.com ([2603:9001:4203:1ab2:5eb:444b:867a:c5cd]:46308 helo=[IPv6:::1]) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sOdwc-0003Lv-UC; Tue, 02 Jul 2024 09:53:20 -0400 In-Reply-To: <865xtndijg.fsf@gnu.org> Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.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.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:321158 Archived-At: On July 2, 2024 9:34:27 AM EDT, Eli Zaretskii wrote: >> Date: Tue, 02 Jul 2024 08:52:54 -0400 >> From: Daniel Colascione >> CC: stefankangas@gmail=2Ecom, monnier@iro=2Eumontreal=2Eca, emacs-devel= @gnu=2Eorg >>=20 >>=20 >>=20 >> On July 2, 2024 8:18:47 AM EDT, Eli Zaretskii wrote: >> >> Cc: Stefan Kangas , Stefan Monnier >> >> , emacs-devel@gnu=2Eorg >> >> Date: Tue, 02 Jul 2024 09:02:12 +0800 >> >> From: Po Lu via "Emacs development discussions=2E" >> >>=20 >> >> Daniel Colascione writes: >> >>=20 >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [left] 'windmove-left) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [right] 'windmove-right) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [up] 'windmove-up) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [down] 'windmove-down) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [(shift left)] 'windmove-swap-states-left= ) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [(shift right)] 'windmove-swap-states-rig= ht) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [(shift up)] 'windmove-swap-states-up) >> >> > +;;;###autoload >> >> > +(define-key ctl-x-4-map [(shift down)] 'windmove-swap-states-down= ) >> >> > + >> >> > =0C>> >> >> > (provide 'windmove) >> >> > =20 >> >>=20 >> >> Disabling windmove-mode must disable these bindings as well=2E >> > >> >I tend to agree=2E >>=20 >> What use would it be to disable these bindings? > >It's cleaner, IMO: disabling a mode cleans up after the mode=2E Not an >"over my dead body" kind of issue, obviously, but still=2E It's not a mode though=2E As Stefan points out, the mode does nothing, whi= ch means it probably doesn't make a lot of sense to read too much into the = mode being there=2E