From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Bug: Export to html fails when link to header in non existing file in document present Date: Wed, 06 May 2015 14:14:22 +0200 Message-ID: References: <87oalyc7kp.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpyDi-0005wQ-Il for emacs-orgmode@gnu.org; Wed, 06 May 2015 08:14:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpyDe-0004NB-5B for emacs-orgmode@gnu.org; Wed, 06 May 2015 08:14:34 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:34998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpyDd-0004Mw-Vc for emacs-orgmode@gnu.org; Wed, 06 May 2015 08:14:30 -0400 Received: by widdi4 with SMTP id di4so199381598wid.0 for ; Wed, 06 May 2015 05:14:29 -0700 (PDT) In-Reply-To: <87oalyc7kp.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 06 May 2015 12:40:38 +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: Rasmus Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Rasmus writes: > 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 or= g file]] > > What do you expect? > > Should the "::*SOMETHING"-part be discarded without warning? Well - the ideal solution would be a warning (or error message) with a reference to the link. At the moment, a link to a non existing file is exported, a link to a section in a non existing produces a cryptic error me= ssage. At the moment, I have no clue how I can find the link. So I would hope for 1) consistent behavior for the two cases 2) a meaningful warning which helps to find the culprit 3) an html file, where the links do not work, but the export is fine. or, if 3) is not possible, meaningful error messages which actually help me to track down the error (I only found out what was causing this error accidentally) > > The internal link cannot be known without the file, as it is of the form > orgheadlineN where N=3Dn+1 and n is the number of headlines prior to > "*Something"... Sure - this is obvious. > > 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]] To fix this, I have to find the link fierst... Cheers, Rainer > > =E2=80=94Rasmus =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJVSgWiAAoJENvXNx4PUvmCo0kIAKih3ocW+LrgvMtLnurHIF6P M0vunRq+xI6cDI2L+cY2M2zM0PJ7A3pPMyVdp1rl1IvD6zn3xo59xZTK6Wth+srR hvyNFFQ02JEGB4qRwuUZK0E5oldmxdFiUf2T/2zu+92F2DRtYgrXRUg0rYXdzG4R xRFOFDn/6tlZXm7fm+1ktiHvz/k1EUq4FOPt0+QW2KQc/yG4PCmKm6oVZn0dJjEH OaoOBYlbB4gJFV4lBxCqrX+zndg850ewujzpcHYdiJaYWalgFLj0aYD//wwzJyK6 a4QJjCNYch9DvjJoXAZL14fX7ccCWWS/PwMIMBpJtsDE5O/xPVaKULZgZxpPwWM= =tT4u -----END PGP SIGNATURE----- --=-=-=--