emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Exporter aborts upon encountering even one unresolvable link


From: Rainer M Krug
Subject: Re: [O] Exporter aborts upon encountering even one unresolvable link
Date: Fri, 25 Sep 2015 09:04:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

"D. C. Toedt" <address@hidden> writes:

> I just updated to 8.3.1 from 8.3beta (from git).  That appears to have been
> a terrible mistake on my part.>
> From this thread
> <https://lists.gnu.org/archive/html/emacs-orgmode/2015-09/msg00040.html> I
> see that the exporter now throws an error and aborts when it encounters an
> unresolvable link.  That makes things really, REALLY difficult.  It means I
> can't get a complete, working export to HTML (in my case) until all link
> problems are fixed in my 22KLOC .org file (which I use to generate
> http://www.CommonDraft.org/index.html
> <http://www.commondraft.org/index.html>).  That seems EXTREMELY suboptimal.
> (I'm trying to be tactful here.)

See the thread 
,----
|  Bug: Export to html fails when link to header in non existing file in
|  document present WAS: 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/)]
`----

For further details.

>
> Worse, the exporter doesn't even generate a list of unresolvable links
> before aborting.  That means the only way that I can find and fix busted
> links (so far as I know) is to do an export --- which takes several minutes
> given the large file  --- and have the export abort on a single link. Then
> I fix that one link, export again, and have it abort again. Repeat.
> Aaaargggggg.

You can use org-lint for this.

>
> I started looking at the hooks, as suggested in a message in the previous
> thread, but I'm not nearly skilled enough in elisp to be able to do
> anything useful.

Look at publishing instead of exporting to html which works with
missing links.

I have the following in my emacs.org which makes it possible to publish
all org files to html in the folder ./pubHTML/ which is equivalent to
exporting.

#+begin_src emacs-lisp 
(setq org-publish-project-alist
      '(
        ("local"
         :base-directory "./"
         :base-extension "org"
         :publishing-directory "./pubHTML/"
         :recursive t
         :publishing-function org-html-publish-to-html
         :headline-levels 6
         :auto-preamble t)
        ))
#+end_src

Cheers,

Rainer

>
> Any suggestions?
>
>
> *D. C. Toedt III  **(My last name is pronounced "Tate"; I go by "D. C.,"
> which stands for Dell Charles**) *
> Attorney & neutral arbitrator -- tech contracts & IP  |  Adjunct professor,
> University of Houston Law Center
> ​Author, ​​​Common Draft <http://www.commondraft.org/> desk book of
> contract clauses & research notes   |  LinkedIn: dctoedt
> <http://www.linkedin.com/in/dctoedt>   |   Calendar
> <https://www.google.com/calendar/address@hidden&mode=WEEK>
> (redacted)
> E: address@hidden    O: +1 (713) 364-6545    C: +1 (713) 516-8968
> ​​
>
>
> Houston, Texas (Central time zone)
>
> Unless expressly stated otherwise, this message is not intended
> to serve as assent to an agreement or other document, whether or not
> attached to this message.

-- 
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:      address@hidden

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

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