From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18390: 24.4.50; REGRESSION: `split-window' error Date: Sat, 01 Oct 2016 18:44:50 +0300 Message-ID: <83lgy8kr9p.fsf@gnu.org> References: <04dc6e08-382f-46a2-8d57-62522529e7c4@default> <901673d8-75c2-494f-956d-9f938a8e87b4@default> <83a8eoms29.fsf@gnu.org> <20161001130144.GA39607@breton.holly.idiocy.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1475336720 22367 195.159.176.226 (1 Oct 2016 15:45:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Oct 2016 15:45:20 +0000 (UTC) Cc: 18390@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 01 17:45:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqMTP-0004em-Kb for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 17:45:11 +0200 Original-Received: from localhost ([::1]:56213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqMTO-00083F-6H for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 11:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqMTI-000835-L7 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 11:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqMTG-0005l3-IR for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 11:45:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqMTG-0005kz-Fn for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqMTG-0006FL-FL for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2016 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 18390-submit@debbugs.gnu.org id=B18390.147533669823987 (code B ref 18390); Sat, 01 Oct 2016 15:45:02 +0000 Original-Received: (at 18390) by debbugs.gnu.org; 1 Oct 2016 15:44:58 +0000 Original-Received: from localhost ([127.0.0.1]:41267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqMTB-0006Ep-Mq for submit@debbugs.gnu.org; Sat, 01 Oct 2016 11:44:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqMT9-0006Ec-Db for 18390@debbugs.gnu.org; Sat, 01 Oct 2016 11:44:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqMT1-0005g9-3g for 18390@debbugs.gnu.org; Sat, 01 Oct 2016 11:44:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqMT1-0005fm-0N; Sat, 01 Oct 2016 11:44:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1948 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bqMSy-0008AJ-Ci; Sat, 01 Oct 2016 11:44:45 -0400 In-reply-to: <20161001130144.GA39607@breton.holly.idiocy.org> (message from Alan Third on Sat, 1 Oct 2016 14:01:44 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123854 Archived-At: > Date: Sat, 1 Oct 2016 14:01:44 +0100 > From: Alan Third > Cc: Drew Adams , 18390@debbugs.gnu.org > > On Sat, Oct 01, 2016 at 10:44:46AM +0300, Eli Zaretskii wrote: > > The backtrace shows that this is the reason for signaling the error: > > > > split-window(# 100 t) > > > > This requests to split an 80-column window while leaving the original > > window 100 columns, which is clearly impossible. So why is this a > > bug in Emacs and not in palette.el? > > I can’t see how you know it’s an 80 column window, could you explain > it to me? The default width of an Emacs window displayed by "emacs -Q" is 80 columns. And that is the width of a window I see when I repeat Drew's recipe and get the same error signaled as in his report. > Looking at the code in palette.el, it requests a 115 character wide > frame, is it possible that Emacs will return a smaller than requested > frame? I don't really know what palette.el is doing, but it could be that it doesn't let the Emacs frame time to resize itself before splitting the window. In any case, I once again ask the question: why should we assume it's a bug in Emacs, and not first try looking into what palette.el does? > > (make-frame > `((menu-bar-lines . 0) (tool-bar-lines . 0) (left-fringe . 0) (right-fringe . 0) > (fringe . 0) (height . 100) (width . 115) (minibuffer) (vertical-scroll-bars) > (cursor-type . box) (background-color . "Black") (mouse-color . "Black") > (cursor-color . "Black") ,(cons 'font palette-font))) > > If it is then it’s up to palette.el to check what size of frame it > actually got back before trying to split the windows. Actually, adding a (sit-for 0) might be all that's needed, if this is the problem (which I'm not at all sure).