[Top][All Lists]

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

Re: Emacs allocates unnecessary memory during scrolling

From: Kim F. Storm
Subject: Re: Emacs allocates unnecessary memory during scrolling
Date: Thu, 19 Oct 2006 11:47:00 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>> YAMAMOTO Mitsuharu san says:
>>> In xdisp.c:
>>>> static int
>>>> display_mode_line (w, face_id, format)
>>> snip
>>>> {
>>> snip
>>>>   init_iterator (&it, w, -1, -1, NULL, face_id);
>>>>   prepare_desired_row (it.glyph_row);
>>> Before prepare_desired_row(), it.glyph_row->enabled_p happens not
>>> to be 0.  This might be caused by the interruption of redisplay
>>> during scrolling.
>>> Appending the next code before prepare_desired_row() may fix the
>>> problem.
>>>> it.glyph_row->enabled_p = 0;
>>> But he doesn't know the place is appropriate or not.

Looking closer at the code, this is indeed a trivial way to fix the

I have committed the change.

Thank you.

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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