[Top][All Lists]

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

Re: static declaration inside `window_scroll_pixel_based' in window.c

From: Chong Yidong
Subject: Re: static declaration inside `window_scroll_pixel_based' in window.c
Date: Wed, 08 Mar 2006 21:04:11 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Luc Teirlinck <address@hidden> writes:

>>From my earlier message:
>    Anyway, if the above quote from `(elisp)Writing Emacs Primitives' does
>    apply here, the problem would be easy to fix with the following patch,
>    which I can install if desired.
> No, I responded too quickly.  The patch is incorrect, since it always
> re-initializes preserve_y to -1 at the start of `window_scroll_pixel_based',
> defeating its static-ness. 

You can simply initialize it in syms_of_window.

reply via email to

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