[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").
Stefan
- Re: 'struct window' cleanup #2, (continued)
- Re: 'struct window' cleanup #2, Eli Zaretskii, 2012/06/26
- Re: 'struct window' cleanup #2, Dmitry Antipov, 2012/06/26
- Re: 'struct window' cleanup #2, Eli Zaretskii, 2012/06/26
- Re: 'struct window' cleanup #2, Stefan Monnier, 2012/06/26
- Re: 'struct window' cleanup #2, Eli Zaretskii, 2012/06/26
- 'struct window' cleanup #3, Dmitry Antipov, 2012/06/27
- Re: 'struct window' cleanup #3,
Stefan Monnier <=
- Re: 'struct window' cleanup #3, Eli Zaretskii, 2012/06/27
- Re: 'struct window' cleanup #3, Eli Zaretskii, 2012/06/27
- Re: 'struct window' cleanup #3, Dmitry Antipov, 2012/06/27
- Re: 'struct window' cleanup #3, Eli Zaretskii, 2012/06/27
- Re: 'struct window' cleanup #3, Dmitry Antipov, 2012/06/28
- Re: 'struct window' cleanup #2, martin rudalics, 2012/06/27
- Re: 'struct window' cleanup #2, Eli Zaretskii, 2012/06/27
Re: 'struct window' cleanup #2, Eli Zaretskii, 2012/06/25