emacs-devel
[Top][All Lists]
Advanced

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

Re: lists.texi


From: Richard Stallman
Subject: Re: lists.texi
Date: Mon, 20 Jun 2005 13:52:08 -0400

    No.  The bug is that if the size of the ring is larger than the
    length, the current version of `ring-elements' introduces fake `nil'
    elements.  The delq gets rid of all nil's, fake ones and potentially
    legitimate ones, because certain ring elements could _really_ be nil.
    The nconc re-adds the correct number of legitimate nil's.  See the
    ielm run below.

Ok.

If you want to do a little work, I am sure you could write a single
loop that produces the right elements in the right order.  Then you
could rotate it properly with a single call to setcdr followed by
nconc'ing the pieces in the opposite order.




reply via email to

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