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.bugs Subject: bug#60886: 29.0.60; split-root-window-below broken for split-window-keep-point Date: Sat, 21 Jan 2023 19:57:40 +0200 Organization: LINKOV.NET Message-ID: <86v8kzg48b.fsf@mail.linkov.net> References: <86k01la7gn.fsf@mail.linkov.net> <83r0vs0z44.fsf@gnu.org> <61dc9888-cb02-5323-f86f-23bdb19c5893@gmx.at> <865yd33dkf.fsf@mail.linkov.net> <952857f0-ceca-9677-992b-9a1659130a0f@gmx.at> <83zgafyqvj.fsf@gnu.org> <0bc1444b-cb79-43e1-d363-5e40ad317fa0@gmx.at> <83pmbazvnn.fsf@gnu.org> <9703eeaf-42bf-aeb1-c03b-c3c8700aab48@gmx.at> <83a62epxo6.fsf@gnu.org> <3a9c38d8-ebf5-67d4-63de-a2d2acb127e6@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="19165"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 60886@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 21 20:43:44 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pJJmB-0004nZ-SA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Jan 2023 20:43:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJIim-0006zk-8C; Sat, 21 Jan 2023 13:36:09 -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 1pJIig-0006zY-Cg for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 13:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJIig-0007lM-2F for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 13:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJIif-0002XU-UY for bug-gnu-emacs@gnu.org; Sat, 21 Jan 2023 13:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jan 2023 18:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60886-submit@debbugs.gnu.org id=B60886.16743261379711 (code B ref 60886); Sat, 21 Jan 2023 18:36:01 +0000 Original-Received: (at 60886) by debbugs.gnu.org; 21 Jan 2023 18:35:37 +0000 Original-Received: from localhost ([127.0.0.1]:49730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJIiG-0002WZ-Tk for submit@debbugs.gnu.org; Sat, 21 Jan 2023 13:35:37 -0500 Original-Received: from [217.70.183.194] (port=36303 helo=relay2-d.mail.gandi.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJIdm-0002Op-7A for 60886@debbugs.gnu.org; Sat, 21 Jan 2023 13:35:35 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id CF05040003; Sat, 21 Jan 2023 18:30:32 +0000 (UTC) In-Reply-To: <3a9c38d8-ebf5-67d4-63de-a2d2acb127e6@gmx.at> (martin rudalics's message of "Fri, 20 Jan 2023 10:17:39 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253886 Archived-At: > Just think of how much easier it would have been, had these new > functions been coded as > > (defun split-root-window-below (&optional size) > "Split root window of selected frame in two. > The current window configuration is retained in the top window, > the lower window takes up the whole width of the frame. SIZE is > handled as in `split-window-below'. The buffer of the new window is > taken from the selected window." > (interactive "P") > (when (and size (< size 0) (< (- size) window-min-height)) > ;; `split-window' would not signal an error here. > (error "Size of new window too small")) > (split-window (frame-root-window) size 'below)) > > (defun split-root-window-right (&optional size) > "Split root window of selected frame into two side-by-side windows. > The current window configuration is retained within the left > window, and a new window is created on the right, taking up the > whole height of the frame. SIZE is treated as by > `split-window-right'. The buffer of the new window is taken from > the selected window." > (interactive "P") > (when (and size (< size 0) (< (- size) window-min-width)) > ;; `split-window' would not signal an error here. > (error "Size of new window too small")) > (split-window (frame-root-window) size 'right)) I proposed the same in bug#56767.