From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Proposal: new default bindings for winner and windmove Date: Fri, 28 Jun 2024 20:45:22 +0000 Message-ID: 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> <5eb90195-837c-4d8b-bd75-a5898ebafa35@app.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_SJ0PR10MB5488ABF9BA1C41E7857E81D0F3D02SJ0PR10MB5488namp_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "jb@jeremybryant.net" , "luangruo@yahoo.com" , "acm@muc.de" , "stefankangas@gmail.com" , "monnier@iro.umontreal.ca" , "emacs-devel@gnu.org" To: Hovav Shacham , Daniel Colascione , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 28 22:46: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 1sNIUY-00074c-Ua for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Jun 2024 22:46:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNITc-0007rt-R9; Fri, 28 Jun 2024 16:45:48 -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 1sNITX-0007rM-7D for emacs-devel@gnu.org; Fri, 28 Jun 2024 16:45:44 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNITP-00081B-NH; Fri, 28 Jun 2024 16:45:42 -0400 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45SHIuau002845; Fri, 28 Jun 2024 20:45:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:references:in-reply-to :content-type:mime-version; s=corp-2023-11-20; bh=l9E23O0177btV0 F0haDBedcfgW8bZSqgOb91t4PkTZg=; b=aW+bCoR9WtfCDbwL1vdD+hIPdKWi7W lxVpQaVFUcyD+sofqaSj6foqi/3JcNVa0hJsXke5AEe4Of23ydHY097e0DoWbY8G uBNiJcUQmDiYxBGleLcOKb2Vy1KnNVBknaHK2zUhPygJso3ING1Ph483iZgBlE9h t0S7eC9L9aOYX2YTbdz6k9EddLBEqkSrR9d8H87Z7c+BZyno3CB07Q7Q/R5cy6Fq nrOg+V2IaG5QGSpupo+wRFwA833RLKB6cfg6UPR4e9nSQ7E7HUNKgc2EhZMTM6aX Bfn6GPhRu5waIuK9nN+90KMhjx7nkdoqEzIjgowhUsvNFfS6RpDJRSiQ== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ywq5t92pu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Jun 2024 20:45:28 +0000 (GMT) Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 45SJicmT037057; Fri, 28 Jun 2024 20:45:27 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2044.outbound.protection.outlook.com [104.47.55.44]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ywn2cwnmp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Jun 2024 20:45:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B4uxukwv/1HQbZv70GZ4JyvRezwL7OpIyfGiS+/mn452p/7n8at7BSNEenDp/cWi63tFZDdR5zHUNpdJdl6Voj1XZ2sr6mJ59acRzMPiujBiExsF5wJFTPerptAi2KTlHQBvbv9l8mOCuW6oZuR8Y3mJb2/NASEW1RmbNm52/ZPEuDrSCX6+kGZGTg7HxcKizfg5oiWJdstLkMS6y5YG8zqfB6uCKbyxPRjtBNL91CSk7L4BKJr4JOlMi5AkavvpOYhO7uAInQEal2wnKpopHUes8YDUH+d8wI8ulSJVG4DC5rQN/SB5sWQC3IG5oyyUWO6HCDiyWxPo8BMNb1Fp2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=l9E23O0177btV0F0haDBedcfgW8bZSqgOb91t4PkTZg=; b=EjFk23xKNexE1J4HQE3D+kXjEs6kXiI7XADrf6rmYvFgY21A74H+w3L+vi3ZHtFjv+TGeFCVEX5PNsj1vcTS0BYNHLUjwbTHtqWWZC6vJ+5E816bnvm2zbPGhTLtHDz8GpEtyye81oLEscwtK3U/b8ZX2GMOPeYM904TG9IMjxcJXpw4kmWhwnG8mzA2AxoKBQIWAnXE8HpcLxx6N5raFdT1Zm+olzTUdwdHV6wqTnhxgOFLh1V71899fy1q7m0wd2B4Ix+ZsdOsI++ciBJ20kj8Qu8AS21dlEw21LJo2cjzdNZIuWY2dI1+r16Ir9G2CQOtUTH0Er4yAtWJOjJP8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l9E23O0177btV0F0haDBedcfgW8bZSqgOb91t4PkTZg=; b=Vi4cHLx+BEr8f3WedmRNLtakfTYFeZjrcDrGEZIs/r7V2VnLr0iL2k0h28aLlvtrmsqkae9JrKRzl32gNREkFLVgDdhvo0l0xk9HXtoHUK3ouHJCew2hKxnFhAo+b4hsn0tG/VLwX7PSsZzheTFMoQwfZrZmYPIqROtMWDMCuBM= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by IA1PR10MB6027.namprd10.prod.outlook.com (2603:10b6:208:389::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.32; Fri, 28 Jun 2024 20:45:23 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b75a:ef76:884a:dd27]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b75a:ef76:884a:dd27%4]) with mapi id 15.20.7719.022; Fri, 28 Jun 2024 20:45:22 +0000 Thread-Topic: [External] : Re: Proposal: new default bindings for winner and windmove Thread-Index: AQHayZPxnEslZdeveUmt94S+oDbsnrHdou6g In-Reply-To: <5eb90195-837c-4d8b-bd75-a5898ebafa35@app.fastmail.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|IA1PR10MB6027:EE_ x-ms-office365-filtering-correlation-id: 4670a575-e8fd-4311-9bdc-08dc97b33b44 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018|3613699012; x-microsoft-antispam-message-info: =?us-ascii?Q?l9siQ7lqWBRhkj1AFfRRb1JC3W76SlDr/sulHqj7J/sPORkxrbS0pDmmXjY4?= =?us-ascii?Q?NpPu+EC32sHqesqnSOaZjZJ9LLo2XeliGDjRUL7iTF4GzmN5HXyeEFMlFbnh?= =?us-ascii?Q?22XAtbVBts+RejhHffS4QFEj7+xGQVTz68wxa2H8Z9FCmJRpgGY1au32DYnG?= =?us-ascii?Q?2q5dx2I/oGP8kLoUggQ2koLHfCMkJcjEoebhmMx2XnE6FGCfh012ZvcRO+8y?= =?us-ascii?Q?GE5xJ2KfeGSqKzKbs4nQmr5ayKzfJPtl7SY0m8ZawvVUq7hlf+5iFicaTU37?= =?us-ascii?Q?lxykHURQr3CF7Pr49DBPP3LGYYDdu4XME+xRDOzulC91qlN8h0X/dGCMP2T1?= =?us-ascii?Q?NyDPloYzRnvBsoQvRTLliDg/9NpR6PVuXkmDNWDeIRUKZIBkdXDNiJFWYwK0?= =?us-ascii?Q?oUfOUYQa25Er6IWmzzTQ+JGJjkIPvv/nqw2d9w3qCPoaZK8xM7t8uW3Mu8pW?= =?us-ascii?Q?1yxknqAgiDnOxqbPpbzZSUORifZt35j+tC5SCyE63S+C3EtdziwVEJ0e/p1q?= =?us-ascii?Q?EyVlwFhzrOe/lbSqnYlIUG61f2qCCuA2cZsbYuODLustJIH4QqeDsdvTuP9p?= =?us-ascii?Q?EKxSXMsH0x3tW+yAr9QoYdM4kEfk9L3rfPaa/TNZRz42rHTVhu/ltzB9fYnM?= =?us-ascii?Q?zrrzo x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(38070700018)(3613699012); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/kbQYjR2AxCr9GlOdBZ4E2qAbXpX3vGjvm/Ptx4xKadTw7k0x6GUvPzA19GJ?= =?us-ascii?Q?jG65VZjov4/27NuKi+QHXVbzPefUsv/24sk1PLKHwPkHbdeoD4VIArR8U0nr?= =?us-ascii?Q?3tcJELuWcwBjg4308H86tlor28YT54hDtADQPntgQVllpGBTlJDZPyYmgBpv?= =?us-ascii?Q?ohhw3G+pZ6djstkPndlNZH1t0CIVE7lnSeOqDCK22VXSw/ujyEJO2ooWTpZG?= =?us-ascii?Q?Likot1yeq4fMRAYLAMatJDJxPSGFfvqZJvt7jW2+pkIE/eLofx43XtfegdFr?= =?us-ascii?Q?5NG+adygOTaBrwPjNtzRAmwSp26eFi/ZMlFU15f+ZnZZaNTwLCNu/u/t81vx?= =?us-ascii?Q?U/rEyAofem/stO9UCeawBRi0Y/yBGMTOld7DKvKUW+MArJ5FOlu+5KWyB8ui?= =?us-ascii?Q?rm8wGHVoZEXA3sayukffXEvfM/RiOB45aQbU/sBta/3fyT+Ewqqer8eLodbf?= =?us-ascii?Q?gTSy3s2I+Rq8BKqPrrLvGGpEdJttL3D0fCSd8ww0qlMo249Oc8dRqNTo82v5?= =?us-ascii?Q?8Fd/xVfcQf47gVLIXwMeV21pw+osazDAf3wU9TBG+upeCNy4grS5MEgckldg?= =?us-ascii?Q?ndvw2I7A88/23i+MNKRuLKwcrvD6g79arHBEb32VcIJ0Q7IVXJ+AebbIqrHO?= =?us-ascii?Q?O1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: FfDW++wMffYj4YybDir3jhWfDcuCCu8EpPUSulCMjAH8Xs+IngQmBT2G8Fm2X3WpgXZRsG2LrOdwcSu4YV++2tA4BsXXIQLllMKab0Fj5h9ZQKxC4S8wH+j+J3uxI9cVuJ/UphhSi5ZWpBgIBuuksW05FhR6SpuWnZz/5a/1kw4gAgbOFSdXxjw7znw6tmMx8YBFnSiNH3CMDEs6OV5UCm3dUR7Gv8JGZ2W03hoS9+W5OZCvSosaKQb3nQg73S8a0BsyJMQlBHN9yZCm6XG/zxuZ7e4jGWJlOdWsbZJ9BxzvIblin9zJfodfW3wJFlqdWUVbKEHQ1qiWRCWYiAtg5QQ31kBrQ2D0d+7NvAv6asMwJICi9Z2UbhpRvpiVX6i5KIiO+4eNF/B2QWl/pBnNkqpJ3VPMSj17YRYA22Uej9JcHmvTwIuGe4/ifmdwOlYv8urMi3C+J/SbdxReYHelZ01Xi1qKeZRnSXiZ8HYkIskUkhNJW9kJdFytnQsqZBUg8CQNPsirIM7T7/GWhgf64KBrxE5uYv36bUIz03Lpx3fd97MccqQ3qHzeWLtxbDaI2nPZ3pG+W5vnkoxm1pnsXig2Ba7FZwkvpndH4AXd7lI= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4670a575-e8fd-4311-9bdc-08dc97b33b44 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2024 20:45:22.8623 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0D4+rf8qENOYrP0+D0WcGVlm8dd6UTJR+WKGd9IP2kO7xOUiVAuweKzuatQzaGUB90plnsFny8fUotN4wYFlKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB6027 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-28_16,2024-06-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2406180000 definitions=main-2406280155 X-Proofpoint-GUID: Zf3-XL4i7D1TqAJE1uV3JQ97oVli1t3F X-Proofpoint-ORIG-GUID: Zf3-XL4i7D1TqAJE1uV3JQ97oVli1t3F Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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:320834 Archived-At: --_000_SJ0PR10MB5488ABF9BA1C41E7857E81D0F3D02SJ0PR10MB5488namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable One opinion - I don't much care what bindings you offer by default for it, provided you d= on't just enable them by default when the library is simply loaded. Instead, put them behind some clear, explicit user choice. A good way to do that is to have a user option that puts them into effect. = Another good way is to have users put them into effect by turning on a mino= r mode, i.e., give them minor-mode bindings. From: Hovav ShachamSent: Friday, June 28, 2024 12:47 PM On Wed, Jun 26, 2024, at 8:57 AM, Daniel Colascione wrote: I'm the original author of windmove.el; apologies for weighing in late in t= he discussion. The windmove functionality has been bound to shift- or alt- s= ince 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 wind= ow by direction, and , , and followed by would resize,= create, or delete a window by direction, respectively. If we think that w= indmove functionality needs to be in the default keymap, perhaps these bind= ings 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 BRI= EF 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. --_000_SJ0PR10MB5488ABF9BA1C41E7857E81D0F3D02SJ0PR10MB5488namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

One opinion -

 

I don't much care what bindings you offer by defa= ult for it, provided you don't just enable them by default when the library= is simply loaded.

 

Instead, put them behind some clear, explicit user choice.

 

A good way to do that is to have a user option that puts them into effect. Another good way is to have users= put them into effect by turning on a minor mode, i.e., give them minor-mode bindings.

 

From: Hovav ShachamSent: Frid= ay, June 28, 2024 12:47 PM

On Wed, Jun 26, 2024, at 8:57 AM, Daniel Colascione = wrote:

 

I'm the original author of windmove.el; apologies fo= r weighing in late in the discussion.

 

The windmove functionality has been bound to shift-&= lt;arrow> or alt-<arrow> 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, <f1> followed by <arrow> was a= nother binding for selecting a window by direction, and <f2>, <f3&= gt;, and <f4> followed by <arrow> would resize, create, or dele= te a window by direction, respectively.  If we think that windmove fun= ctionality needs to be in the default keymap, perhaps these bindings could be replica= ted?  Then `windmove-default-keybindings' could become `windmove-enabl= e-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://w= ww.bitsavers.org/pdf/borland/BRIEF_for_DOS_and_OS2_Version_3.1_Users_Guide_= 1992.pdf)

 

-hs.

--_000_SJ0PR10MB5488ABF9BA1C41E7857E81D0F3D02SJ0PR10MB5488namp_--