From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 09:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24193@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147073409611566 (code B ref -1); Tue, 09 Aug 2016 09:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Aug 2016 09:14:56 +0000 Received: from localhost ([127.0.0.1]:60652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX37f-00030U-SP for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX37e-00030H-Jw for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX37Y-0007y9-Fe for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX37X-0007xx-Ae for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX37V-0004W4-6P for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2016 05:14:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX37Q-0007xH-23 for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2016 05:14:43 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:43010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX37N-0007tU-Jf for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2016 05:14:39 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6AA5620388 for ; Tue, 9 Aug 2016 05:14:27 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Tue, 09 Aug 2016 05:14:27 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=/OB O9NduaSKwV44wwPFvijWLcCw=; b=B+NG9Y/H6JbiaI/LECH37MXmbbG8gIMtWgn Ls25mTeF5Q/0Me1KVT2h6GsgyrhXK1zVzCnDTJCr0msNO9Ak0oozJ5L84BJRaho4 FxlM0zexYkfr6/D2x/WaOvRF/zqXQC7wEo2VYFD3jpugFh6fFxCvisre8/SW5bmL CXAx/MpQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=/OBO9NduaSKwV44wwPFvijWLcCw=; b=rJijA ailglCJjg9BzEXBgWHtMZDJPrkgASPy8lHBkfCL72bY9pkbNLKnxQ1ChEmNEDcHR TpQ95ijMxA9HSHuZDIhUnLiwfzPhR6G8cwtAeiM803X1dp1kCTBLCbK5cGVpZLm7 ISleO1MmACeHODQOZ/0CrDc9x9w2roSbpm/pcw= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3BC6F6A5F6; Tue, 9 Aug 2016 05:14:27 -0400 (EDT) Message-Id: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> X-Sasl-Enc: CmZJFx2ESPLW2LyJaQgojCuQ3Bv6wUgTSQtuFCfGT7RS 1470734067 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-b9085e99 Date: Tue, 09 Aug 2016 19:14:27 +1000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) There appears to be a change to `window-min-size' that gives an erroneously large minimum horizontal window size when the combined size of window margins exceed that of the body text, e.g. in a frame 80 columns wide, with left margin 20 columns and right margin 20 columns, would return a minimum horizontal size of 42, when body text would be 40. This causes `split-window-right' to fail. To reproduce: 1. emacs -Q 2. in a frame 80 columns wide... 3. M-: (set-window-margins nil 20 20) 4. C-x 3 => "Window # too small for splitting (2)" 5. M-: (window-min-size nil t) => 42 Expected results: Window should split horizontally. Minimum window width should not be dictated by margin width. Actual results: Margin width dictates minimum window width and prevents window splitting. Configuration: GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G31)) of 2016-08-09 MacBook Pro (Retina, 15-inch, Mid 2014) 2.2 GHz Intel Core i7 16 GB 1600 MHz DDR3 Intel Iris Pro 1536 MB From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 09:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin , 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147073616715035 (code B ref 24193); Tue, 09 Aug 2016 09:50:01 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 09:49:27 +0000 Received: from localhost ([127.0.0.1]:60689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX3f5-0003uQ-KN for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:49:27 -0400 Received: from mout.gmx.net ([212.227.17.20]:61462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX3f4-0003uE-9V for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 05:49:26 -0400 Received: from [192.168.1.100] ([212.95.7.105]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MEtba-1bQzv433ww-00G01D; Tue, 09 Aug 2016 11:49:16 +0200 Message-ID: <57A9A714.4010600@gmx.at> Date: Tue, 09 Aug 2016 11:49:08 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> In-Reply-To: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ycpPai1yscZPFXLbLgLIoghB3uLnXc7Zl0aSZex2a1ig7fEKEjr B4EmIjriUU92KkomzEX7VmRJHuIB9OXAeNxlwBJKK+ANyYX8axtqFdTmky5TVNVeFTaRRc8 nxI8/oVGn/YtyldiDv9oivV+/uM0GLBEgcIPYKhN62qFdCEos32ZBpLHyDM47Z49l3dQTeh j+TC9TF1ZQDexzlGBka3g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Sfab3ET1bLY=:gV2kt+pEaFnBxwOKuUv9sJ 9r39cRq16N+4KjLncuVNB3kwZNBGi/ydfNrx++u7fdu/WWsE/WwO5TCqBRDC2tIXNPxRaL6mO IMWfHvbnZbjTjTSnXhDUhNCa41zhtxB4LxTtjBygkt3m/TbQGDR3Nlxpp/kqvDkrQPJp8J55O nJAKW17+MYTU9YQOUVxAXZByblTDpoRxAIv4/vMJ6hzI3I0Asapb7l5AuW9OwseaCteHDO8CI fL6AASFUf0fKqz4QWo88vQVG1I3OvNkQQzzs5Doli32X0azx9HoP0NlF3Hhdq45MEooQXrgiy k9gayBvajjjxLF08NbwFJaVG8RwFonDDzNKWO7THvgD7oe5RI99AlasSAW+5Yb7GlbhG+LQXy pYyuSuuQeHUA3aQLaUF++T5mek0XgM3LF3tbE7GZDYSZFHkyyUwjDyLBv2mnf69rh1g42gei7 a6yJg/YmA4leSf7yFDEiamGPLcHK9XoIiTl0m2PsxX0zzKhGKLDXR+UiWkNq5w2LyB5vJG/ov pJpkKOkzN/E/Suy8S7GHO1tvwzXsy3fO3usrzgAWC0MArBbRHYGMna4dL0SxlJxbrLwcJqg7v 5T5f0VklIL5ZvnpiHvHjdEbWW12y5+3BClrKEZ93FwqhJ2lVG+kEUNKpSTidgp1XLMsHGS6Kf kmEEtb49cCtIs7iuwwX2lFGF8cU0jx9UE9e5jOsPPNNLN+0QJlpaagDaafe0hSDu0/IFUS4yj 6mxsw4E3e97U9bECw/sZ3F19IBbZHyQnMKsRI9aLzvIUuyYUudSItEJ8pMA6Q2v9jGfnxQH30 MBEiJ0/pjxUGhMT1unKSMPJmuL5TQ== X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) > 1. emacs -Q > 2. in a frame 80 columns wide... > 3. M-: (set-window-margins nil 20 20) > 4. C-x 3 > => "Window # too small for splitting (2)" > 5. M-: (window-min-size nil t) > => 42 > > Expected results: > > Window should split horizontally. Minimum window width should not be dictated by margin width. > > Actual results: > > Margin width dictates minimum window width and prevents window splitting. Correct. The Elisp manual states -- Function: window-min-size &optional window horizontal ignore pixelwise This function returns the minimum size of WINDOW. WINDOW must be a valid window and defaults to the selected one. The optional argument HORIZONTAL non-`nil' means to return the minimum number of columns of WINDOW; otherwise return the minimum number of WINDOW's lines. The return value makes sure that all components of WINDOW remain fully visible if WINDOW's size were actually set to it. With HORIZONTAL `nil' it includes the mode and header line, the horizontal scroll bar and the bottom divider, if present. With HORIZONTAL non-`nil' it includes the margins and fringes, the vertical scroll bar and the right divider, if present. If you want to make a smaller window you have to explicitly specify its size: (defun split-window-right-ignore (&optional size) (interactive) (split-window-right (or size (/ (window-total-width) 2)))) (define-key ctl-x-map "3" 'split-window-right-ignore) martin From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 10:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147073692216272 (code B ref 24193); Tue, 09 Aug 2016 10:03:01 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 10:02:02 +0000 Received: from localhost ([127.0.0.1]:60701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX3rF-0004EO-Vq for submit@debbugs.gnu.org; Tue, 09 Aug 2016 06:02:02 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX3rE-0004Dz-Ex for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 06:02:00 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id F141F202A9; Tue, 9 Aug 2016 06:01:59 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Tue, 09 Aug 2016 06:01:59 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=0b5Kcn4/P+yXwMh9qGfwn+YFVVw =; b=sPHkWJ0BBVvjq92xMmQFBne2J4gByNDHEGbxJE3QYb8gRvM355KGvZaBcCY aJLOJxyCiHTGZuuQlAp7aB47UjhyilLOl6Rf107Ji9Mv1f4wX2Mr7rqrFRLK4zD+ duK/wlOJnwGkSWvt1AEahnOC7C+Ma/qVDDCFdu7LqEgXHMW8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=0b5Kcn4/P+yXwMh 9qGfwn+YFVVw=; b=NeHUMqQ+u8X1laJy/oVaHdpwWrz1VbPdW4v8SdMJ3gif8eH GczoRuZXONAy224GKwICaombKxxtB/YnDJI/gVuhX+lMuxxatRU8cU/Tt2vXzEjK y67fKeiyJBojQE69wnVpkYfqAoug5yvZ44HOFtBUnZR+Cwa+oD2XjbuyaiOg= Received: by mailuser.nyi.internal (Postfix, from userid 99) id C496D6A5F6; Tue, 9 Aug 2016 06:01:59 -0400 (EDT) Message-Id: <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> X-Sasl-Enc: xjkwBTSTH+R9NosQu4TRcNKaBE9RQXlCcf+kx8P1AIM9 1470736919 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-b9085e99 In-Reply-To: <57A9A714.4010600@gmx.at> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> Date: Tue, 09 Aug 2016 20:01:59 +1000 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics on Tue, 09 Aug 2016 11:49 +0200: > Correct. The Elisp manual states > > [...] > > If you want to make a smaller window you have to explicitly specify > its size: > > (defun split-window-right-ignore (&optional size) (interactive) (split-window- > right (or size (/ (window-total-width) 2)))) > > (define-key ctl-x-map "3" 'split-window-right-ignore) The bug is not necessarily with `window-min-size' rather with the on- flow effect it has on C-x 3 `split-window-right', which needs to work reliably for users without resorting to writing elisp. This is already having real-life negative effects. See https://github.com/rnkn/olivetti/issues/12 From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147073772017455 (code B ref 24193); Tue, 09 Aug 2016 10:16:02 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 10:15:20 +0000 Received: from localhost ([127.0.0.1]:60714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX447-0004XT-PC for submit@debbugs.gnu.org; Tue, 09 Aug 2016 06:15:19 -0400 Received: from mout.gmx.net ([212.227.17.22]:64046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX446-0004XH-19 for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 06:15:18 -0400 Received: from [192.168.1.100] ([212.95.7.105]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LcFTN-1apiQ41Ssf-00jaYE; Tue, 09 Aug 2016 12:15:09 +0200 Message-ID: <57A9AD24.6090303@gmx.at> Date: Tue, 09 Aug 2016 12:15:00 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> In-Reply-To: <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:PIdXKZ9x3YkUl7LcBHba751K/F9Oe1o6BpJSeoBn4RBSP136WvV EE2a2IK77UR3BWuT+2TXJD44Hfg9E13KhuhmoE5+DLHANA8zDjw32iIUZk9mTiJ4hyXNgbo cYyl6D94kotVNKeBly2LM1a19ZgVycEU3jJaIlyYSEdEKG0KlDxbi72/DFJW7WmoJRT0EKS VPYGtZ7thLws4WLb5g1JQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Cd9G0nBpkBU=:dMqN0D7II8nnKmcpQGytil +NYLsmuIxOhgUlD0VVAOLbJiYGTnDPNUZTb4ce94IwWEFwZHMjbYe2XCkgYGonUrKp/m3IdQ0 cFJLQDbQOsC6zvmWbDr5XUVBDWSaMKov6PMNoBeWvdKs1uKf8UIFAPQwnDov0QCUXEKfnZT8e DjMmMCLHYCDL7Zpv+ygCq4VCzdPU3PASnrBLe5SUrNJeAuRWtYqfveg9s1zGOaclp6wjC4aTd 7PTiRqU1MVQ2AcUVnhhG/817r5zFizIJhGPNEsHbw19isSKJSpE8z019WVxeW6ZkgFUtwNWbx nBcUePhzSNiZbCYgtxGYACV9EZ1Nigfh47F1Qv9Snv8fYrV7gP058OQ6/dtNZGMNy+Gam/8Yn 6/DBDReu/RXMCs7OkGqjwN8D4gLAyd1Vb9sYR5DWW3eBkiZH/OnjA3RqSO16to0I4qKP9YBse 0bvUgYSmHT/zCGmL2ab5azJleb6KwQBOC9OO9a49ltFsfZeR5Jvn7JosachRdwPZfuU7MnwHq W6VOjt1ZWFrhRLCs5iGX2sAQuj4MYdGFgOghgsOHCozE2MERXY/LdePK8tqIx6wRkV3MIsk5L 0jpicQD/6jooUiKsV9u0dfFEVoCMns6d6ZAD25Fii2HGV6z2k0ulXqUmcL2REle8fWWhCd/aC dw3Fv6ZldxquLipGjxIGNRJkMlNaYvIifS64vLVMeHWS/Om2cUpFLJ3ZkieRPsXzoGvIeTsQf xx9PU6XX/mib+sDDNelfYGVWlVbIXS5vW0aXBeHOpSMxKD5IAX7wCMRJBld88xvypYlS4uVVE Xu3LvDYLzYrlEUXGqipk9QC4zzm7Q== X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) > The bug is not necessarily with `window-min-size' rather with the on- > flow effect it has on C-x 3 `split-window-right', which needs to work > reliably for users without resorting to writing elisp. I share your opinion that "C-x 3 needs to work reliably for users without resorting to writing elisp". > This is already having real-life negative effects. See > https://github.com/rnkn/olivetti/issues/12 There you say: Someone seems to have made a very poor design decision in changing the way window-min-size works. Now with emacs -Q evaluate the following forms (defun split-window-right-ignore (&optional size) (interactive) (split-window-right (or size (/ (window-total-width) 2)))) (define-key ctl-x-map "3" 'split-window-right-ignore) (set-window-margins nil 20 20) do C-x 3 and look at the resulting windows. That's what I would call a "poor design decision". martin From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 10:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147073903619654 (code B ref 24193); Tue, 09 Aug 2016 10:38:01 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 10:37:16 +0000 Received: from localhost ([127.0.0.1]:60722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX4PM-00056v-6R for submit@debbugs.gnu.org; Tue, 09 Aug 2016 06:37:16 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX4PJ-00056n-J3 for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 06:37:14 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 68B0520568; Tue, 9 Aug 2016 06:37:13 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Tue, 09 Aug 2016 06:37:13 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=hSSYuGeK3hfGmpqDIhG6jCXq0Oc =; b=LBQtsRWMMPinkAxzAPKoevoO7YLJ7zybTkF+Lb7Wr/fD9ETn+/2te0cMH+h 0u5pDhL1mIHamTeIrfyERrr2Jy8RLFhVfr2/Au9MoEzcUZvIEbaVrBB5gNRG0c/9 1jDm3xhwRdPqvSSSkM+NRY5Bibt1OpIabC7ejt5TsW9f2Deo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=hSSYuGeK3hfGmpq DIhG6jCXq0Oc=; b=CpNYMvjHsHiPacAynK87cPasuIkLHZKOYceGiDwE5sUP64y v8HAqgZI4coagqoOHqVI4ZD5vQHF2rLbC2pj5iaMuSXlo9/mA4r/GQkTPR8qX3Pd fd1rq0/PYBFsOR3MntCWAc+5qZ7mmCkJZMmmunEs6UbPhxIWw6YjFW9hF1tw= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3C8856A5F6; Tue, 9 Aug 2016 06:37:13 -0400 (EDT) Message-Id: <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> X-Sasl-Enc: Aq/e1ApzdxnE1d7d3SjqAVEaTbmsQTVKSdcm6ergTXRW 1470739033 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-b9085e99 Date: Tue, 09 Aug 2016 20:37:13 +1000 In-Reply-To: <57A9AD24.6090303@gmx.at> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics on Tue, 09 Aug 2016 12:15 +0200: > I share your opinion that "C-x 3 needs to work reliably for users > without resorting to writing elisp". Excellent. > There you say: > > Someone seems to have made a very poor design > decision in changing the way window-min-size works. > > Now with emacs -Q evaluate the following forms > > (defun split-window-right-ignore (&optional size) > (interactive) > (split-window-right (or size (/ (window-total-width) 2)))) > > (define-key ctl-x-map "3" 'split-window-right-ignore) > > (set-window-margins nil 20 20) > > do C-x 3 and look at the resulting windows. That's what I would call a > "poor design decision". https://gfycat.com/ZestyBeautifulEmeraldtreeskink How about we maybe focus instead on solving this? From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14707546272590 (code B ref 24193); Tue, 09 Aug 2016 14:58:02 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 14:57:07 +0000 Received: from localhost ([127.0.0.1]:33260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8Sp-0000fi-Hp for submit@debbugs.gnu.org; Tue, 09 Aug 2016 10:57:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8Sn-0000fE-4h for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 10:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX8Se-000470-5f for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 10:57:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX8Se-00046w-2K; Tue, 09 Aug 2016 10:56:56 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1752 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bX8Sd-00056W-5l; Tue, 09 Aug 2016 10:56:55 -0400 Date: Tue, 09 Aug 2016 17:56:42 +0300 Message-Id: <831t1yhtxx.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> (message from Paul Rankin on Tue, 09 Aug 2016 19:14:27 +1000) References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) > From: Paul Rankin > Date: Tue, 09 Aug 2016 19:14:27 +1000 > > There appears to be a change to `window-min-size' that gives an erroneously large minimum horizontal window size when the combined size of window margins exceed that of the body text, e.g. in a frame 80 columns wide, with left margin 20 columns and right margin 20 columns, would return a minimum horizontal size of 42, when body text would be 40. This causes `split-window-right' to fail. > > To reproduce: > > 1. emacs -Q > 2. in a frame 80 columns wide... > 3. M-: (set-window-margins nil 20 20) > 4. C-x 3 > => "Window # too small for splitting (2)" > 5. M-: (window-min-size nil t) > => 42 > > Expected results: > > Window should split horizontally. Minimum window width should not be dictated by margin width. > > Actual results: > > Margin width dictates minimum window width and prevents window splitting. I don't think I understand what exactly you expected to happen. In "emacs -Q" with no margins, "C-x 3" produces 2 windows: one that is 38-column wide, the other 37-column wide. Since you requested 2 20-column margins, they alone need 40 columns. How can Emacs produce a window with such margins out of 38 columns it has at its disposal? That isn't enough even for the margins, let alone the text area. In such a situation, I think refusing to split is a reasonable response: the user asked for something that is not doable. What alternative behavior did you expect? Thanks. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org, rudalics@gmx.at Reply-To: Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14707546712645 (code B ref 24193); Tue, 09 Aug 2016 14:58:02 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 14:57:51 +0000 Received: from localhost ([127.0.0.1]:33263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8TW-0000ga-Rh for submit@debbugs.gnu.org; Tue, 09 Aug 2016 10:57:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8TV-0000gP-Az for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 10:57:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX8TM-0004KX-EN for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 10:57:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX8TM-0004KT-BR; Tue, 09 Aug 2016 10:57:40 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1753 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bX8TK-0006Hg-Hv; Tue, 09 Aug 2016 10:57:39 -0400 Date: Tue, 09 Aug 2016 17:57:22 +0300 Message-Id: <83ziomgfcd.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> (message from Paul Rankin on Tue, 09 Aug 2016 20:37:13 +1000) References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) > From: Paul Rankin > Date: Tue, 09 Aug 2016 20:37:13 +1000 > Cc: 24193@debbugs.gnu.org > > How about we maybe focus instead on solving this? If you have ideas for how to solve this, please tell. Thanks. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24193@debbugs.gnu.org, rudalics@gmx.at Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14707559144487 (code B ref 24193); Tue, 09 Aug 2016 15:19:01 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 15:18:34 +0000 Received: from localhost ([127.0.0.1]:33279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8na-0001AJ-Gv for submit@debbugs.gnu.org; Tue, 09 Aug 2016 11:18:34 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX8nZ-0001AC-Er for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 11:18:34 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1BA0D20508; Tue, 9 Aug 2016 11:18:33 -0400 (EDT) Received: from web5 ([10.202.2.215]) by compute7.internal (MEProxy); Tue, 09 Aug 2016 11:18:33 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=ofe2r3pST8vCuTdJ+XNyqeUO770 =; b=wyaZ1tAS4YSjrlKERLDvSC81zu1vcOLpNRqkGIHAmFVrvsIqiTeGJ9+ryEr 3BCw1G1QQkwwKo9f4K0iD5FyPEZgU++8BGo5c2reqK9XK7QEx+CGHOvsVBpRnDJR 5jqC+9/6xotm2VxQcZ+/whAsG8uAItYMHHDWIT4fea0wJjzQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ofe2r3pST8vCuTd J+XNyqeUO770=; b=ghKZoS7FSnpHbTAAaT3PRIIdJ0v9rVwHN9dBMF8JgonTEaZ +sKAkymz/9dSlHKbvE2RTWJVFsFLFZ05Qbc8KWMzkeMfEnYmyzgnt+Xbv/pfKC97 xwogL7XWG+1VRBz5UZFCUs4+kACJ7Vppi1+l7dhaNdIY+TiBpJfJRvnmrjss= Received: by mailuser.nyi.internal (Postfix, from userid 99) id D940A97525; Tue, 9 Aug 2016 11:18:32 -0400 (EDT) Message-Id: <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> X-Sasl-Enc: L3hxK5e63Vbjvtp+tQpPI/is/7VTdshSQJvNfQT2uH3N 1470755912 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-b9085e99 Date: Wed, 10 Aug 2016 01:18:32 +1000 In-Reply-To: <83ziomgfcd.fsf@gnu.org> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii on Tue, 09 Aug 2016 17:56 +0300: > I don't think I understand what exactly you expected to happen. In > "emacs -Q" with no margins, "C-x 3" produces 2 windows: one that is > 38-column wide, the other 37-column wide. Since you requested 2 20- > column margins, they alone need 40 columns. How can Emacs produce a > window with such margins out of 38 columns it has at its disposal? > That isn't enough even for the margins, let alone the text area. On the one hand, splitting an 80 column wide window naturally halves the window width, and as such the minimum margin width should also be halved, so window-min-size is not calculating a logical minimum size. On the other hand, I kinda just wanna say whatever 24.5 was, because it worked perfectly there and now it's broken. It's hard to see that as anything but a regression. > In such a situation, I think refusing to split is a reasonable > response: the user asked for something that is not doable. What > alternative behavior did you expect? No this is nuts. To go from perfectly working behaviour in Emacs 24.5 to a refusal to function and an ambiguous error message is not what any user should expect. "Window # too small for splitting (2)" implies that the window is 2 columns wide, which is confusing, but the 2 is actually just the code author's numbering of error messages. Again, not what the user expects. Eli Zaretskii on Tue, 09 Aug 2016 17:57 +0300: > If you have ideas for how to solve this, please tell. The gfycat.com link shows the behaviour in 24.5, which works perfectly. I'd urge a rollback to the relevant 24.5 code here to prevent this bug going into the 25.1 release. I understand Emacs is very code-centric, but many people use it also for prose writing, and there are several prose packages that set the window margins in this same way... olivetti, writeroom-mode, darkroom- mode, visual-fill-column... I haven't tested these all but predict a few related bugs... From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 15:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org, rudalics@gmx.at Reply-To: Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14707580318432 (code B ref 24193); Tue, 09 Aug 2016 15:54:01 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 15:53:51 +0000 Received: from localhost ([127.0.0.1]:33288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX9Ld-0002Bq-EJ for submit@debbugs.gnu.org; Tue, 09 Aug 2016 11:53:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX9La-0002Bd-QC for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 11:53:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX9LR-0002gz-LN for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 11:53:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9LR-0002gL-I4; Tue, 09 Aug 2016 11:53:33 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bX9LP-000599-Dq; Tue, 09 Aug 2016 11:53:31 -0400 Date: Tue, 09 Aug 2016 18:53:18 +0300 Message-Id: <83r39ygcr5.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> (message from Paul Rankin on Wed, 10 Aug 2016 01:18:32 +1000) References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) > From: Paul Rankin > Cc: rudalics@gmx.at, 24193@debbugs.gnu.org > Date: Wed, 10 Aug 2016 01:18:32 +1000 > > Eli Zaretskii on Tue, 09 Aug 2016 17:56 +0300: > > I don't think I understand what exactly you expected to happen. In > > "emacs -Q" with no margins, "C-x 3" produces 2 windows: one that is > > 38-column wide, the other 37-column wide. Since you requested 2 20- > > column margins, they alone need 40 columns. How can Emacs produce a > > window with such margins out of 38 columns it has at its disposal? > > That isn't enough even for the margins, let alone the text area. > > On the one hand, splitting an 80 column wide window naturally halves the > window width, and as such the minimum margin width should also be > halved, so window-min-size is not calculating a logical minimum size. Decreasing the width of the margins when splitting a window causes worse problems: if the smaller margin cannot display the stuff (text, image, etc.) that the application wants to display there, that stuff will be truncated, or not shown at all. E.g., the line numbers shown by linum-mode will become truncated if the margins are made narrower than what linum-mode needs. Worse, linum-mode recalculates the margin width from time to time, and so it will try to enlarge the margin, making the text area smaller than it can possibly be. These are catastrophic failures that we cannot impose on Lisp applications. > On the other hand, I kinda just wanna say whatever 24.5 was, because it > worked perfectly there and now it's broken. It's hard to see that as > anything but a regression. >From my POV, the 24.x behavior was broken, see above. We changed that to avoid those problems. An application that sets a margin of a certain width has every right to expect Emacs not to change that. > "Window # too small for splitting (2)" implies > that the window is 2 columns wide, which is confusing, but the 2 is > actually just the code author's numbering of error messages. If the error message is unclear, we can and should improve it. But I don't think this is the main issue at hand here. > > If you have ideas for how to solve this, please tell. > > The gfycat.com link shows the behaviour in 24.5, which works perfectly. > I'd urge a rollback to the relevant 24.5 code here to prevent this bug > going into the 25.1 release. Sorry, rolling this back is out of the question. The current behavior was discussed at length, and was introduced to fix problems that I think are much worse. > I understand Emacs is very code-centric, but many people use it also for > prose writing, and there are several prose packages that set the window > margins in this same way... olivetti, writeroom-mode, darkroom- mode, > visual-fill-column... I haven't tested these all but predict a few > related bugs... Emacs cannot possibly know that the application which set the margins can cope with decreasing the margins. Only the application (or the user) know that. Anyway, I think these particular modes were also discussed in the context of this change in behavior. I think one way of dealing with this issue in the modes you mention is to bind "C-x 3" to a specialized command that reduces the margins before it calls window-split. An application can do this because it knows its features and limitations; Emacs core cannot. Thanks. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Aug 2016 16:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14707589239775 (code B ref 24193); Tue, 09 Aug 2016 16:09:01 +0000 Received: (at 24193) by debbugs.gnu.org; 9 Aug 2016 16:08:43 +0000 Received: from localhost ([127.0.0.1]:33297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX9a7-0002Xa-Kw for submit@debbugs.gnu.org; Tue, 09 Aug 2016 12:08:43 -0400 Received: from mout.gmx.net ([212.227.17.22]:53295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX9a5-0002XN-UZ for 24193@debbugs.gnu.org; Tue, 09 Aug 2016 12:08:42 -0400 Received: from [192.168.1.100] ([212.95.7.105]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LmfKJ-1axp1n3CxX-00aHcT; Tue, 09 Aug 2016 18:08:32 +0200 Message-ID: <57A9FFF7.6090008@gmx.at> Date: Tue, 09 Aug 2016 18:08:23 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> In-Reply-To: <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ZXJ5aHaiE5sIX/11sJwXbqgpj2XRhGTYVjVjueT4wI/CD8DTqEV 3GOjdqc5e0rKOgtpprHvho64/pCMiRRHXVDS39MHeDmidkqYWh0OHpXpgyOXYSqkL2lLcBO 0Hxi5wp/2YOTopJmnC3vi+sL8oXhiTSCC0wTfQ5lzjo5hQjbsfvkRUdxEp7sVgMw5jfdP4b rt9NFNSx9UpnuXwBF2UOw== X-UI-Out-Filterresults: notjunk:1;V01:K0:CJSV2rwbcso=:5OGXw/u+zpAQQPq3CGXQCG IKrXTA42fyCTzObH3Drr/j0Kp2KDjrA2cPqTvIIeAyGsYRizxB0I9GCrLVSNfXU73Ba2Lb3oy mmEhs0AvQK6HfdFG6Elm+CImJGhP+fjCtUSHF/OnpFxcbB0GUOy8Q2gme7NSTfh6rlbRrCqwG DKRGk06IrM0zg+SUdBrtEowo6bzvmm8ifQBMl0iHRJwnuF3a0fOMq5jzIRta1A3MT/2iUv470 23Zi9VPBTygkCiGc0gvffyETSX12Kj5yPkiPXBfu64uL2qn/3tVunKZieUCZxhEsPstwhvgTM bHlkalMg7KaxX3rUFrlChrTqcUFZgvIb7xaCIJLiabuoT5Mn3RanwcEEQKKBeCEzeVNN3wCgP ekstTSlhS9PUHjfJQAekH+WTb+vDs9sejKaEWojT95uZrYYgvl/efwdO+1hgP8Wvjy4w2Ks4/ RUbi57S34XVCIdbczns410ypaXmEyyKq7HJXWwahfarnEIx+DQuLYykjtqKpTdFqJhZGSbGWZ IDUJc02eGUsqisQloYhza+lcJY65oCrpZz+yD3nVRRIxTpMpwOgRxqp1V13TY+6olKnce488V kiXcxpnp1LUK6JBuKjHt5zDt+ieC95xQg7bAW7Wuy3VVjKptFIEq4QDlAupeumKuQiqglxa0O Olc8ToIKP23B4+Esoq1lDwAXqaArwAxkzBgCmTvLMpE8CyZKX0IuQ25bZppTy2uv5OsoOtd1O HgZ4APXV5NJ/oYOyoMlplCuBwzEZWAqgElS+wTLU/a5bTKcDKOEEEIgsImgsEP2czKh+jPTOW +u09BnLIZImN1cd1Rdxi+LVLF9lyA== X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) > https://gfycat.com/ZestyBeautifulEmeraldtreeskink > > How about we maybe focus instead on solving this? I supoose you have designed a mode to auto-adjust margins so that text appears centered in a window. You can add the following function (defun split-window-right-ignore (&optional size) (if (car size) size (list (/ (window-total-width) 2)))) and use (add-function :filter-args (symbol-function 'split-window-right) #'split-window-right-ignore) when activating your mode and (remove-function (symbol-function 'split-window-right) #'split-window-right-ignore) when deactivating it. martin From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2016 05:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24193@debbugs.gnu.org, rudalics@gmx.at Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14711514941173 (code B ref 24193); Sun, 14 Aug 2016 05:12:01 +0000 Received: (at 24193) by debbugs.gnu.org; 14 Aug 2016 05:11:34 +0000 Received: from localhost ([127.0.0.1]:56721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYnhu-0000Ir-4K for submit@debbugs.gnu.org; Sun, 14 Aug 2016 01:11:34 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:35196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYnhr-0000Ii-DJ for 24193@debbugs.gnu.org; Sun, 14 Aug 2016 01:11:32 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1B99320215; Sun, 14 Aug 2016 01:11:31 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Sun, 14 Aug 2016 01:11:31 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=lutGCyAbZ8H9ncpq25I0Y0feFxw =; b=S8q+xsnVE5LAfsYBE/3rEAhr2aQUqJLGCBTxfR3K6EZK5rq54RxTXylVsTZ gpH1A7JdBeIVbD0sk3pIfKIpHuqptthgEVLc2fxyv66iTVqGWO9WWCMwM7iwIqXb ey0MKGOixRJX/l6c2+xEc5J8Ll1F6jGegO776IJUGumfsPcs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=lutGCyAbZ8H9ncp q25I0Y0feFxw=; b=FRg7DfzYLeWZDR0a3xSPbV3PVuzGJwh55WQk0zVpzUsnslc QTMFpwmcbpR3xxU4Ym1/yJ79kwncPiYNh/qunnsOmUV+0PnEbbx4LxlvDpjXmwcw vAAz9kOtrOI29hTWtW4alFnpxGXQHkYDtTPfICef9NbmgX0wUjhvqSw3Kobg= Received: by mailuser.nyi.internal (Postfix, from userid 99) id CE8BC6A5F7; Sun, 14 Aug 2016 01:11:30 -0400 (EDT) Message-Id: <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> X-Sasl-Enc: lz8yhmJ4guC9SPkGBHmxt2W6U8khfT+K81gXqGOHdBxb 1471151490 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-71d1d584 Date: Sun, 14 Aug 2016 15:11:30 +1000 In-Reply-To: <83r39ygcr5.fsf@gnu.org> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii on Tue, 09 Aug 2016 18:53 +0300: > Decreasing the width of the margins when splitting a window causes > worse problems: if the smaller margin cannot display the stuff (text, > image, etc.) that the application wants to display there, that stuff > will be truncated, or not shown at all. E.g., the line numbers shown > by linum-mode will become truncated if the margins are made narrower > than what linum-mode needs. Worse, linum-mode recalculates the margin > width from time to time, and so it will try to enlarge the margin, > making the text area smaller than it can possibly be. These are > catastrophic failures that we cannot impose on Lisp applications. I'm not suggesting that Emacs resize the margins, just that Emacs ought not make the assumption that wide margins mean that splitting the window is unsafe. I think your ordering of priorities is a bit off. The top priority here is that the user needs to be able to press C-x 3 and have the window split in this use case. e.g. If the user has a window 204 columns wide with margins each set at 62 columns (with a remaining text body width of 80 columns), attempts to split that window with C-x 3 and receives a "Window X too small for splitting" error, given that the window is quite wide and Emacs is saying it's too small, the user's justifiable assumption is that Emacs is broken. Also, buffer contents is truncated all the time... Whenever a line exceeds the window width and truncate lines is t then we get a $ with truncated text. I don't get your concern here, and especially why truncating content is worse than breaking core Emacs functionality (C-x 3) with these use cases... > From my POV, the 24.x behavior was broken, see above. We changed that > to avoid those problems. An application that sets a margin of a > certain width has every right to expect Emacs not to change that. Your POV is valid as someone focused on the code, but here it's a different POV to that of a user, who sees a large window and expects splitting it to work, because it did in 24.x, so why not now. Really, Emacs is making a false assumption here, which is that when I split the window I am not also somehow controlling the margin width (in this case, with one of a variety of minor modes). So this attempt to perform some user mind-reading is the root of the design failure. When Emacs doesn't know, Emacs ought to adopt the position "idk?" and just do what it's told. When you assume you make an ass of u & Emacs. > If the error message is unclear, we can and should improve it. But I > don't think this is the main issue at hand here. Yeah it seems the author wants to include something like an error code, which here is misleading because it resembles (list 2). > Sorry, rolling this back is out of the question. The current behavior > was discussed at length, and was introduced to fix problems that I > think are much worse. So too should failing in a common use-case be out of the question. It would appear that these discussions adopted a very ungracious view of the mentioned prose-writing packages, that is, rather than find a solution for both cases, that these packages should just fail? > Emacs cannot possibly know that the application which set the margins > can cope with decreasing the margins. Only the application (or the > user) know that. > > Anyway, I think these particular modes were also discussed in the > context of this change in behavior. I think one way of dealing with > this issue in the modes you mention is to bind "C-x 3" to a > specialized command that reduces the margins before it calls window- > split. An application can do this because it knows its features and > limitations; Emacs core cannot. I think rebinding C-x 3 is a messy solution. The problem isn't really with split-window-right, it's with window-min-size. For example, one use-case I've come up against a lot is when working with a text file under git version control with olivetti on (which automatically sets the margins quite wide) in a single window. Activating magit would usually split the window horizontally, but because of the wide margins, the window will split vertically. This behaviour is not a big deal, but the user expectation when looking at a wide window with wide margins containing lots of empty space is that the window ought to split horizontally. Other results look a bit off. An idea I just thought of, so feel free to poke holes in it, is to introduce a local variable, something like window-margins-resizable, which defaults to nil, but could also be t left or right. This alleviates the problem of Emacs needing to read the user's mind when it comes to whether the margins really are too big to split the window or being controlled otherwise. Thoughts? From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2016 05:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14711522482399 (code B ref 24193); Sun, 14 Aug 2016 05:25:02 +0000 Received: (at 24193) by debbugs.gnu.org; 14 Aug 2016 05:24:08 +0000 Received: from localhost ([127.0.0.1]:56729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYnu4-0000cc-Ni for submit@debbugs.gnu.org; Sun, 14 Aug 2016 01:24:08 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYnu2-0000cU-EM for 24193@debbugs.gnu.org; Sun, 14 Aug 2016 01:24:06 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4D247201C4; Sun, 14 Aug 2016 01:24:06 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Sun, 14 Aug 2016 01:24:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=UiudZspmLoYK9VNll8IpZZr42U4 =; b=kJNDRAz/avRZERy6GLdjKelMofb1JAqOJP+UjfUQGbSVwNj4X9JfbxhO9n+ +Q4zmd43bvdRfEfWPcf9BWkPvkDXWX2dTipU/MSIh88/PhkiJ4Fzu7B73QbmASM2 FKxC3bRx+N12UcWsdWg6d9hcx4LKoQiOfNl7m3BMZKBNi+Ng= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=UiudZspmLoYK9VN ll8IpZZr42U4=; b=ins+I4TisyijhWdyjdIx3KoCinEHr/y6tToKxubGH37YnG6 YryRc5U6dNq1miDR0/je3Xjji7DryTWHav9GRjpiPZonVPjlr2H85lYZvZAopQ1m nbe+HGaR9ryOov3YPbE6yGfqcMBvMkOyl88VGfVIJQc3QeiAHTetHppQtPNc= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 181C46A5F7; Sun, 14 Aug 2016 01:24:06 -0400 (EDT) Message-Id: <1471152246.3506656.694701985.115B0993@webmail.messagingengine.com> X-Sasl-Enc: FJf/gupxbcQkjT4Q+U0BH97zZQzRGTS/T+bZrhJqp/Z7 1471152246 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-71d1d584 Date: Sun, 14 Aug 2016 15:24:06 +1000 In-Reply-To: <57A9FFF7.6090008@gmx.at> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <57A9FFF7.6090008@gmx.at> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics on Tue, 09 Aug 2016 18:08 +0200: > I supoose you have designed a mode to auto-adjust margins so that text > appears centered in a window. You can add the following function > > (defun split-window-right-ignore (&optional size) > (if (car size) size (list (/ (window-total-width) 2)))) > > and use > > (add-function > :filter-args (symbol-function 'split-window-right) #'split-window-right-ignore) > > when activating your mode and > > (remove-function > (symbol-function 'split-window-right) #'split-window-right-ignore) > > when deactivating it. Many thanks, this is helpful. Although I think patching C-x 3 is not the right solution. I'd like to find a solution that fixes window-min-size for everyone, including those who use Emacs to write prose. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2016 14:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org, rudalics@gmx.at Reply-To: Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14711851991261 (code B ref 24193); Sun, 14 Aug 2016 14:34:01 +0000 Received: (at 24193) by debbugs.gnu.org; 14 Aug 2016 14:33:19 +0000 Received: from localhost ([127.0.0.1]:57393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYwTW-0000KG-MN for submit@debbugs.gnu.org; Sun, 14 Aug 2016 10:33:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYwTU-0000K3-Q9 for 24193@debbugs.gnu.org; Sun, 14 Aug 2016 10:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYwTL-0004x9-MN for 24193@debbugs.gnu.org; Sun, 14 Aug 2016 10:33:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYwTL-0004x5-Jg; Sun, 14 Aug 2016 10:33:07 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1161 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bYwTC-0003Mo-0n; Sun, 14 Aug 2016 10:33:05 -0400 Date: Sun, 14 Aug 2016 17:32:39 +0300 Message-Id: <831t1rh14o.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> (message from Paul Rankin on Sun, 14 Aug 2016 15:11:30 +1000) References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) > From: Paul Rankin > Cc: rudalics@gmx.at, 24193@debbugs.gnu.org > Date: Sun, 14 Aug 2016 15:11:30 +1000 > > > Decreasing the width of the margins when splitting a window causes > > worse problems: if the smaller margin cannot display the stuff (text, > > image, etc.) that the application wants to display there, that stuff > > will be truncated, or not shown at all. E.g., the line numbers shown > > by linum-mode will become truncated if the margins are made narrower > > than what linum-mode needs. Worse, linum-mode recalculates the margin > > width from time to time, and so it will try to enlarge the margin, > > making the text area smaller than it can possibly be. These are > > catastrophic failures that we cannot impose on Lisp applications. > > I'm not suggesting that Emacs resize the margins, just that Emacs ought > not make the assumption that wide margins mean that splitting the window > is unsafe. The function in question keeps the margins at their original size, so it cannot split the window when doing so leaves no screen space for buffer text. The only way to allow it to split such windows is by resizing the margins. Otherwise, what does "not make the assumption" mean in practice? We cannot rely on the application to resize the margins, because not every application does that (most don't). > I think your ordering of priorities is a bit off. The top priority here > is that the user needs to be able to press C-x 3 and have the window > split in this use case. Not if the user does something that makes no sense. We have such "user errors" in Emacs all over the place. E.g., when the user tries to delete the only window of a frame. This case is no different, IMO. > e.g. If the user has a window 204 columns wide > with margins each set at 62 columns (with a remaining text body width of > 80 columns), attempts to split that window with C-x 3 and receives a > "Window X too small for splitting" error, given that the window is quite > wide and Emacs is saying it's too small, the user's justifiable > assumption is that Emacs is broken. I already agreed that we should probably improve the error message, so let's not reiterate this particular aspect, as we are in agreement. IOW, the error message we issue now should no longer be an argument that what Emacs does in this case is wrong, let alone nonsensical. > Also, buffer contents is truncated all the time... Whenever a line > exceeds the window width and truncate lines is t then we get a $ with > truncated text. When we do so, we display hints about the truncation, and allow horizontal scrolling to display the truncated text. No such features are available for the stuff displayed on the margins, it just disappears without a trace. The example I provided, with linum-mode, is a relevant case in point: the line numbers will appear incorrect and/or corrupted. > I don't get your concern here, and especially why > truncating content is worse than breaking core Emacs functionality (C-x > 3) with these use cases... It is worse because the effect is a corrupted display with no hint to the user. > > From my POV, the 24.x behavior was broken, see above. We changed that > > to avoid those problems. An application that sets a margin of a > > certain width has every right to expect Emacs not to change that. > > Your POV is valid as someone focused on the code, but here it's a > different POV to that of a user, who sees a large window and expects > splitting it to work, because it did in 24.x, so why not now. The error message, when we fix it, will explain why not now. > Really, Emacs is making a false assumption here, which is that when I > split the window I am not also somehow controlling the margin width (in > this case, with one of a variety of minor modes). So this attempt to > perform some user mind-reading is the root of the design failure. The function in question doesn't change the margins, so it cannot do its job when no screen estate is left for the text area. IOW, there's no assumptions here, only facts. > > Sorry, rolling this back is out of the question. The current behavior > > was discussed at length, and was introduced to fix problems that I > > think are much worse. > > So too should failing in a common use-case be out of the question. No, it isn't, because we do that in other cases. > I think rebinding C-x 3 is a messy solution. The problem isn't really > with split-window-right, it's with window-min-size. I'm not sure we want to change window-min-size. That function is used for purposes that have nothing to do with splitting the window. E.g., we also use its value when deciding whether a window can be resized, when fitting window to buffer, etc. The lowest level function for splitting windows is split-window, so the change should IMO be either in split-window-right or in split-window. Martin, WDYT? > An idea I just thought of, so feel free to poke holes in it, is to > introduce a local variable, something like window-margins-resizable, > which defaults to nil, but could also be t left or right. This > alleviates the problem of Emacs needing to read the user's mind when it > comes to whether the margins really are too big to split the window or > being controlled otherwise. > > Thoughts? See above. Also, this proposal is incomplete, because it doesn't tell what should window-splitting functions do when the margins are too wide for one or both of the two windows after the split. You explicitly say that you don't suggest that margins be resized when such windows are split, so it is not clear what should be done in those cases. Thanks. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2016 08:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Paul Rankin Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147124971214297 (code B ref 24193); Mon, 15 Aug 2016 08:29:01 +0000 Received: (at 24193) by debbugs.gnu.org; 15 Aug 2016 08:28:32 +0000 Received: from localhost ([127.0.0.1]:57848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZDG4-0003iX-L6 for submit@debbugs.gnu.org; Mon, 15 Aug 2016 04:28:32 -0400 Received: from mout.gmx.net ([212.227.15.15]:57440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZDG2-0003iH-3s for 24193@debbugs.gnu.org; Mon, 15 Aug 2016 04:28:30 -0400 Received: from [192.168.1.102] ([212.95.7.114]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LmKag-1b0hmg0QGw-00ZuOc; Mon, 15 Aug 2016 10:28:20 +0200 Message-ID: <57B17D1C.7070200@gmx.at> Date: Mon, 15 Aug 2016 10:28:12 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> In-Reply-To: <831t1rh14o.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------040507030105050806020003" X-Provags-ID: V03:K0:04MOh3QB15Z5z3mZb9v3lLAHovBtlAWRLrlrLWj4++3FTJXhsBf ZAfnaP5lD/erM4nmvvf0pWBXvFZCazN3F85sZ7w8C5Tdv/6Yc8puHYZkJi6MDf2EPajPmqp FJT+8CQXjBO8+xDaE45gRz6fbD41F9iQevXdL1qtbCVHXOtY4Db76GtOXj6Tbb8YRSf0Fe9 b4RhjPdFJkNGhhsEHGf0g== X-UI-Out-Filterresults: notjunk:1;V01:K0:dWqglkDx+3o=:DigabGSatq4OQiwhxUkqgc tINHw7bNI5tcK3FqATibvUXraLUGdO0SSoyV7togCIssWFJWVZGXUHE1kmrTvt9auMjUKnhT8 REYEP1uP3E2PNsyumlg2tlikrL5irf5Y+1WweKJnnTvPXnOzY0Vxz5wrqKQ3EWXFfWl/I7DPd E2Q/2CMfoGrRDBtoGxBZV5Q4tHaY7J8IPi9zVKaUPoIc22zsRqQkiVCgsXDGXbkEa14daDsbC ENk8OKclw9RyDLn2yAY1jI51X6yOiKLxiYxStdHmtN5CCKZHPpnasBFFCnbCaljW9k+FvPV0U zQ6CdBXQdkMBnk3kxdVHpyawkLVnyxf6PGADhcXzoUkLrfO2ApTcRR7mKg9977BjsQhbQ+Xxo Fymps5Ri3QEyUso/uxR75XeqzUPmHWGeTX/JRr+71SW3P04v7srGXNY6EBfKfYOhAe2rtNSlM y8eUpQFLE3GtIDaH1s6+z+Y8bjJK+n9NHhGbW1YqiTKGMpnNcev4WGYjTVxP2p3AGS7QmQEIk HJxSmYFrUaO9uzURCy5B0NbKIR0uubAe8tNzyZwM9avP57TwxNI0zKQREDVLfAF2cvzbFiA6K u7y9wcPQMDw/oFsi8vsdaKZbwoT/lXjkkQ4VPFnxYpudJa/ZTmf+sNNvyygcLo8CYnNX/3v19 Y2yhOnU/4o3rNuYL8es9bn0vUu2LGj9Zrb+C3soDBFqGLFunJMMm7YbERMSdVSQ8Id9OIPVez AZxSumzu1cL9QQHKxMhFzQfap2O46jXcsIycIAKxvT/4zDsTslWBmyX4r4sw6YWhUbzFSpUFK Ffv9l3k X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This is a multi-part message in MIME format. --------------040507030105050806020003 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > I'm not sure we want to change window-min-size. That function is used > for purposes that have nothing to do with splitting the window. E.g., > we also use its value when deciding whether a window can be resized, > when fitting window to buffer, etc. > > The lowest level function for splitting windows is split-window, so > the change should IMO be either in split-window-right or in > split-window. Martin, WDYT? This wouldnn't help much because as soon as a user has two side-by-side windows she might want to drag the divider between those windows and complain that it doesn't move. We can install the attached hack in Emacs 25.1 and leave this subject alone until someone has a better solution. martin --------------040507030105050806020003 Content-Type: text/plain; charset=windows-1252; name="min-margins.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="min-margins.diff" ZGlmZiAtLWdpdCBhL2RvYy9saXNwcmVmL3dpbmRvd3MudGV4aSBiL2RvYy9saXNwcmVmL3dp bmRvd3MudGV4aQppbmRleCA1NWQ5MGJkLi43YzA3ZGQxIDEwMDY0NAotLS0gYS9kb2MvbGlz cHJlZi93aW5kb3dzLnRleGkKKysrIGIvZG9jL2xpc3ByZWYvd2luZG93cy50ZXhpCkBAIC00 MzQ5LDYgKzQzNDksMjQgQEAgV2luZG93IFBhcmFtZXRlcnMKIFRoZSBmb3VydGggZWxlbWVu dCBpcyB0aGUgYnVmZmVyIHdob3NlIGRpc3BsYXkgY2F1c2VkIHRoZSBjcmVhdGlvbiBvZgog dGhpcyBwYXJhbWV0ZXIuICBAY29kZXtxdWl0LXJlc3RvcmUtd2luZG93fSBkZWxldGVzIHRo ZSBzcGVjaWZpZWQgd2luZG93CiBvbmx5IGlmIGl0IHN0aWxsIHNob3dzIHRoYXQgYnVmZmVy LgorCitAaXRlbSBAY29kZXttaW4tbWFyZ2luc30KK1RoZSB2YWx1ZSBvZiB0aGlzIHBhcmFt ZXRlciBpcyBhIGNvbnMgY2VsbCBzcGVjaWZ5aW5nIHRoZSBtaW5pbXVtIHZhbHVlcworKGlu IGNvbHVtbnMpIGZvciB0aGUgbGVmdCBhbmQgcmlnaHQgbWFyZ2luIG9mIHRoaXMgd2luZG93 LiAgV2hlbgorcHJlc2VudCwgRW1hY3Mgd2lsbCB1c2UgdGhlc2UgdmFsdWVzIGluc3RlYWQg b2YgdGhlIHJlYWwgbWFyZ2luIHdpZHRocworZm9yIGRldGVybWluaW5nIHdoZXRoZXIgYSB3 aW5kb3cgY2FuIGJlIHNwbGl0IG9yIHNocnVuay4KKworRW1hY3MgZG9lcyBub3QgYXV0by1h ZGp1c3QgdGhlIG1hcmdpbnMgb2YgYW55IHdpbmRvdyBhZnRlciBzcGxpdHRpbmcgb3IKK3Jl c2l6aW5nIGl0LiAgSXQgaXMgc29sZSByZXNwb25zaWJpbGl0eSBvZiB0aGUgYXBwbGljYXRp b24gdGhhdCBzZXRzCit0aGlzIHBhcmFtZXRlciB0byBhZGp1c3QgdGhlIG1hcmdpbnMgb2Yg dGhpcyB3aW5kb3cgYXMgd2VsbCBhcyB0aG9zZSBvZgorYW55IG5ldyB3aW5kb3cgY3JlYXRl ZCBieSBhIHNwbGl0LiAgVGhlIGhvb2tzIHRvIGFjaGlldmUgdGhhdCBhcmUKK0Bjb2Rle3dp bmRvdy1jb25maWd1cmF0aW9uLWNoYW5nZS1ob29rfSBhbmQKK0Bjb2Rle3dpbmRvdy1zaXpl LWNoYW5nZS1mdW5jdGlvbnN9IChAcHhyZWZ7V2luZG93IEhvb2tzfSkuCisKK1RoaXMgcGFy YW1ldGVyIHdhcyBpbnRyb2R1Y2VkIGluIEVtYWNzIHZlcnNpb24gMjUuMSBhcyBhIGNvbnNw aXJhY3kgaGFjaworZm9yIGFwcGxpY2F0aW9ucyB0aGF0IHVzZSBsYXJnZSBtYXJnaW5zIHRv IGNlbnRlciBidWZmZXIgdGV4dCB3aXRoaW4gYQord2luZG93IGFuZCBzaG91bGQgYmUgdXNl ZCB3aXRoIGV4dHJlbWUgY2FyZS4gIEl0IGNhbiBiZSByZXBsYWNlZCBieSBhbgoraW1wcm92 ZWQgc29sdXRpb24gaW4gZnV0dXJlIHZlcnNpb25zIG9mIEVtYWNzLgogQGVuZCB0YWJsZQoK IFRoZXJlIGFyZSBhZGRpdGlvbmFsIHBhcmFtZXRlcnMgQGNvZGV7d2luZG93LWF0b219IGFu ZCBAY29kZXt3aW5kb3ctc2lkZX07CmRpZmYgLS1naXQgYS9saXNwL3dpbmRvdy5lbCBiL2xp c3Avd2luZG93LmVsCmluZGV4IGY3YTU0N2IuLmNhODE0MWIgMTAwNjQ0Ci0tLSBhL2xpc3Av d2luZG93LmVsCisrKyBiL2xpc3Avd2luZG93LmVsCkBAIC0xMzgzLDEwICsxMzgzLDE3IEBA IHdpbmRvdy0tbWluLXNpemUtMQogCSAgKGxldCogKChjaGFyLXNpemUgKGZyYW1lLWNoYXIt c2l6ZSB3aW5kb3cgdCkpCiAJCSAoZnJpbmdlcyAod2luZG93LWZyaW5nZXMgd2luZG93KSkK IAkJIChtYXJnaW5zICh3aW5kb3ctbWFyZ2lucyB3aW5kb3cpKQorICAgICAgICAgICAgICAg ICAobWluLW1hcmdpbnMgKHdpbmRvdy1wYXJhbWV0ZXIgd2luZG93ICdtaW4tbWFyZ2lucykp CisgICAgICAgICAgICAgICAgIChsZWZ0LW1pbi1tYXJnaW4gKGFuZCBtaW4tbWFyZ2lucwor ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG51bWJlcnAgKGNhciBt aW4tbWFyZ2lucykpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo Y2FyIG1pbi1tYXJnaW5zKSkpCisgICAgICAgICAgICAgICAgIChyaWdodC1taW4tbWFyZ2lu IChhbmQgbWluLW1hcmdpbnMKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAobnVtYmVycCAoY2RyIG1pbi1tYXJnaW5zKSkKKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoY2RyIG1pbi1tYXJnaW5zKSkpCiAJCSAocGl4ZWwtd2lk dGgKIAkJICAoKyAod2luZG93LXNhZmUtbWluLXNpemUgd2luZG93IHQgdCkKLQkJICAgICAo KiAob3IgKGNhciBtYXJnaW5zKSAwKSBjaGFyLXNpemUpCi0JCSAgICAgKCogKG9yIChjZHIg bWFyZ2lucykgMCkgY2hhci1zaXplKQorCQkgICAgICgqIChvciBsZWZ0LW1pbi1tYXJnaW4g KGNhciBtYXJnaW5zKSAwKSBjaGFyLXNpemUpCisJCSAgICAgKCogKG9yIHJpZ2h0LW1pbi1t YXJnaW4oY2RyIG1hcmdpbnMpIDApIGNoYXItc2l6ZSkKIAkJICAgICAoY2FyIGZyaW5nZXMp IChjYWRyIGZyaW5nZXMpCiAJCSAgICAgKHdpbmRvdy1zY3JvbGwtYmFyLXdpZHRoIHdpbmRv dykKIAkJICAgICAod2luZG93LXJpZ2h0LWRpdmlkZXItd2lkdGggd2luZG93KSkpKQoK --------------040507030105050806020003-- From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2016 10:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 24193@debbugs.gnu.org, Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147125534723693 (code B ref 24193); Mon, 15 Aug 2016 10:03:02 +0000 Received: (at 24193) by debbugs.gnu.org; 15 Aug 2016 10:02:27 +0000 Received: from localhost ([127.0.0.1]:57911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZEiw-0006A5-Px for submit@debbugs.gnu.org; Mon, 15 Aug 2016 06:02:26 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZEiv-00069x-4F for 24193@debbugs.gnu.org; Mon, 15 Aug 2016 06:02:25 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3F7BD204F1; Mon, 15 Aug 2016 06:02:23 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Mon, 15 Aug 2016 06:02:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=aW6NmCo+a74SxIS9Hmtfld3Op9k =; b=WeeAGUG6pEFxTbbwR1u4Q5M6C/QNH0t1mdkfS5vQH2tekPRVmiHC1Lp3AnO AE5Iko7Msr9AqVcv+p98RtZJiCg8WXizQafP4Eu75tr8sJGk1mlfn7nWEiYvD/zN 0caFORPaa69kTWS2zqjYylstpHaOTdzhifDd/fg5KkTG35So= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=aW6NmCo+a74SxIS 9Hmtfld3Op9k=; b=bCHKPLtiTgA5hZRypdosIJHByI87WOI3TebZDDvx7/5DHh0 LXzLq6uyoFxZuyZwzsZC9McWfNFsNxdr9WKO3KasXLsTGMMY/rqSR/Vs+UwCalgW SMX8suLF8yGQMsehtPW9+lO6yqvFQnXBEo3T5Yw9wRb1MlREQGnN2mjB8G1k= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 0D2DB6A63A; Mon, 15 Aug 2016 06:02:23 -0400 (EDT) Message-Id: <1471255343.1036269.695518577.5049CAE8@webmail.messagingengine.com> X-Sasl-Enc: EpHd8GhdTysFVrJNRsMseUPv6O4+F+yPP6J2WaBHh7CF 1471255343 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-71d1d584 In-Reply-To: <57B17D1C.7070200@gmx.at> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> Date: Mon, 15 Aug 2016 20:02:23 +1000 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics on Mon, 15 Aug 2016 10:28 +0200: > > I'm not sure we want to change window-min-size. That function is used > > for purposes that have nothing to do with splitting the window. E.g., > > we also use its value when deciding whether a window can be resized, > > when fitting window to buffer, etc. > > > > The lowest level function for splitting windows is split-window, so > > the change should IMO be either in split-window-right or in > > split-window. Martin, WDYT? > > This wouldnn't help much because as soon as a user has two side-by-side > windows she might want to drag the divider between those windows and > complain that it doesn't move. We can install the attached hack in > Emacs 25.1 and leave this subject alone until someone has a better > solution. Ah brilliant! Thank you Martin :) If/when this is replaced, would this bug thread to be referenced? It would certainly help with updating the modes affected. I guess etiquette would dictate that a mode should set these to the maximum of the existing value or its own for cases when two modes want control of minimum margin width.... is that a case that can arise? I guess it is..... From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2016 15:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 24193@debbugs.gnu.org, hello@paulwrankin.com Reply-To: Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147127344025235 (code B ref 24193); Mon, 15 Aug 2016 15:04:01 +0000 Received: (at 24193) by debbugs.gnu.org; 15 Aug 2016 15:04:00 +0000 Received: from localhost ([127.0.0.1]:58434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZJQm-0006Yx-7X for submit@debbugs.gnu.org; Mon, 15 Aug 2016 11:04:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZJQk-0006Yl-Hg for 24193@debbugs.gnu.org; Mon, 15 Aug 2016 11:03:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZJQb-0007iA-2x for 24193@debbugs.gnu.org; Mon, 15 Aug 2016 11:03:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZJQa-0007hy-W1; Mon, 15 Aug 2016 11:03:49 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1884 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bZJQW-0006ai-T2; Mon, 15 Aug 2016 11:03:47 -0400 Date: Mon, 15 Aug 2016 18:03:30 +0300 Message-Id: <83shu6f519.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <57B17D1C.7070200@gmx.at> (message from martin rudalics on Mon, 15 Aug 2016 10:28:12 +0200) References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) > Date: Mon, 15 Aug 2016 10:28:12 +0200 > From: martin rudalics > CC: 24193@debbugs.gnu.org > > We can install the attached hack in Emacs 25.1 and leave this > subject alone until someone has a better solution. Fine with me, modulo the provocative wording in the doc. Thanks. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2016 07:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org, Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14713329457275 (code B ref 24193); Tue, 16 Aug 2016 07:36:01 +0000 Received: (at 24193) by debbugs.gnu.org; 16 Aug 2016 07:35:45 +0000 Received: from localhost ([127.0.0.1]:58728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZYuX-0001tH-Hd for submit@debbugs.gnu.org; Tue, 16 Aug 2016 03:35:45 -0400 Received: from mout.gmx.net ([212.227.15.18]:50486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZYuV-0001t2-6h for 24193@debbugs.gnu.org; Tue, 16 Aug 2016 03:35:43 -0400 Received: from [192.168.1.100] ([212.95.7.103]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MhAAr-1bmzA42QGP-00MIHq; Tue, 16 Aug 2016 09:35:33 +0200 Message-ID: <57B2C23D.3090109@gmx.at> Date: Tue, 16 Aug 2016 09:35:25 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <1471255343.1036269.695518577.5049CAE8@webmail.messagingengine.com> In-Reply-To: <1471255343.1036269.695518577.5049CAE8@webmail.messagingengine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:KoaCKP5mCrvk6EtqOek/SyKQ3VWZWAQbPPvsFXxO19bucuXFU1i 6del+r6+gWp53sBDKrj4SOfTKadiz5zZohcNsDU0m928oKicJICD3+6CI6lOZJitRTcoeQB Nq1hgboGuLgFPo7/OyML8PCVavxI/8C3SN701sfokSQWnXIAEOlsuD+oE4ddDVQshBkr2AP B6cYhnLq9LZCMOifoceBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Qpf7aG0TXzM=:yJJ/BulU98B6fIpO5vHklM 5wFSoER6HjVEw4+6BVoSt5uyOtz4qoFwJXynI0XpDra9eMDL8C5sBVzMXHzh5FrNenF2ivL+E GUuoBe2W7qiCB5Mq9X1d+uCG6g7XhqQmE8inPZ0EkamRASlbawmGeuxY34b/OJvoLT41QZ+RX MBZURLo3dMLav5MWHLqURk0L9rd/GvYvnDPEcxvedS8y2uKvglwxHcs5M/Bccq5ihZk2SLdu1 gaa9rGyhYd8QxXknHbC3aCyzSSnh6nPI5G2IW6+csTmffd572DTnNMu3xI50/wnI4prR7ZUqm EAWcoAt8vt+2n0lLgcWXgIoehN/9x8GSBqKRZjMX0W9mCSjNK4SsFk0WnnDd89f+3zzJ71rOI Lxe9/ePhk4ty0U3XSK2ME3lJGp54Oi8qwbPdIigOV3ajyfiCgGg52HRUZh6l4vqBwYcTUpxt1 q9V6gSwtLNnDdokgqzFO0LSdTjcmmqVFoM6AIWgz1v6AKvXjjEMyvMC/QW6tcxvTV5aD4Lfl4 byMPX3Aw/Rag9z+Vllw3t28vGUaYo/GpzmqhDudAwGGDdZ/FkitNWMtbphaE0FJ1qF47/WYPU oguPd2ogxuvJYxCVo8s56hJpTJPB9HKqPmucVGFsePtzL8fXhQOEuolYppocEMe1b0Woe3/Wd aHmXE/S/Pme1uw7TF03orrXjhB1gseUVXnMqfsAR28PIK8ub9l0CZSSbZnXNPjVVHdxoka01Y dNjndkncgY5Hf86DAt4dHwenVsWaTOxv5VtiZjhDmZiXZ86VWOApBPBSv9RM10oKUceYIu2wi GNAB8yARUo94eQNAl3WbJ/6NrEjFA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > If/when this is replaced, would this bug thread to be referenced? It > would certainly help with updating the modes affected. The commit references the bug number. > I guess etiquette would dictate that a mode should set these to the > maximum of the existing value or its own for cases when two modes want > control of minimum margin width.... is that a case that can arise? I > guess it is..... Hopefully such a case never arises. Having two modes use the same hooks to impose their idea of how to size margins is asking for trouble. martin From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2016 07:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24193@debbugs.gnu.org, hello@paulwrankin.com Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.14713329567297 (code B ref 24193); Tue, 16 Aug 2016 07:36:02 +0000 Received: (at 24193) by debbugs.gnu.org; 16 Aug 2016 07:35:56 +0000 Received: from localhost ([127.0.0.1]:58731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZYud-0001tZ-P2 for submit@debbugs.gnu.org; Tue, 16 Aug 2016 03:35:56 -0400 Received: from mout.gmx.net ([212.227.15.19]:57964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZYuc-0001tF-2P for 24193@debbugs.gnu.org; Tue, 16 Aug 2016 03:35:50 -0400 Received: from [192.168.1.100] ([212.95.7.103]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MSMP5-1bkG8s0Yah-00TYie; Tue, 16 Aug 2016 09:35:41 +0200 Message-ID: <57B2C245.3090409@gmx.at> Date: Tue, 16 Aug 2016 09:35:33 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> In-Reply-To: <83shu6f519.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:jznI79ZaF0jzJxLfm5MZ9SE/g3C0s8yaTTUezbUHcDzKBramP0V 14GA2oSxp4qFtz1eh1wUED40umP7rUKkK6n89Us6nKHgrRN22IIoVMpjXMVJTy9Si6lk1Fk 5iqxnD5IOKWEUtZL3Ks5++3aBqGoQypxxmOZoLxEMJ9dqz73hL+oUK/0bLMHerEQ380xIQK hsJCaMty5lesMffSlrTLg== X-UI-Out-Filterresults: notjunk:1;V01:K0:NFsBTXGuDCo=:19Kn86muh0KgYi1BKz/zNj 0uRCk31ReSXZO5UU9uyTL50m/WpMrZauvKQhApFqhqqKmcr+UVZ3LA2mYe8ABI/7RAfckcxh2 99WWP3Y914WaW2HB3HxJm+APEZrVbrIPBE5h8C9DfM/tEMx1g+IuCMN4DDFDruNoXZywPL5RY 8IYF2clzpGc6sLZ8qK/rJvTv8GGiKs0f8xGpkbLPsWVovExh2mepu0d43v7wzuKP4kzglIysl oXI8mujkuJ48SGgqAPsANGWTyY4tyFfcP7nUL4+3PyYB6FfgYoSKPhj5ryhFtS/farKNgGLQx 3L9XqJ0SsTqH4ZAFD9NIFzNflSvw8/6+OeHFvBJzO4i0qxACOncb0+GLnVT+vig54ONmQx8WM Yj7OpztaXsFlzv2LjJH5bM0V9H65BWX4aWFcPd3gb59PaIBxYywDe/xgIrVQ/PyLEcC4zW5ge LAi1TpNKG4SA4Lq6QXuHntNjTfevxLVFBW1szruS9ZcaEU0jUylVgrgT89Zys3y+4gSLfEqEK ra5BEhUhhCWjE71TriKpHVTuvYkiwZD8Spodjeb86UNcecoEd0pzwDQY45j6P8gCJnFAwfd28 XntlVdPeyGIED8sMnhnkZ0vWhy7fS97Pl/RHmrPwgOQBqYiToV9KYOp6ezGNhLqB7TAhgc/eu /nYJFFB7yC2pX6g4b0K2eJcu9xQReheQkQuUuYmaXuOmPWadtBZ0T3PrFM83qoEh9TKApK4EL YQEEGriU1luXNqYFH86FCz+GYDCdu3uvvnTdK8mH7TB0a/kOwZXTTPPDggLfIoLluGeVZhvao xLvfZY2KUDFVlGOMDXlHZQbFDM6rA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >> We can install the attached hack in Emacs 25.1 and leave this >> subject alone until someone has a better solution. > > Fine with me, modulo the provocative wording in the doc. Installed with, hopefully, less provocative wording in the doc. martin From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2016 14:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics Cc: 24193@debbugs.gnu.org, hello@paulwrankin.com Reply-To: Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147135716624007 (code B ref 24193); Tue, 16 Aug 2016 14:20:01 +0000 Received: (at 24193) by debbugs.gnu.org; 16 Aug 2016 14:19:26 +0000 Received: from localhost ([127.0.0.1]:59368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZfDC-0006F8-IT for submit@debbugs.gnu.org; Tue, 16 Aug 2016 10:19:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZfDA-0006Er-P8 for 24193@debbugs.gnu.org; Tue, 16 Aug 2016 10:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZfD1-0004Xz-PA for 24193@debbugs.gnu.org; Tue, 16 Aug 2016 10:19:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZfD1-0004Xj-Ly; Tue, 16 Aug 2016 10:19:15 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2513 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bZfCz-0003b4-Pw; Tue, 16 Aug 2016 10:19:14 -0400 Date: Tue, 16 Aug 2016 17:19:15 +0300 Message-Id: <83fuq4g5jw.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <57B2C245.3090409@gmx.at> (message from martin rudalics on Tue, 16 Aug 2016 09:35:33 +0200) References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) > Date: Tue, 16 Aug 2016 09:35:33 +0200 > From: martin rudalics > CC: hello@paulwrankin.com, 24193@debbugs.gnu.org > > >> We can install the attached hack in Emacs 25.1 and leave this > >> subject alone until someone has a better solution. > > > > Fine with me, modulo the provocative wording in the doc. > > Installed with, hopefully, less provocative wording in the doc. Thanks. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Sep 2016 04:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 24193@debbugs.gnu.org, martin rudalics Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147278920828633 (code B ref 24193); Fri, 02 Sep 2016 04:07:02 +0000 Received: (at 24193) by debbugs.gnu.org; 2 Sep 2016 04:06:48 +0000 Received: from localhost ([127.0.0.1]:46851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bffke-0007Rl-7G for submit@debbugs.gnu.org; Fri, 02 Sep 2016 00:06:48 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bffkd-0007Re-5N for 24193@debbugs.gnu.org; Fri, 02 Sep 2016 00:06:47 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 289A520739; Fri, 2 Sep 2016 00:06:45 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute7.internal (MEProxy); Fri, 02 Sep 2016 00:06:45 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=f8NjE1gClE5FM2LbxadO85XYPnM =; b=NIffUuSo14M7WvYJ47+A5nNVYaLDhHbZ5Z19MhOm9oBq+Lc5ebbq6/tMPEz 7+eGin5JFkvgqTThlVbZxREno3Ol6GU/J0lS9z3T5hHr2adjCe3WBfkFGU1jLymK a9W/EoBstTrMgJYcQtaHk2eT9LrFUnFg6y54pX5aNRc6Ud0o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=f8NjE1gClE5FM2L bxadO85XYPnM=; b=ekn3uvPAhaGES1/Lfsgrf2ylqH2WrTn4xoZBeQ65eVhPQRU f1gJN3BCymbxbwjhgQuvENnxNfnoneJcFkv6bfyqFO00IVEGuZU2XSHcHeLwpJdX sdBnNkDusZIuqjdtHjopj9R3xSNqljEz7mMUnlkJcL2cZCRWDZQp4V1bLmJw= Received: by mailuser.nyi.internal (Postfix, from userid 99) id E8B6C168F8; Fri, 2 Sep 2016 00:06:44 -0400 (EDT) Message-Id: <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> X-Sasl-Enc: 9FTdmBrVYOKUiP+INP2ryzmMr5ttAjDWP2yR7wnvpFZn 1472789204 From: Paul Rankin MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-7215d481 Date: Fri, 02 Sep 2016 14:06:44 +1000 In-Reply-To: <83fuq4g5jw.fsf@gnu.org> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> <83fuq4g5jw.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii on Tue, 16 Aug 2016 17:19 +0300: > > Date: Tue, 16 Aug 2016 09:35:33 +0200 > > From: martin rudalics > > CC: hello@paulwrankin.com, 24193@debbugs.gnu.org > > > > >> We can install the attached hack in Emacs 25.1 and leave this > > >> subject alone until someone has a better solution. > > > > > > Fine with me, modulo the provocative wording in the doc. > > > > Installed with, hopefully, less provocative wording in the doc. > > Thanks. Turns out there is a better solution, so the patch can be removed before stable 25.1 release if you prefer :) From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Sep 2016 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin , Eli Zaretskii Cc: 24193@debbugs.gnu.org Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.147279775517336 (code B ref 24193); Fri, 02 Sep 2016 06:30:02 +0000 Received: (at 24193) by debbugs.gnu.org; 2 Sep 2016 06:29:15 +0000 Received: from localhost ([127.0.0.1]:46899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfhyU-0004VY-S4 for submit@debbugs.gnu.org; Fri, 02 Sep 2016 02:29:15 -0400 Received: from mout.gmx.net ([212.227.15.18]:59045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfhyS-0004VI-Rg for 24193@debbugs.gnu.org; Fri, 02 Sep 2016 02:29:13 -0400 Received: from [192.168.1.101] ([212.95.7.21]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MPE7E-1bk5h02AOe-004VIK; Fri, 02 Sep 2016 08:29:02 +0200 Message-ID: <57C91C2C.2070603@gmx.at> Date: Fri, 02 Sep 2016 08:29:00 +0200 From: martin rudalics MIME-Version: 1.0 References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> <83fuq4g5jw.fsf@gnu.org> <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> In-Reply-To: <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:0f/S3wQDZiS2qX5DyKazr8QJ87CzrIaSTvcJUPb3ZyvyzamLXnV Kxxw6khi6QmNjTaXG/+Ul7G5roIcpn/oVtMnD6BsL/Ve5JgCLHSDbN/B+weNfx2xkVvJgyj vvwt/gikw49InrPLx6W7LBJzmYo0qrWil6L9WPm0oy7QiGIn40PYFN6k7Eu+SbuClWHwz1z YX4gitRpnqST+PPr4FVtg== X-UI-Out-Filterresults: notjunk:1;V01:K0:1bkuG3vpO0E=:LJmJzN6iJTpTVijQD1gFlU 00ATBu1Gcg1uVhnH2LUGPROZaIbx3kPxb7F1Q40hjYybtBihTuQAu9qeh7EIPpmL3KKqdnNao jcY+qiNVNZW0/cPeETyndKHQef05Dnu3AWUWKl0a2daisJ4d1PuopuJbIuS+z3hE2PPbON/v7 7/bei3tJD6FhUwUn+YqODw7Q0Ik5j6Cksy2hx4qGswWnwC6j4Eyc2H50M5fkK8MGoy0/SB8U4 ygJRvBQI52VurNEXGWbNwYUkAaGufTpB9tPuof+FR3NdzXXo+6rQ6Qe6n9HWgMSAKTNn4wlyN HVQqKhiJwnMJl8e89WT/NXsXVZAIqZsbq8wiSQwObIrSGXaHpCsajinvGfiSd2LSb2qn4Rd+E BsnDharI3kgHFR7NbJ6bhf7Hf3dTW05lwdrm9lTUZ1meMcTQ8d3diJD8v+28NCZca74fMBX1P n5nADGgP8VvFNYX+N2pCLGukiqD7Jw9SfnzoNAHmnoEW2T98mWxwfw3pzDn0PeXct8nutxweL ADnwcFQOfB4cjj/L0h+hM7K41s6PHPRGra8lU0gRkJq0pQTKjG/KLFWAf+DsMf5TV74p/aOdo sjFeqB172n8NLQWfPRfMGcLj238lkgXSPgAK94jzp6AWLtZn2CRgbK+7BpqvU4Ybl4WN3+2PS 72Io/MN8temTNRbkFJt5K+D/tNlAX3G1luszzxTqEBOUPpJg/wn2GfqrudYMsPNPuqeekFqm9 oHy0QScr4KgZ4mko47wVG7hi+hGZs/OJ6ei9Ni6OLA7DUgQB2OY2o0ed4ht40QZz4fc+GFYbA 0u55uPGevg5l3fUIp/Ggm0pYW9KRA== X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.9 (/) > Turns out there is a better solution, so the patch can be removed > before stable 25.1 release if you prefer :) Thanks for the information. But that ship has sailed now. martin From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Rankin Cc: 24193@debbugs.gnu.org, martin rudalics , Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.159922501911146 (code B ref 24193); Fri, 04 Sep 2020 13:11:02 +0000 Received: (at 24193) by debbugs.gnu.org; 4 Sep 2020 13:10:19 +0000 Received: from localhost ([127.0.0.1]:37969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEBTv-0002tf-BR for submit@debbugs.gnu.org; Fri, 04 Sep 2020 09:10:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEBTs-0002tM-Or for 24193@debbugs.gnu.org; Fri, 04 Sep 2020 09:10:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5WjI8jRkn+C56iJnEnTmxe4V2OP4JLnWTXlIa20VYkE=; b=CBs1f6IUCKn1ZsfXFYl2V7WBeD kHkaDtS3p2OmzbqqREV7lmw5Sao5crFUw1hQIA8UjXI37VyQpL1htg6jVmw9B7Ld2p1kh+QkzbnY/ P7lJdHyW90K9eVvONc2HazHI1TaZwj4VMA0PZ7zdtA1FQ79Ee8PQNMboVTQVJCr4+lh0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEBTc-0007vk-LX; Fri, 04 Sep 2020 15:10:10 +0200 From: Lars Ingebrigtsen References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> <83fuq4g5jw.fsf@gnu.org> <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> X-Now-Playing: The Pentangle's _Cruel Sister_: "A Maid That's Deep in Love" Date: Fri, 04 Sep 2020 15:09:59 +0200 In-Reply-To: <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> (Paul Rankin's message of "Fri, 02 Sep 2016 14:06:44 +1000") Message-ID: <87zh65adso.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Paul Rankin writes: >> > >> We can install the attached hack in Emacs 25.1 and leave this >> > >> subject alone until someone has a better solution. >> > > >> > > Fine with me, modulo the provocative wording in the doc. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Paul Rankin writes: >> > >> We can install the attached hack in Emacs 25.1 and leave this >> > >> subject alone until someone has a better solution. >> > > >> > > Fine with me, modulo the provocative wording in the doc. >> > >> > Installed with, hopefully, less provocative wording in the doc. >> >> Thanks. > > Turns out there is a better solution, so the patch can be removed > before stable 25.1 release if you prefer :) Skimming this thread, Martin's patch was applied (which seemed to fix the issue?), but then Paul said there's a better solution? (But not what it was.) So I'm not sure whether there's more to do here, or whether the bug report should be closed. Anybody? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 21:21:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Rankin Subject: bug#24193: closed (Re: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text) Message-ID: References: <83ft7xu0al.fsf@gnu.org> <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> X-Gnu-PR-Message: they-closed 24193 X-Gnu-PR-Package: emacs Reply-To: 24193@debbugs.gnu.org Date: Fri, 04 Sep 2020 13:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1599226922-22711-1" This is a multi-part message in MIME format... ------------=_1599226922-22711-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24193: 25.1; `window-min-size' fails for horizontal width when margins >= =3D body text which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 24193@debbugs.gnu.org. --=20 24193: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24193 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1599226922-22711-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24193-done) by debbugs.gnu.org; 4 Sep 2020 13:41:40 +0000 Received: from localhost ([127.0.0.1]:38043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEByG-0005tk-7U for submit@debbugs.gnu.org; Fri, 04 Sep 2020 09:41:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEByE-0005tY-PO for 24193-done@debbugs.gnu.org; Fri, 04 Sep 2020 09:41:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42899) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEBy9-00063i-50; Fri, 04 Sep 2020 09:41:33 -0400 Received: from [176.228.60.248] (port=3567 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kEBy8-0008Ll-JF; Fri, 04 Sep 2020 09:41:32 -0400 Date: Fri, 04 Sep 2020 16:41:22 +0300 Message-Id: <83ft7xu0al.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87zh65adso.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 04 Sep 2020 15:09:59 +0200) Subject: Re: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> <83fuq4g5jw.fsf@gnu.org> <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> <87zh65adso.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 24193-done Cc: 24193-done@debbugs.gnu.org, rudalics@gmx.at, hello@paulwrankin.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , 24193@debbugs.gnu.org, martin rudalics > > Date: Fri, 04 Sep 2020 15:09:59 +0200 > > > Turns out there is a better solution, so the patch can be removed > > before stable 25.1 release if you prefer :) > > Skimming this thread, Martin's patch was applied (which seemed to fix > the issue?), but then Paul said there's a better solution? (But not > what it was.) > > So I'm not sure whether there's more to do here, or whether the bug > report should be closed. Anybody? It should be closed; done. ------------=_1599226922-22711-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Aug 2016 09:14:56 +0000 Received: from localhost ([127.0.0.1]:60652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX37f-00030U-SP for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX37e-00030H-Jw for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX37Y-0007y9-Fe for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX37X-0007xx-Ae for submit@debbugs.gnu.org; Tue, 09 Aug 2016 05:14:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX37V-0004W4-6P for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2016 05:14:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX37Q-0007xH-23 for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2016 05:14:43 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:43010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX37N-0007tU-Jf for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2016 05:14:39 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6AA5620388 for ; Tue, 9 Aug 2016 05:14:27 -0400 (EDT) Received: from web1 ([10.202.2.211]) by compute7.internal (MEProxy); Tue, 09 Aug 2016 05:14:27 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=/OB O9NduaSKwV44wwPFvijWLcCw=; b=B+NG9Y/H6JbiaI/LECH37MXmbbG8gIMtWgn Ls25mTeF5Q/0Me1KVT2h6GsgyrhXK1zVzCnDTJCr0msNO9Ak0oozJ5L84BJRaho4 FxlM0zexYkfr6/D2x/WaOvRF/zqXQC7wEo2VYFD3jpugFh6fFxCvisre8/SW5bmL CXAx/MpQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=/OBO9NduaSKwV44wwPFvijWLcCw=; b=rJijA ailglCJjg9BzEXBgWHtMZDJPrkgASPy8lHBkfCL72bY9pkbNLKnxQ1ChEmNEDcHR TpQ95ijMxA9HSHuZDIhUnLiwfzPhR6G8cwtAeiM803X1dp1kCTBLCbK5cGVpZLm7 ISleO1MmACeHODQOZ/0CrDc9x9w2roSbpm/pcw= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3BC6F6A5F6; Tue, 9 Aug 2016 05:14:27 -0400 (EDT) Message-Id: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> X-Sasl-Enc: CmZJFx2ESPLW2LyJaQgojCuQ3Bv6wUgTSQtuFCfGT7RS 1470734067 From: Paul Rankin To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-b9085e99 Subject: 25.1; `window-min-size' fails for horizontal width when margins >= body text Date: Tue, 09 Aug 2016 19:14:27 +1000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) There appears to be a change to `window-min-size' that gives an erroneously large minimum horizontal window size when the combined size of window margins exceed that of the body text, e.g. in a frame 80 columns wide, with left margin 20 columns and right margin 20 columns, would return a minimum horizontal size of 42, when body text would be 40. This causes `split-window-right' to fail. To reproduce: 1. emacs -Q 2. in a frame 80 columns wide... 3. M-: (set-window-margins nil 20 20) 4. C-x 3 => "Window # too small for splitting (2)" 5. M-: (window-min-size nil t) => 42 Expected results: Window should split horizontally. Minimum window width should not be dictated by margin width. Actual results: Margin width dictates minimum window width and prevents window splitting. Configuration: GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G31)) of 2016-08-09 MacBook Pro (Retina, 15-inch, Mid 2014) 2.2 GHz Intel Core i7 16 GB 1600 MHz DDR3 Intel Iris Pro 1536 MB ------------=_1599226922-22711-1-- From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: "Paul W. Rankin" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 24193@debbugs.gnu.org, martin rudalics , Paul Rankin , Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.159923156024964 (code B ref 24193); Fri, 04 Sep 2020 15:00:02 +0000 Received: (at 24193) by debbugs.gnu.org; 4 Sep 2020 14:59:20 +0000 Received: from localhost ([127.0.0.1]:40353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEDBP-0006Ua-O2 for submit@debbugs.gnu.org; Fri, 04 Sep 2020 10:59:20 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:48762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kED7E-0006OC-Ug for 24193@debbugs.gnu.org; Fri, 04 Sep 2020 10:55:01 -0400 MIME-Version: 1.0 Feedback-ID: 791:353:null:purelymail Feedback-ID: 791:353:null:purelymail Feedback-ID: 791:353:null:purelymail Feedback-ID: 791:353:null:purelymail Feedback-ID: 791:353:null:purelymail DKIM-Signature: a=rsa-sha256; b=Aj2E8hgOf0y1hVjvudMr2cJNEit5HqMdHGQc9UhyLDLAIYJ1CeCbrt633n8yGq2pxssXMpzRrlUGcr0YYsPkRMPRXHT7u5tqqYpcYe4kQiM9diPFlYD7U1QCUmz2bALYk+anaq7+Zv0wZqFqfLCElGMWTu3hgAdD5oDatJLKrBKDNdswdCPPNZXOKlBYvb47BXUuevIL/rCrok8QzleYQSPlX7gb+5igyb6dgl3g5VXNxYaFF7BknAoBL2oRLf8DGZ7FOMyWnvZJnkn/OV/1hFZj7coT4CBy8V/IzdyziFDu9yuieXmIknHSXlxJxSWDQppkLVsjACRu+HLo0U1Ahg==; s=purelymail3; d=bydasein.com; v=1; bh=qRo0qCv0WoD+EUb1pbJQiJqhGu1qEadlhho3/CtImNY=; h=Received:From:To; DKIM-Signature: a=rsa-sha256; b=RAWtK1pr1m8r9Ksey9pkSXh6ag6VkTh7IdyAk8VyHwz01cFjb847aADFsEZre0kRzhc9vLCAFAQsJ1YlRLHDUJukBmhBYVYprR1w/VGv5bs9HTdzbS4kKMlbuGRgNhLNxxbfIWLcW+xjme8L+tVwlIOkZwr06DxvjoTlDOoHRspQ4PkjhszM5u34qGXCjO+so9vHb7ymyc2ONEkVEEvT2Xmd8kSukESSxejyg2vHMxFpgwDqjvD6y2ugw/BACwnntpqYzQZ4Ehvq14AfIM7EEfWNWURkJg4Zi56yjjK5m1YeLuebkEulxmeTpucSaWp+0GOVo43W1Hfvu8v0EqGwmQ==; s=purelymail3; d=purelymail.com; v=1; bh=qRo0qCv0WoD+EUb1pbJQiJqhGu1qEadlhho3/CtImNY=; h=Received:From:To; X-Pm-Original-To: 24193@debbugs.gnu.org Received: from 3.82.248.112 (EHLO inbox.purelymail.com) ([3.82.248.112]) by ip-172-30-0-247.ec2.internal (JAMES SMTP Server ) with ESMTPA ID -1666560395; Fri, 04 Sep 2020 14:54:21 +0000 (UTC) Date: Sat, 05 Sep 2020 00:54:21 +1000 From: "Paul W. Rankin" In-Reply-To: <87zh65adso.fsf@gnus.org> References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> <83fuq4g5jw.fsf@gnu.org> <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> <87zh65adso.fsf@gnus.org> User-Agent: Purely Mail via Roundcube/1.4.7 Message-ID: <2263fe3a9530eb4f7f1b5cc82848f663@bydasein.com> X-Sender: pwr@bydasein.com Organization: By Dasein Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Fri, 04 Sep 2020 10:59:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2020-09-04 23:09, Lars Ingebrigtsen wrote: > Paul Rankin writes: >> Turns out there is a better solution, so the patch can be removed >> before stable 25.1 release if you prefer :) > > Skimming this thread, Martin's patch was applied (which seemed to fix > the issue?), but then Paul said there's a better solution? (But not > what it was.) > > So I'm not sure whether there's more to do here, or whether the bug > report should be closed. Anybody? I was mistaken. The min-margins parameter is still required. Sorry for the confusion. From unknown Sat Aug 16 21:21:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24193: 25.1; `window-min-size' fails for horizontal width when margins >= body text Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Paul W. Rankin" Cc: 24193@debbugs.gnu.org, martin rudalics , Paul Rankin , Eli Zaretskii Received: via spool by 24193-submit@debbugs.gnu.org id=B24193.159930894512972 (code B ref 24193); Sat, 05 Sep 2020 12:30:02 +0000 Received: (at 24193) by debbugs.gnu.org; 5 Sep 2020 12:29:05 +0000 Received: from localhost ([127.0.0.1]:41747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEXJZ-0003N8-Fq for submit@debbugs.gnu.org; Sat, 05 Sep 2020 08:29:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEXJW-0003Ma-TK for 24193@debbugs.gnu.org; Sat, 05 Sep 2020 08:29:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UjbrBaUibORwKHZjTsP5G8ZqiZiNU6KtDLhJQhPH9o0=; b=QueI9Lfb4epo6Zb8og91n3ZOIa z+mFN/9ktBBmB8HE9MksOc9oXKnT/kzf7PNBUhuN6gmXmaaum9gK8/KjikGvi+ktPiRXuVowPooJ/ rCFT4P7l5ZhJ0B23PLIj1sSJMxS2d+ItR/RBnooxJsOSOu5mJAd2oum1mjimL3M24Bug=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEXJK-0003Yn-Jc; Sat, 05 Sep 2020 14:28:55 +0200 From: Lars Ingebrigtsen References: <1470734067.1046352.690034953.5B0A54FE@webmail.messagingengine.com> <57A9A714.4010600@gmx.at> <1470736919.1056423.690073473.51DB916F@webmail.messagingengine.com> <57A9AD24.6090303@gmx.at> <1470739033.1062589.690104169.1A130EC9@webmail.messagingengine.com> <83ziomgfcd.fsf@gnu.org> <1470755912.754355.690353977.4F305064@webmail.messagingengine.com> <83r39ygcr5.fsf@gnu.org> <1471151490.3505042.694683657.3D32B261@webmail.messagingengine.com> <831t1rh14o.fsf@gnu.org> <57B17D1C.7070200@gmx.at> <83shu6f519.fsf@gnu.org> <57B2C245.3090409@gmx.at> <83fuq4g5jw.fsf@gnu.org> <1472789204.526419.713461185.62C22AFA@webmail.messagingengine.com> <87zh65adso.fsf@gnus.org> <2263fe3a9530eb4f7f1b5cc82848f663@bydasein.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEU5JSFIMy42IR0o EhAeCgp3ZmBnU01cSENXQjyHd3Cdjof///9o0S9GAAAAAWJLR0QLH9fEwAAAAAd0SU1FB+QJBQwY LbURXD8AAAFxSURBVDjLdZJLTsMwEIad5ALYCc22iXktE9sq24axukeCSl0iIF3TonZNKsENQD0A i94Sm7zc2B1pnMif/n8yM0EeRgj5CI39NB2rN/X4DyS4O5D7OrFBog9xDhbIQ3WwuQ0yDbIH24pp kK8dxTWYvThAoGpj6gb527APqrKifEbIABCVVyG/tKw8lRPKl2xolXPKbgK+IhbIlzEO83A3BJk+ 8GQU2FYqPnFpjV2NQn0Webb3gVV+FTsbTJX76pp3AAAENC1mpOpAdhb4Y1JPnTMcdqDYH+5/f2pJ wDDvrTblU1k1rTDSAxZ7280rrb0w7cG0/Fg87qNaknJDsfXiZV2z+X9axWh0+H7ntmJaxov52tii 0TmYOzdBt0OfuwFrv2EIEkGcQLWduhV6jCdAdgokA9A10jcoju5ZaAIh5aBEayVANpoKjmvIBtyF vQKkAJDKTLPiogP6pg0Qt9wARggMbgCRBCe4i7h0ASii1uoPky7q2T4YcJEAAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjAtMDktMDVUMTI6MjQ6NDUrMDA6MDDSIEriAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIwLTA5LTA1VDEyOjI0OjQ1KzAwOjAwo33yXgAAAABJRU5ErkJggg== X-Now-Playing: Thomas Mery's _Les couleurs, les ombres_: "Aux =?UTF-8?Q?fen=C3=AAtre?= immenses" Date: Sat, 05 Sep 2020 14:28:48 +0200 In-Reply-To: <2263fe3a9530eb4f7f1b5cc82848f663@bydasein.com> (Paul W. Rankin's message of "Sat, 05 Sep 2020 00:54:21 +1000") Message-ID: <87ft7w76gv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Paul W. Rankin" writes: > On 2020-09-04 23:09, Lars Ingebrigtsen wrote: >> Paul Rankin writes: >>> Turns out there is a better solution, so the patch can be removed >>> before stable 25.1 release if y [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Paul W. Rankin" writes: > On 2020-09-04 23:09, Lars Ingebrigtsen wrote: >> Paul Rankin writes: >>> Turns out there is a better solution, so the patch can be removed >>> before stable 25.1 release if you prefer :) >> Skimming this thread, Martin's patch was applied (which seemed to >> fix >> the issue?), but then Paul said there's a better solution? (But not >> what it was.) >> So I'm not sure whether there's more to do here, or whether the bug >> report should be closed. Anybody? > > I was mistaken. The min-margins parameter is still required. Sorry for > the confusion. OK, then I guess everything discussed here was fixed, and I'm closing this bug report. If there's any more to be done here, please respond to the debbugs address, and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no