all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-pretest-bug@gnu.org, Riku Saikkonen <rjs@cs.hut.fi>,
	bug-gnu-emacs@gnu.org
Subject: Re: Frame resizing causes a crash
Date: Sun, 12 Oct 2003 01:23:36 +0200 (CEST)	[thread overview]
Message-ID: <20031012064558.NYBC10930.fep04-svc.swip.net@coolsville.localdomain> (raw)
In-Reply-To: <sgd1xtpxgqm.fsf@occarina.pna.cwi.nl> "from Lute Kamstra at Oct 7, 2003 04:30:25 pm"

> rjs@cs.hut.fi (Riku Saikkonen) writes:
> 
> > I reported the following bug here about a week ago, but haven't heard
> > anything on it since. Could someone try to reproduce the bug, so that
> > I know that it's not only my Emacsen that are at fault? In particular,
> > it would be nice to know if the current CVS version has this bug...
> 
> Thank you for your report.  I used today's CVS (GTK toolkit) and was
> able to reproduce the bugs you describe.  I'm not knowledgeable on
> redisplay things, though.  So we just have to wait until one of the
> redisplay hackers has time to work on this.
> 

I've added a new function to calculate window sizes when a frame
shrinks.  There was a bug in that small windows at the top was
resized to a negative value (that means delete this window).  The
negative value is then used to calculate the position of the next window
which is why there was confusion.  Also, when a window was deleted because
it would be too small, the amount of resize needed was not distributed
among the other windows, so the remaining windows where too big for the
frame.  In this example, Emacs needed to shrink all windows 11 lines,
but the smallest one atop was only 4.  So instead of shrinking 11*3 +
1 reminder = 34, we got 4 + 11*2 + 1 reminder = 27.

Anyway, the new implementation tries to keep the number of windows intact
as long as possible, shrinking larger windows instead until we really
need to delete a window.  Please try this version and see if it looks OK.
BTW, this is in CVS head only.

Thanks,

	Jan D.

  reply	other threads:[~2003-10-11 23:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-26 13:53 Frame resizing causes a crash Riku Saikkonen
2003-10-07 14:07 ` Riku Saikkonen
2003-10-07 14:30   ` Lute Kamstra
2003-10-11 23:23     ` Jan D. [this message]
2003-10-13 14:12       ` Lute Kamstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031012064558.NYBC10930.fep04-svc.swip.net@coolsville.localdomain \
    --to=jan.h.d@swipnet.se \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rjs@cs.hut.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.