From: "Drew Adams" <drew.adams@oracle.com>
To: "'Michal'" <rabbit50@tenbit.pl>,
"'emacs mailing list'" <help-gnu-emacs@gnu.org>
Subject: RE: something like ring.el needed, but not circular
Date: Sun, 9 Mar 2008 10:59:45 -0800 [thread overview]
Message-ID: <002801c88217$bdaefe40$0600a8c0@us.oracle.com> (raw)
In-Reply-To: <m24pbf7n58.fsf@tenbit.pl>
> 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.
next prev parent reply other threads:[~2008-03-09 18:59 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 [this message]
2008-03-10 9:00 ` Michal
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002801c88217$bdaefe40$0600a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=rabbit50@tenbit.pl \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.