From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Structured links to headings with endless depth Date: Wed, 14 Mar 2018 07:58:34 +0100 Message-ID: References: <1520849353.1793.66.camel@gmail.com> <87tvtlsi2f.fsf@gmail.com> <1520851190.1793.74.camel@gmail.com> <87lgexfnl6.fsf@christianmoe.com> <1520862394.1793.83.camel@gmail.com> <87r2opcrkm.fsf@nicolasgoaziou.fr> <1520867316.1793.87.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ew0Mv-0002Wt-FG for Emacs-orgmode@gnu.org; Wed, 14 Mar 2018 02:58:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ew0Mu-0003Qs-Nr for Emacs-orgmode@gnu.org; Wed, 14 Mar 2018 02:58:37 -0400 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:39151) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ew0Mu-0003QS-JO for Emacs-orgmode@gnu.org; Wed, 14 Mar 2018 02:58:36 -0400 Received: by mail-qk0-x229.google.com with SMTP id z197so2388133qkb.6 for ; Tue, 13 Mar 2018 23:58:35 -0700 (PDT) In-Reply-To: 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: John Kitchin Cc: Eric S Fraga , Nicolas Goaziou , org-mode-email , Christian Moe , ST Hi John On Wed, Mar 14, 2018 at 4:49 AM, John Kitchin wrote: > (defun xpath-follow (path) Thank you for this solution. I plan to adapt it to match the link path only to a portion of a headline branch by ignoring the higher and lower levels not given in the link path for my use case: , (arbitrarily more levels upwards) , * [...] , * , * , * TODO , * :5: , - The tag 5 is my rating of this audio recording. , - The audio recording is stored under the file path , [...]/////.mp3 , , * TODO [...] , - The theme is very similar to this prelude , [[/://]]. , * [...] , - [...] like in this piano concert , [[/:/]]. Michael