At Fri, 20 Nov 2009 19:13:11 +0100,
Stephan Schmitt wrote:
> 
> Hi Eric,
> 
> try this:
> 
> (progn
>   (org-cycle-agenda-files)
>        (when (not (and (bolp) (org-on-heading-p)))
>        (outline-previous-visible-heading 1)
>        (or (and (bolp) (org-on-heading-p))
>            (outline-next-visible-heading 1))))

Excellent.  Works perfectly.  (and makes so much sense that it gives
me a doh moment -- why didn't I think of that?  isn't hindsight
wonderful? :-) 

Many thanks.


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

Reply via email to