help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: something like ring.el needed, but not circular


From: Michal
Subject: Re: something like ring.el needed, but not circular
Date: Mon, 10 Mar 2008 10:00:47 +0100
User-agent: mozilla news reader

Thanks

"Drew Adams" <drew.adams@oracle.com> writes:

>> Is there in emacs a package that allows walking through
>> a list in both directions, like ring.el, but which is NOT a 
>> ring (I mean circular)?
>
> Might one ask "why"? What do you have against rings? ;-)
>
> If you mean that you want the behavior of, say, Emacs input-history
> traversal: two directions, but two endpoints, then take a look at the
> input-history code. Look for command `next-history-element' in library
> simple.el.
>
> Or you can use a ring and define an endpoint position on it - have your code
> stop when it reaches that point from either direction.




reply via email to

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