From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Bug: Export to html fails when link to header in non existing file in document present Date: Wed, 06 May 2015 12:40:38 +0200 Message-ID: <87oalyc7kp.fsf@gmx.us> References: 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]:43816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypwl6-0004jR-Ss for emacs-orgmode@gnu.org; Wed, 06 May 2015 06:40:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypwl1-0005nN-Ty for emacs-orgmode@gnu.org; Wed, 06 May 2015 06:40:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:50872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypwl1-0005n1-Nk for emacs-orgmode@gnu.org; Wed, 06 May 2015 06:40:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ypwkx-0007YN-Ex for emacs-orgmode@gnu.org; Wed, 06 May 2015 12:40:47 +0200 Received: from 46.166.188.235 ([46.166.188.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2015 12:40:47 +0200 Received: from rasmus by 46.166.188.235 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2015 12:40:47 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Rainer M Krug writes: > more info and a reproducible example: > > when exporting the following org file > > * A link to a non existent file > [[file:~/NONEXISTENT.org::*SOMETHING][Link to header in non existing org file]] What do you expect? Should the "::*SOMETHING"-part be discarded without warning? The internal link cannot be known without the file, as it is of the form orgheadlineN where N=n+1 and n is the number of headlines prior to "*Something"... Though perhaps the #-construct should work, as we know the custom-id. * A link to a non existent file [[file:~/NONEXISTENT.org::#SOMETHING][Link to header in non existing org file]] —Rasmus -- Vote for proprietary math!