GNU bug report logs -
#14222
A problem with computing fringe widths
Previous Next
Reported by: martin rudalics <rudalics <at> gmx.at>
Date: Wed, 17 Apr 2013 15:27:02 UTC
Severity: normal
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
When computing fringe widths in compute_fringe_widths we do not resize
the frame. This can have consequences as the following simple form to
be evaluated with emacs -Q shows:
(progn
(set-frame-parameter (selected-frame) 'scroll-bar-width 6)
(sit-for 1)
(set-frame-parameter (selected-frame) 'left-fringe 27)
(sit-for 1)
(set-frame-parameter (selected-frame) 'scroll-bar-width 6)
(sit-for 1))
Here, the resulting frame has no scrollbars (tested with Emacs 24.3 on
Windows XP). The bug can hit much more often than in the contrived
scenario given above. It usually goes unnoticed because people either
do not change fringe sizes at all or change only the fringe sizes of
individual windows or invoke x_set_window_size anyway.
I'm not sure whether we can safely call x_set_window_size in
compute_fringe_widths. Obviously, the problem should go away if we
removed fringes from our calculations of frame widths (on graphic
systems).
martin
This bug report was last modified 10 years and 347 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.