From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Nicolas_Despr=C3=A8s?= Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Prefer to split along the longest edge Date: Tue, 17 Dec 2024 09:39:39 +0100 Message-ID: References: <87r06a3yfg.fsf@mail.linkov.net> <87zfkx2ydr.fsf@mail.linkov.net> <8734io2hac.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000eae850629733f29" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 17 09:41:20 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 1tNT8p-0001xp-ED for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Dec 2024 09:41:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNT81-0002fR-Ml; Tue, 17 Dec 2024 03:40:29 -0500 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 1tNT7z-0002f7-Fx for emacs-devel@gnu.org; Tue, 17 Dec 2024 03:40:27 -0500 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNT7t-00062J-Ji for emacs-devel@gnu.org; Tue, 17 Dec 2024 03:40:27 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso34729185e9.3 for ; Tue, 17 Dec 2024 00:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734424816; x=1735029616; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wn2PEN3+ObYxE0bidWuQYZCDgQRMSSWZMmCVkaR9UKs=; b=SpIx2NgB1UcNPLBdlaVzYIfULxJz4aLXf+QPZbdpQLG6E9k1R1Aj/3wHUcJbhKZ9uc z1Ydl51jzmQHkL0lBdAkl7SNpPg/3JtIJbmIDVYuUpq2e+SQAiAixxIbLjpXBHP+PIjh ToVhjD+cYD9olv5bvNNCN7qQr2CvnHG3G9l8a95uiXLZEcdw2jJ2BFQbGsCHToZpXkhy YS+KIuoLf0L52sJiJyvovcU6IwuThuA+huXrW6zWQ0knza8N0O4iuj/kxLujBb0BI1o2 pcb76r5o43uWdRAmQwQ+Xrwr0RqbCcZhWEAdDwpfoQ3LHLXFmQWrOO8EuMt7oS39Z2wr 3Qog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734424816; x=1735029616; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wn2PEN3+ObYxE0bidWuQYZCDgQRMSSWZMmCVkaR9UKs=; b=o2XhGqAZ3TVOkrEXEUTXEasX7e7hvilQh9lukdSRmhAJR8j5ENwgD/tIqvcpwTFixJ efh9yxsVuyUyEPwuGWDFszajN89AN6XrFognbRF9sYPlj8enWQNXbr0unmRacg0BRwle wTZljjJIgN6EpeZswKdmkpJlrGWJczH9hdYOuJakTO3afN1e6D01TJ5oOWaTtlZIFQVp ipVQI/vNtagsDCE/cOUZnQMXhkxMHucK7sYcD4ucDp3txbHchu3h8IumNeVapfbjg6iO xxQCXF/Embu8Dcrj3fREKOtCDU1lI4sa1rYeFR2NQZrfAzrbWrrVx7aUW0v6h2IV2baU TErQ== X-Forwarded-Encrypted: i=1; AJvYcCUGZvSOhCZoqjQPQsOGRtBG1XYHpEF+w4UCV9rxFqPVee2HUiXKYGeq5qBJnpPvwsA9KPXiQ2hRy51C3w==@gnu.org X-Gm-Message-State: AOJu0Yym8Ods+nIfcSyYFLdHHPqAnZRbg0ZxQok6LOtBS+qfvnFr9kct 6uLyyu9b6uRHufov/aYCNINS/aSd5f+WJYIZCCHFOPWp5v0+WQn0ZNyLxkLc9IBIOLxRjHMPGaH wRcc19IEEs4FMSwE9pNVcwHebwRaOHw== X-Gm-Gg: ASbGncu/O1AYsa2bXd7FzprgUTvWWQCU7hivnH8onkiUrdSgDxxHYNEmvvXug6PaeqP kuNJEhBDdx4GEIwTU5u0WxqC+pWQ+6qwMerVT X-Google-Smtp-Source: AGHT+IEvD8iumT+h51I2uRluKsv3HyQHC8dcsUNKRS/h9qxH4mgp2mYFshSUPsh+6DtKtyq+5bFGj+17xV0x8phu08E= X-Received: by 2002:a5d:47a6:0:b0:386:380d:2cac with SMTP id ffacd0b85a97d-3888e0ae51fmr13054225f8f.26.1734424816166; Tue, 17 Dec 2024 00:40:16 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=nicolas.despres@gmail.com; helo=mail-wm1-x32e.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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:326579 Archived-At: --0000000000000eae850629733f29 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 16, 2024 at 6:15=E2=80=AFPM Drew Adams = wrote: > > Makes sense. Then what about adding a new option that defines > > the minimal number of columns each window should have after split? > > With a name like 'split-columns-threshold'. > > (Caveat: not following this thread.) > > Just a comment that a name such as `*-threshold' doesn't > tell you whether the threshold is a lower or upper bound. > > Usually, a word such as `min' or `max' in the name is > more helpful. > > (Of course, regardless of the name, the doc string should > anyway spell things out appropriately.) > I agree. It actually brings confusion to the original conversation. In our case, more explicit names would be split-line-min and split-column-min. If people agree on that, I could make another patch defining new aliases. Cheers, -Nico --0000000000000eae850629733f29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Dec 16, 2024 at 6:15=E2=80= =AFPM Drew Adams <drew.adams@oracle.com> wrote:
> Makes sense.=C2=A0 Then what about adding a = new option that defines
> the minimal number of columns each window should have after split?
> With a name like 'split-columns-threshold'.

(Caveat: not following this thread.)

Just a comment that a name such as `*-threshold' doesn't
tell you whether the threshold is a lower or upper bound.

Usually, a word such as `min' or `max' in the name is
more helpful.

(Of course, regardless of the name, the doc string should
anyway spell things out appropriately.)

I agree. It actually bri= ngs confusion to the original conversation.

In our case, more explicit names would be split-line-min= and split-column-min.

If= people agree on that, I could make another patch defining new aliases.
=

Cheers,
-Nico

--0000000000000eae850629733f29--