emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <m2vbg59a3l.fsf@krugs.de> (raw)
In-Reply-To: <87oalyc7kp.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 06 May 2015 12:40:38 +0200")

[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]

Rasmus <rasmus@gmx.us> writes:

> Hi,
>
> Rainer M Krug <Rainer@krugs.de> 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?

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

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=n+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


>
> —Rasmus

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

  reply	other threads:[~2015-05-06 12:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 11:47 Bug: Error export to html - "Org-publish-cache-get: `org-publish-cache-get' called, but no cache present" [8.3beta (release_8.3beta-1115-g8f3946 @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)] Rainer M Krug
2015-05-06  7:39 ` Bug: Export to html fails when link to header in non existing file in document present WAS: " Rainer M Krug
2015-05-06 10:40   ` Bug: Export to html fails when link to header in non existing file in document present Rasmus
2015-05-06 12:14     ` Rainer M Krug [this message]
2015-05-06 13:50       ` Rasmus
2015-05-06 23:04         ` Nicolas Goaziou
2015-05-07  9:55           ` Rainer M Krug
2015-05-07 20:18             ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2vbg59a3l.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).