[Top][All Lists]

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

Re: 'struct window' cleanup #3

From: Stefan Monnier
Subject: Re: 'struct window' cleanup #3
Date: Wed, 27 Jun 2012 09:32:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> 2. Fields hscroll and min_hscroll are good candidates for conversion
>    too, but this requires some redesign of `struct saved_window', most
>    probably to yet another pseudovector.

Actually, you can just leave the struct saved_window unchanged, and
convert to/from Lisp_Object when copying the (min_)hscroll to/from the
struct saved_window.

>    /* Right after splitting windows, last_point may be nil.  */
>    && INTEGERP (w->last_point);
>    My tests never shows zero here, so I'm installing assertion instead.

Since positions are strictly positive, you can use -1 as meaning "nil".
(I recommend -1 over 0, because it's "more different").


reply via email to

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