[Top][All Lists]

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

Re: Reachable killed buffers

From: Paul Eggert
Subject: Re: Reachable killed buffers
Date: Wed, 12 Sep 2012 10:55:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

On 09/12/2012 08:59 AM, Dmitry Antipov wrote:
> -  Lisp_Object tail;
> -  for (tail = list; CONSP (tail); tail = XCDR (tail))
> +  Lisp_Object tail = list;
> +  while (CONSP (tail) && !CONS_MARKED_P (XCONS (tail)))
> +      tail = XCDR (tail);

This will keep killed buffers that happen to follow
an item on the list that is already marked for other
reasons.  Shouldn't all the killed buffers be discarded?

Also, as a minor style matter, I prefer the form of that
for-loop to the less-clear while loop.

reply via email to

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