From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Exporter aborts upon encountering even one unresolvable link Date: Fri, 25 Sep 2015 09:04:29 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfN3j-0002uh-KF for emacs-orgmode@gnu.org; Fri, 25 Sep 2015 03:04:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfN3f-0005Re-C1 for emacs-orgmode@gnu.org; Fri, 25 Sep 2015 03:04:43 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfN3f-0005Ra-2a for emacs-orgmode@gnu.org; Fri, 25 Sep 2015 03:04:39 -0400 Received: by wicfx3 with SMTP id fx3so9093223wic.1 for ; Fri, 25 Sep 2015 00:04:38 -0700 (PDT) In-Reply-To: (D. C. Toedt's message of "Thu, 24 Sep 2015 21:50:01 -0500") 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: "D. C. Toedt" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "D. C. Toedt" writes: > I just updated to 8.3.1 from 8.3beta (from git). That appears to have be= en > a terrible mistake on my part.> > From this thread > 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 > ). That seems EXTREMELY suboptima= l. > (I'm trying to be tactful here.) See the thread=20 ,---- | 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 minut= es > 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=20 (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 professo= r, > University of Houston Law Center > =E2=80=8BAuthor, =E2=80=8B=E2=80=8B=E2=80=8BCommon Draft desk book of > contract clauses & research notes | LinkedIn: dctoedt > | Calendar > > (redacted) > E: dc@toedt.com O: +1 (713) 364-6545 C: +1 (713) 516-8968 > =E2=80=8B=E2=80=8B > > =E2=80=8B > 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. =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----- iQEcBAEBCAAGBQJWBPICAAoJENvXNx4PUvmCAwQH/jEIcfTuxpMiQVnlvD1YBqSa B1ZPJT4ne80sfr9dW+ZVtDb9jCmd6LtKUXjXogUPPxWOC19Fn6ZOzSkfrxmng+Ix Xo122MWDq/mJlZZqrqTF0I6C76UUFfJtRnscFxN10a0mDRS5n40YfYFMsUKPxzeY UD5HQKf1ejlBp71e7y/2L/F1yyJ8yedCA/yvyYweXeFGgclBEZzSi6BiKrG5AAbj KiKZnZfENsfifPkI3e/Y3JAlD++cZaVHP/Z9KDkn7QS/3ivqMlGUNdIlf7R8xZUR +vuabfr2TW7/oZ0od1ZJGOynXLRh+Br4aO1pY7NMJCBwkF4S6BlbGVcsVn6Ozv0= =4Fdg -----END PGP SIGNATURE----- --=-=-=--