From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Should org-get-outline-path strip dedicated targets? Date: Sat, 11 Jun 2016 10:19:39 +0200 Message-ID: <87eg84dtno.fsf@saiph.selenimh> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBe92-0000FT-TW for emacs-orgmode@gnu.org; Sat, 11 Jun 2016 04:19:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBe8z-0007YN-P7 for emacs-orgmode@gnu.org; Sat, 11 Jun 2016 04:19:52 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBe8z-0007YG-Ic for emacs-orgmode@gnu.org; Sat, 11 Jun 2016 04:19:49 -0400 In-Reply-To: (timor's message of "Fri, 3 Jun 2016 14:24:43 +0200") 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" To: timor Cc: emacs-orgmode@gnu.org Hello, timor writes: > If I have a document like this: > > * some header <> > ** some subtree > *** some entry > > Then calling org-get-outline-path on the deepest headline returns > ("some header <>" "some subtree") > > I don't know what exactly org-get-outline-path is used for in org > mode, but for what I want to use it, I will remove the > "<>" part manually. > > I was just wondering if maybe this should already be done in > org-get-outline-path itself, since links are also replaced by their > description according to the documentation. Links and targets are different in the sense that the former has an invisible part, unlike to the latter. `org-get-outline-path' simply removes that part since users probably do not distinguish their headings using hidden characters. OTOH, it could make sense to preserve targets, e.g., in the following: * Doc 1 ** Introduction <> ... * Doc 2 ** Introduction <> ... Eventually, albeit tangential to the problem, I think using a CUSTOM_ID is probably better than inserting a target in a headline. Regards, -- Nicolas Goaziou