Re: [Orgmode] Iterate over list with `org-next-item'

2010-09-07 Thread Nick Dokos
Nicolas Goaziou n.goaz...@gmail.com wrote: * org.el: ... * org-mouse.el: ... As you can see, the second almost matches what you came up with, but the condition is simpler: the code *uses* the error raised to get out of the (otherwise infinite) loop, so there is no need

Re: [Orgmode] Iterate over list with `org-next-item'

2010-09-07 Thread Nicolas Goaziou
Hello, Nick Dokos writes: Zachary Young zacharysyo...@gmail.com wrote: 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

Re: [Orgmode] Iterate over list with `org-next-item'

2010-09-07 Thread Nicolas Goaziou
Nick Dokos writes: OK, thanks for the pointer: makes sense. I hadn't pulled your reimplementation till just now. Of course, these functions didn't exist before, so there was no choice - but maybe the few places where org-next-item is used need to be examined and brought up to snuff, using

[Orgmode] Iterate over list with `org-next-item'

2010-09-02 Thread Zachary Young
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

Re: [Orgmode] Iterate over list with `org-next-item'

2010-09-02 Thread Nick Dokos
Zachary Young zacharysyo...@gmail.com wrote: 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