From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [RFC] [PATCH] Introduce org-specific functions for (next/previous)-visible-heading Date: Mon, 19 Jan 2015 21:45:04 +0000 Message-ID: References: <871tmric73.fsf@gmail.com> <87k30iac0c.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDK8R-0005ul-3H for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 16:45:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDK8M-0003kb-1G for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 16:45:23 -0500 Received: from plane.gmane.org ([80.91.229.3]:45079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDK8L-0003kC-R1 for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 16:45:17 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YDK8J-0004kU-1e for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 22:45:15 +0100 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jan 2015 22:45:15 +0100 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jan 2015 22:45:15 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Nicolas Goaziou writes: > Hello, > > Aaron Ecay writes: > >> By default, org uses outline-next-visible-heading and the -previous- >> variant for the C-c C-n and C-c C-p keys, which means these commands >> stop on inline tasks (since they don’t know to skip them). This seems >> incorrect. > > Are you sure? This is a way to move to the next inline task (which is > some kind of headline). How do you move to it otherwise? I agree with Aaron. Actually I have written a message about that exact topic (without a patch, though) already last year -- but that did not get through, as it seems. I use inline-tasks extensively (and map them to todonotes in the pdf export). And I am always surprised to end up at an inline-task when I navigate the document. If I need to find the next inline task I can always search for a lot of *'s. > >> The attached patch adds inlinetask-aware org functions for these keys. >> Comments are welcome. > > You don't need to implement anything new, actually. If you need to > ignore inlinetasks for something, just wrap it within > `org-with-limited-levels' macro: > > (org-with-limited-levels (outline-next-visible-heading)) That wrapper is handy and works like a charm. Thanks. But I'd still argue that the default behaviour should be to skip inline tasks for all navigation commands in org. Regards, Andreas