emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Zachary Young <zacharysyoung@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Iterate over list with `org-next-item'
Date: Thu, 2 Sep 2010 17:47:38 -0700	[thread overview]
Message-ID: <AANLkTin8wNBXaKnSVtn84RdEfESkTVT80ygXgh+7vzNp@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 349 bytes --]

Hi all,

I am trying to iterate over a list with `org-next-item'. I just tried:

(ignore-errors (while (equal nil (org-next-item))))

and it worked.

Is there a better way to do this? I'm not very versed in Elisp, and
`org-next-item' returning `nil' on success, and throwing an error at the end
of the list is throwing me a bit.

Thank you,
Zachary

[-- Attachment #1.2: Type: text/html, Size: 497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2010-09-03  0:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03  0:47 Zachary Young [this message]
2010-09-03  2:28 ` Iterate over list with `org-next-item' Nick Dokos
2010-09-07 19:33   ` Nicolas Goaziou
2010-09-07 19:58     ` Nick Dokos
2010-09-07 20:14       ` Nicolas Goaziou

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTin8wNBXaKnSVtn84RdEfESkTVT80ygXgh+7vzNp@mail.gmail.com \
    --to=zacharysyoung@gmail.com \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).