From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Hovav Shacham" Newsgroups: gmane.emacs.devel Subject: Re: Proposal: new default bindings for winner and windmove Date: Fri, 28 Jun 2024 14:47:01 -0500 Message-ID: <5eb90195-837c-4d8b-bd75-a5898ebafa35@app.fastmail.com> References: <7133BE83-064B-43A4-A193-61376605222C@dancol.org> <055E6E92-6971-409E-A106-7E0C64FEF856@dancol.org> <87bk3r22x5.fsf@yahoo.com> <746FE961-37C5-4387-8274-7D90908EE2D6@dancol.org> <8734p3219c.fsf@yahoo.com> <867cefeo1w.fsf@gnu.org> <8734p03e94.fsf@jeremybryant.net> <867cec9ccl.fsf@gnu.org> <86jzib96yp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=03370d92dd9b4ffcbdc4cfefd72310b5 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27638"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.11.0-alpha0-538-g1508afaa2-fm-20240616.001-g1508afaa Cc: jb@jeremybryant.net, luangruo@yahoo.com, acm@muc.de, stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Daniel Colascione" , "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 28 21:48:38 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 1sNHaG-0006yT-TJ for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Jun 2024 21:48:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNHZb-0002vo-OH; Fri, 28 Jun 2024 15:47:55 -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 1sNHZZ-0002ve-84 for emacs-devel@gnu.org; Fri, 28 Jun 2024 15:47:53 -0400 Original-Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNHZW-0006dh-DR; Fri, 28 Jun 2024 15:47:52 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.west.internal (Postfix) with ESMTP id BC65C18000E5; Fri, 28 Jun 2024 15:47:43 -0400 (EDT) Original-Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Fri, 28 Jun 2024 15:47:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hovav.net; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1719604063; x=1719690463; bh=1uOJrRMhsM YBmUoz60OkhxrjuLxgi6c3/eKQHzTZJGE=; b=m8a5lo0EV5jHhu+Vs22/f7gmgl LUzRf0nihzAENrDK8m93Yn6vIHhuWBW7b0Ayc72YgBGO4pzwrdC6dhImC3QkgyC0 tIs/eg8DUDSWKqThbtfE2GpVihlBF4BJL03eW4OgF+7E0Xnn2Lf4nv8R3ur6DgiD zWgeSuogQd3FwuKj6c8h+w6KPFeu5mmVh4b8TLctdus6dm6dcSp6h68H7S4eZQrg PgQXTrD4VqkuRN/BsOsRMt/XB6GNbjFFUcI4AmyEETayMzS7w/i+hf5uLqPeG1A0 3PSRlXaKr2so3ZWTWbuihOVhG563cx9kaYJ3QqIl2kcLY2QA1xwngrj2TJuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719604063; x=1719690463; bh=1uOJrRMhsMYBmUoz60OkhxrjuLxg i6c3/eKQHzTZJGE=; b=il3h3BUnB2xxRkHfI4WjyNvQ8tvxRN63I1uR847fjDj2 oCmHPJKWfqji1YmdrwP9OUKnLrit2gN4nO0AT5dXfMQE0OYCwgikFnVIZ8Eu7SbD 1ytXaJmgDQ5LdCuxGrVpmvLyrCReNvtvatNFOYwjP9ofjPyXlTywUxnFKXmQUMku tP5b1vDrXhtDe6BsOuhZu9u935U4Wea2XsYjQ+1Q6+qOLsZrztNwOV8r5CN2maYz +kFivM6tvsl78aEtFIvGA1bNXUV/BgIms+n13yB0iQMb/u87JInndAEtM+TLlojv hZW8I3zmR0uLV8SeOus5lStazsOGVrRTFRmArAnkPw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtdejgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesrgdtreerreertdenucfhrhhomhepfdfjohhv rghvucfuhhgrtghhrghmfdcuoehhohhvrghvsehhohhvrghvrdhnvghtqeenucggtffrrg htthgvrhhnpeehkefgudduiedvieeigeejgfdvgfdtudefvdeiieeuvdfgudduffdvteeh fffgleenucffohhmrghinhepsghithhsrghvvghrshdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhohhvrghvsehhohhvrghvrdhn vght X-ME-Proxy: Feedback-ID: i4f914495:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3CB0136A0074; Fri, 28 Jun 2024 15:47:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=64.147.123.157; envelope-from=hovav@hovav.net; helo=wfhigh6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:320833 Archived-At: --03370d92dd9b4ffcbdc4cfefd72310b5 Content-Type: text/plain On Wed, Jun 26, 2024, at 8:57 AM, Daniel Colascione wrote: > >Thanks, but how should we do that without breaking > >windmove-default-keybindings for those users who use it? > > ... by not touching windmove-default-keybindings, except perhaps to mark it obsolete? Adding bindings to the default keymap does not interfere in any way with what windmove-default-keybindings does. Y'all, I'm the original author of windmove.el; apologies for weighing in late in the discussion. The windmove functionality has been bound to shift- or alt- since the late '80s (in the BRIEF editor), and since the late '90s in Emacs, through `windmove-default-keybindings'. Would deprecating these bindings and assigning entirely new ones be a net win? In BRIEF, followed by was another binding for selecting a window by direction, and , , and followed by would resize, create, or delete a window by direction, respectively. If we think that windmove functionality needs to be in the default keymap, perhaps these bindings could be replicated? Then `windmove-default-keybindings' could become `windmove-enable-quick-keybindings' or similar. (For reference, the BRIEF bindings are described on pages 84--89 of the BRIEF 3.1 user manual, available at http://www.bitsavers.org/pdf/borland/BRIEF_for_DOS_and_OS2_Version_3.1_Users_Guide_1992.pdf) -hs. --03370d92dd9b4ffcbdc4cfefd72310b5 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Wed, Jun 26,= 2024, at 8:57 AM, Daniel Colascione wrote:

>Thanks, but how shou= ld we do that without breaking
>windmove-default-keybin= dings for those users who use it?

... by no= t touching windmove-default-keybindings, except perhaps to mark it obsol= ete? Adding bindings to the default keymap does not interfere in any way= with what windmove-default-keybindings does.

Y'all,

I'm the original aut= hor of windmove.el; apologies for weighing in late in the discussion.

The windmove functionality has been bound to = shift-<arrow> or alt-<arrow> since the late '80s (in the BRI= EF editor), and since the late '90s in Emacs, through `windmove-default-= keybindings'.  Would deprecating these bindings and assigning entir= ely new ones be a net win?

In BRIEF, <f1= > followed by <arrow> was another binding for selecting a windo= w by direction, and <f2>, <f3>, and <f4> followed by &= lt;arrow> would resize, create, or delete a window by direction, resp= ectively.  If we think that windmove functionality needs to be in t= he default keymap, perhaps these bindings could be replicated?  The= n `windmove-default-keybindings' could become `windmove-enable-quick-key= bindings' or similar.

(For reference, the B= RIEF bindings are described on pages 84--89 of the BRIEF 3.1 user manual= , available at http://www.bitsavers= .org/pdf/borland/BRIEF_for_DOS_and_OS2_Version_3.1_Users_Guide_1992.pdf<= /a>)

--03370d92dd9b4ffcbdc4cfefd72310b5--