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: Thu, 07 May 2015 11:55:14 +0200 Message-ID: References: <87oalyc7kp.fsf@gmx.us> <874mnpddcp.fsf@gmx.us> <87k2wls3yn.fsf@nicolasgoaziou.fr> 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]:37978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqIWc-0000t1-RT for emacs-orgmode@gnu.org; Thu, 07 May 2015 05:55:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqIWZ-0002pF-Gx for emacs-orgmode@gnu.org; Thu, 07 May 2015 05:55:26 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:33416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqIWZ-0002p4-BJ for emacs-orgmode@gnu.org; Thu, 07 May 2015 05:55:23 -0400 Received: by wgin8 with SMTP id n8so38011265wgi.0 for ; Thu, 07 May 2015 02:55:22 -0700 (PDT) In-Reply-To: <87k2wls3yn.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 07 May 2015 01:04:16 +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 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Actually, the error you found is more interesting than what I first >> though, as any link with anchors will trigger the error, it seems. >> org-publish-cache must be non-nil, which seems to linger on publishing a >> project. > > Correct. External references can only be solved using publishing. > >> From 8e1dd6c43e8a358a85a8034825c475199bd2ffb7 Mon Sep 17 00:00:00 2001 >> From: Rasmus >> Date: Wed, 6 May 2015 15:44:26 +0200 >> Subject: [PATCH] ox-html: Improve links with search >> >> * ox-html.el (org-html-link): Handle links with search when >> not using Publish. > > Thank you. > > However, I "fixed" it at ox-publish.el's level in > e42c1611094a689f77f09cc66c5a50fb1e3ac7bb instead, and throw an error > instead of a warning. OK - I can see the error now: ,---- | user-error: Reference "29" in file "inst/matlab/org/profil5.m" cannot be = resolved without publishing `---- This helps finding it - thanks. I don't think it would be possible to give a line number for the org file where the link is? Or is it possible to jump directly in org to reference "29"? What would be really nice is an option which makes it possible to export the file to html and just leave the non-resolvable links as non-resolvable links in the html and gives a list of all warnings for this links. In my case, I just would like to ave the html export to share results and the links are mainly for my reference and possibly the final publish. Is this somehow possible? Thanks, Rainer > > > Regards, =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) iQEcBAEBAgAGBQJVSzaGAAoJENvXNx4PUvmC+LAH/RyGnmHS3DRCi46OPBV8cE0m LRucYDIzBQnLpMdYxbHBENAgJ/DBxVIrKd5N9VzwCuMq+NQHqUf19/3N8lsVSlY2 AzUfdn4x60bwESuEQVGEMggf1aBasSC7PG+6HfM7Fi7j/nGkWFJFNRzbEC1l2OWi PFsr54czbEb9R1gULA2t6rpYNx/Lt2jPyCpIti1Qm93aZDUJ0MjZWcIMrhsoWYkB fwBVJRHBQVaNSlWpazeVWXNakaBUGFUxfPPqmHdRG85Xnpg4554/JCSS7TresFUw wUn4CBApOTZ2X7gglRYx4b/OJYvKFpQQgcO/JQ+zEKk33na676ycAG1J/9ibpYE= =pRDm -----END PGP SIGNATURE----- --=-=-=--