unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14222: A problem with computing fringe widths
@ 2013-04-17 15:21 martin rudalics
  2014-08-29 17:10 ` martin rudalics
  0 siblings, 1 reply; 2+ messages in thread
From: martin rudalics @ 2013-04-17 15:21 UTC (permalink / raw)
  To: 14222

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#14222: A problem with computing fringe widths
  2013-04-17 15:21 bug#14222: A problem with computing fringe widths martin rudalics
@ 2014-08-29 17:10 ` martin rudalics
  0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2014-08-29 17:10 UTC (permalink / raw)
  To: 14222-done

Fixed with current trunk.  Bug closed.

martin








^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-29 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17 15:21 bug#14222: A problem with computing fringe widths martin rudalics
2014-08-29 17:10 ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).