emacs-devel
[Top][All Lists]
Advanced

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

Re: 'struct window' cleanup #3


From: Eli Zaretskii
Subject: Re: 'struct window' cleanup #3
Date: Wed, 27 Jun 2012 20:37:19 +0300

> From: Stefan Monnier <address@hidden>
> Date: Wed, 27 Jun 2012 09:32:15 -0400
> Cc: , address@hidden
> 
> >    /* 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").

I agree, but beware of those 'if (!w->last_point)' gotchas...



reply via email to

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