emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Iterate over list with `org-next-item'
@ 2010-09-03  0:47 Zachary Young
  2010-09-03  2:28 ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: Zachary Young @ 2010-09-03  0:47 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-07 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-03  0:47 Iterate over list with `org-next-item' Zachary Young
2010-09-03  2:28 ` Nick Dokos
2010-09-07 19:33   ` Nicolas Goaziou
2010-09-07 19:58     ` Nick Dokos
2010-09-07 20:14       ` Nicolas Goaziou

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