[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Export to html fails when link to header in non existing fi

From: Nicolas Goaziou
Subject: Re: [O] Bug: Export to html fails when link to header in non existing file in document present
Date: Thu, 07 May 2015 22:18:08 +0200

Rainer M Krug <address@hidden> writes:

> Nicolas Goaziou <address@hidden> writes:
>> Hello,
>> Rasmus <address@hidden> 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 <address@hidden>
>>> 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?

This is not possible.

> Or is it possible to jump directly in org to reference "29"?

You may use `org-open-link-from-string'.

> 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.

I changed the error into a message, with a dummy link.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]