From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Speed commands Date: Fri, 20 Nov 2009 20:36:39 +0000 Message-ID: <871vjtgch4.wl%ucecesf@ucl.ac.uk> References: <87aayqfh8a.wl%ucecesf@ucl.ac.uk> <8D1991FE-E04A-41DF-8919-C72E4EA9AFF1@uva.nl> <4AFDB0AB.9040607@cs.tu-berlin.de> <78C217F4-D3EA-46BA-A237-CA0E54216D5E@uva.nl> <20091120143546.GA1227@taupan.ath.cx> <95E34029-6EF2-4E77-B303-37676E5FA79F@gmail.com> <87lji16s33.wl%ucecesf@ucl.ac.uk> <4B06DC37.2020107@cs.tu-berlin.de> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBaDr-0003TN-Ks for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 15:36:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBaDm-0003LV-Uz for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 15:36:51 -0500 Received: from [199.232.76.173] (port=55632 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBaDm-0003LM-JU for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 15:36:46 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:43137) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBaDm-0003Nu-2s for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 15:36:46 -0500 In-Reply-To: <4B06DC37.2020107@cs.tu-berlin.de> 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: Stephan Schmitt Cc: emacs-orgmode@gnu.org, Carsten Dominik 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.