From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Prefer to split along the longest edge Date: Thu, 19 Dec 2024 09:06:02 +0200 Organization: LINKOV.NET Message-ID: <871py4urpp.fsf@mail.linkov.net> References: <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18623"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , nicolas.despres@gmail.com, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 19 08:20:45 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 1tOApw-0004iM-7J for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Dec 2024 08:20:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOAp3-0004SI-7R; Thu, 19 Dec 2024 02:19:49 -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 1tOAp0-0004S4-RJ for emacs-devel@gnu.org; Thu, 19 Dec 2024 02:19:47 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOAox-0001mb-P5; Thu, 19 Dec 2024 02:19:45 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 044521C0006; Thu, 19 Dec 2024 07:19:36 +0000 (UTC) In-Reply-To: <08410007-fbaf-4ae9-aac0-e6134bdc51e9@gmx.at> (martin rudalics's message of "Wed, 18 Dec 2024 18:41:19 +0100") X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.197; envelope-from=juri@linkov.net; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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:326699 Archived-At: >> 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. Maybe instead of adding a new option 'split-window-preferred-direction', another new option would be more general than 'split-window-preferred-function', and will specify a function that defines a window to split and splits it: either vertically or horizontally.