GNU bug report logs -
#18390
[w32] 24.4.50; REGRESSION: `split-window' error
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 2 Sep 2014 18:35:02 UTC
Severity: normal
Tags: moreinfo
Found in version 24.4.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
This bug report was last modified 3 years and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.