bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18390: 24.4.50; REGRESSION: `split-window' error


From: Alan Third
Subject: bug#18390: 24.4.50; REGRESSION: `split-window' error
Date: Sat, 1 Oct 2016 14:01:44 +0100
User-agent: Mutt/1.7.0 (2016-08-17)

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(#<window 8 on Palette (Hue x Saturation)> 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?

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?

    (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.
-- 
Alan Third





reply via email to

[Prev in Thread] Current Thread [Next in Thread]