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: Prefer to split along the longest edge Date: Tue, 17 Dec 2024 09:26:57 +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="000000000000ae4c8e0629731197" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39892"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Juri Linkov To: Liu Hui Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 17 09:28:41 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 1tNSwY-000A9p-5M for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Dec 2024 09:28:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNSvd-0007qd-Qn; Tue, 17 Dec 2024 03:27:41 -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 1tNSvc-0007qT-Dx for emacs-devel@gnu.org; Tue, 17 Dec 2024 03:27:40 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNSvZ-0003jP-RH for emacs-devel@gnu.org; Tue, 17 Dec 2024 03:27:39 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-385e2880606so4602344f8f.3 for ; Tue, 17 Dec 2024 00:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734424055; x=1735028855; 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=1PVl+/nwidtp1F8G5BBVCnsPVEExyYXjqcyCbj38xM8=; b=DfeGLSSjb0viGEcPeT78cQ2fsrG/a4oN6g6tWiBwXrdQy2CEoVj7mQEycciB9nRi5f 7B4WG12+0K5B+2y8dvvEMM4o8rKTTw5OleU1d8TBMVwImaWzV/oNcx6QoufiJSqDczzg 8kRdp7aU1LDULlF2mqDezab1Zu/fku7EgweAfZ9HNJUidz7zwc24Wusoyzoe8A5MMR6y DhHOisRAevRU+uaScmehvxZetpbvsHhbVu7Fve6HzvP9sYnJ0k/Ypz1tC6jDXZQYjc0F prbhxeyp20AmtWAZUH7oS9gOVUnpzf9QgVNAH+YMSCrZfWiqy2W6dadMuZ1NwBo0TS6r TVYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734424055; x=1735028855; 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=1PVl+/nwidtp1F8G5BBVCnsPVEExyYXjqcyCbj38xM8=; b=CD/tmQY+TY587up6GiF2bjCSU7Ahu6/JKSi2DGNRaCL0nI1RFWP5DcajEAIBU2PV9M WzIg1TaRD9m0NtOOGsi48aomDf7sFIR0f0zNrwE61acF95AM5gUZNw/Cpfivu5UnC/xf OffdyrY9ZYlvQtakhrEmIZ4+9cUcLok6oiARcfChpHt32Q6+5N8A0VeSsseA41TWHMse 0FhF1sfJ67v21TXKz/rNFieUgF/3XSb0LfDnLA2IxGDLwEEu4NLUkatm57FaH7AgVn8+ P2/diTJNsjmhU881pNCTpm2N507WBsLjue1FqN64DEU8RslvnoMwe5GdE0o1SPU8S85Q BbTw== X-Gm-Message-State: AOJu0YyTQxW0xHxqOa/iYAcCZAtPNR4ao0+d9/XTMQJ9mb4P46aph11N d8GJqji5+Y3OWJlkdDRg9xdeHveFJmdGG2rSoyIEeKVFLe9oyXSI9nhhjcLqPtoT6q8R6TsSYe3 uvEzZ+v2ETj6hA6ZHa/17tS4VVIc= X-Gm-Gg: ASbGncuUAfRMlUKFRPOxaVOsgkfv70zS6spjsi10Q1coJijDYK4xT0GVcTXaR+UrWgL L1wYGmDFEISkOwRkNf2OiSOa0zLyOetyNi0Oe X-Google-Smtp-Source: AGHT+IGvABo7PJVVV51JxemQ2R6EibF8mBj33y88e3UNx2jwIZKh9iPqHwAqNhoaG+1lxn97cik6p57HpyApc3AbJAw= X-Received: by 2002:a5d:6c66:0:b0:385:e4a7:df09 with SMTP id ffacd0b85a97d-3888e0b86e7mr13657184f8f.44.1734424054875; Tue, 17 Dec 2024 00:27:34 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=nicolas.despres@gmail.com; helo=mail-wr1-x42c.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, 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:326576 Archived-At: --000000000000ae4c8e0629731197 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 17, 2024 at 2:51=E2=80=AFAM Liu Hui wrot= e: > > > =E5=9C=A8 2024/12/16 19:56, Nicolas Despr=C3=A8s =E5=86=99=E9=81=93: > > [...] So it seems unnecessary to compare the width and height. How about > adding an option, e.g. split-window-preferred-direction, and change > the condition as follows? > > if user prefers horizontal split > try to split horizontally, then try to split vertically > else > try to split vertically, then try to split horizontally > > I think the longest choice is still needed for setup with one frame on a portrait screen and another one on a landscape screen. -Nico --000000000000ae4c8e0629731197 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Dec 17, 2024 at 2:51=E2=80= =AFAM Liu Hui <liuhui1610@gmail.com> wrote:


=E5=9C=A8 2024/12/16 19:56, Nicolas Despr=C3=A8s =E5=86=99=E9=81=93:


[...]

So it seems unnecessary to compare the width and height. How about
adding an option, e.g. split-window-preferred-direction, and change
the condition as follows?

if user prefers horizontal split
=C2=A0 =C2=A0 =C2=A0try to split horizontally, then try to split vertically=
else
=C2=A0 =C2=A0 =C2=A0try to split vertically, then try to split horizontally=


I think the longest choice is still needed for setup with one f= rame on a portrait screen and another one on a landscape screen.
=

-Nico
--000000000000ae4c8e0629731197--