From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Young Subject: Iterate over list with `org-next-item' Date: Thu, 2 Sep 2010 17:47:38 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1016432294==" Return-path: Received: from [140.186.70.92] (port=46790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrKRT-0005jK-Dh for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 20:47:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrKRP-0003oH-7A for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 20:47:43 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:51673) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrKRP-0003oC-2p for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 20:47:39 -0400 Received: by vws16 with SMTP id 16so1134826vws.0 for ; Thu, 02 Sep 2010 17:47:38 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1016432294== Content-Type: multipart/alternative; boundary=0014853d0130feb19e048f50462f --0014853d0130feb19e048f50462f Content-Type: text/plain; charset=UTF-8 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 --0014853d0130feb19e048f50462f Content-Type: text/html; charset=UTF-8 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
--0014853d0130feb19e048f50462f-- --===============1016432294== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1016432294==--