From: Michal <rabbit50@tenbit.pl>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 'emacs mailing list' <help-gnu-emacs@gnu.org>
Subject: Re: something like ring.el needed, but not circular
Date: Mon, 10 Mar 2008 10:00:47 +0100 [thread overview]
Message-ID: <m2y78r7y2o.fsf@tenbit.pl> (raw)
In-Reply-To: <002801c88217$bdaefe40$0600a8c0@us.oracle.com> (Drew Adams's message of "Sun\, 9 Mar 2008 10\:59\:45 -0800")
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.
prev parent reply other threads:[~2008-03-10 9:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-09 18:44 something like ring.el needed, but not circular Michal
2008-03-09 18:59 ` Drew Adams
2008-03-10 9:00 ` Michal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2y78r7y2o.fsf@tenbit.pl \
--to=rabbit50@tenbit.pl \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).