From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Prefer to split along the longest edge Date: Wed, 18 Dec 2024 20:41:27 +0200 Message-ID: <86zfksltpk.fsf@gnu.org> References: <87r06a3yfg.fsf@mail.linkov.net> <87zfkx2ydr.fsf@mail.linkov.net> <8734io2hac.fsf@mail.linkov.net> <86pllrpn2p.fsf@gnu.org> <87ikrjfrq3.fsf@mail.linkov.net> <86jzbzphu0.fsf@gnu.org> <87ikrjcue1.fsf@mail.linkov.net> <86frmnpfoq.fsf@gnu.org> <87ikrihkgc.fsf@mail.linkov.net> <1fa88791-a5be-4897-a3fb-dbf0be5782c5@gmx.at> <86ikrio2lf.fsf@gnu.org> <89d19d67-cf76-4441-b8d6-c30e6f8118d9@gmx.at> <86ed25m653.fsf@gnu.org> <028d6693-4fee-4410-9e5c-c5a4b0418f60@gmx.at> <865xnhlym9.fsf@gnu.org> <08410007-fbaf-4ae9-aac0-e6134bdc51e9@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: nicolas.despres@gmail.com, juri@linkov.net, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 18 19:43:06 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 1tNz0i-0001kL-Vo for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Dec 2024 19:43:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNyzu-0001o6-W6; Wed, 18 Dec 2024 13:42:15 -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 1tNyzs-0001np-PU for emacs-devel@gnu.org; Wed, 18 Dec 2024 13:42:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNyzq-0006YV-B6; Wed, 18 Dec 2024 13:42:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ew0Xz28mEOdTiDpm5Zx8xHOunBfErUadv8iAmw1P5QY=; b=BKWhnqf6irJF WE2MoH9DVWBDnJsIcMqZ6qdp6N4QyYn237oBgAj4XC2xwONo6H0LzYNh8OaKYyKT0sL5QkHAPKZ3T C5GS0cyR6uOijg4ckdjabJRu47Q3/6TsRfG+Ay5xMECTtqlDOKAvJoveIsIfrOYs8T/Wfh3xleIdC aBNjsO0gh2oHHGw0sJb8m+/5RUnTMKIB96G/LzhhtVsMq6QhB5JRpOw38xlicaH6mnC+6vGr5d0bK NHf3J0OxHOaOx9tB5Qk13LVQLONMAm9ufzdSJp9s/6HSmRmSvBJi4gzOT14brYzkk4MwMdUKJU/gt ulqOQtKKW8fAnCjs2sV2Yw==; In-Reply-To: <08410007-fbaf-4ae9-aac0-e6134bdc51e9@gmx.at> (message from martin rudalics on Wed, 18 Dec 2024 18:41:19 +0100) 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:326682 Archived-At: > Date: Wed, 18 Dec 2024 18:41:19 +0100 > Cc: nicolas.despres@gmail.com, juri@linkov.net, emacs-devel@gnu.org > From: martin rudalics > > > Sorry, I lost you: what does display-buffer-pop-up-window have to do > > with the subject of this thread? I'm probably missing something. > > 'display-buffer-pop-up-window' calls 'window--try-to-split-window' which > calls 'split-window-preferred-function' whose default value is > 'split-window-sensibly' - the function whose behavior we are talking > about here. Presently, this is the only way 'split-window-sensibly' > gets called in the Emacs sources. And I'm saying my understanding of the feature request here was that each such splitting will behave as the OP asked: try to split horizontally first. The user option that is being proposed will control this behavior and allow to toggle between the current and the new behavior.