From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: [BUG] [HTML] Export to html calls publish function Date: Sat, 23 Feb 2013 23:45:01 +0900 Message-ID: <20130223144500.GC754@smoon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9GLk-0004Ey-Ab for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 09:45:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9GLb-0001VM-Hb for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 09:45:16 -0500 Received: from mail-lb0-f182.google.com ([209.85.217.182]:40180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9GLb-0001SY-0p for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 09:45:07 -0500 Received: by mail-lb0-f182.google.com with SMTP id gg6so1240644lbb.13 for ; Sat, 23 Feb 2013 06:45:05 -0800 (PST) Content-Disposition: inline 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: General discussions about Org-mode Hello, I faced a problem and I think this is a bug in new exporter, html, introduced in commit 93a70ac59805bb270d15e951a14be63b9eb1d553 ox-publish: Implement tools to resolve external fuzzy links = =20 Small test files #+BEGIN_SRC org :tangle test1.org ,#+TITLE: This is test1 file ,#+AUTHOR: Vladimir Lomov ,* Purpose of this document The purpose of this document is to show or not to show a problem with exporting Org document into html. #+END_SRC #+BEGIN_SRC org :tangle test2.org ,#+TITLE: Test document number 2 ,#+AUTHOR: Vladimir Lomov ,* What I expect from this document I expect that when exported to html this file will have correct URL, http://www.orgmode.org, as well as link to external document, like [[file:test1.org::*Purpose%20of%20this%20document][Purpose of this document= ]]. #+END_SRC #+BEGIN_SRC emacs-lisp :tangle debug.el (setq load-path (cons "/usr/share/emacs/site-lisp/org" load-path)) (setq debug-on-error t) (require 'org) (require 'ox-html) #+END_SRC Backtrace: #+BEGIN_EXAMPLE Debugger entered--Lisp error: (error "`org-publish-cache-get' called, but n= o cache present") signal(error ("`org-publish-cache-get' called, but no cache present")) error("`org-publish-cache-get' called, but no cache present") org-publish-cache-get("/home/vladimir/tmp/test1.org") org-publish-cache-get-file-property("/home/vladimir/tmp/test1.org" :numbe= ring nil t) org-publish-resolve-external-fuzzy-link("test1.org" "*Purpose of this doc= ument") org-html-link((link (:type "file" :path "test1.org" :raw-link "file:test1= =2Eorg::*Purpose%20of%20this%20document" :application nil :search-option "*= Purpose of this document" :begin 231 :end 308 :contents-begin 282 :contents= -end 306 :post-blank 0 :parent (paragraph (:begin 95 :end 310 :contents-beg= in 95 :contents-end 310 :post-blank 0 :post-affiliated 95 :parent (section = (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :par= ent (headline (:raw-value "What I expect from this document" :begin 59 :end= 310 :pre-blank 1 :hiddenp outline :contents-begin 95 :contents-end 310 :le= vel 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank = 0 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp nil :CATE= GORY nil :title ... :parent ...) #4)) #2)) #("I expect that when exported t= o html this file will have correct URL,\n" 0 69 (:parent #2)) (link (:type = "http" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :applic= ation nil :search-option nil :begin 164 :end 186 :contents-begin nil :conte= nts-end nil :post-blank 0 :parent #2)) #(", as well as link to external doc= ument, like\n" 0 45 (:parent #2)) #0 #(".\n" 0 2 (:parent #2)))) #("Purpose= of this document" 0 24 (:parent #0))) #("Purpose of this document" 0 24 (:= parent (link (:type "file" :path "test1.org" :raw-link "file:test1.org::*Pu= rpose%20of%20this%20document" :application nil :search-option "*Purpose of = this document" :begin 231 :end 308 :contents-begin 282 :contents-end 306 :p= ost-blank 0 :parent (paragraph (:begin 95 :end 310 :contents-begin 95 :cont= ents-end 310 :post-blank 0 :post-affiliated 95 :parent (section (:begin 95 = :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :parent ...) #4= )) #("I expect that when exported to html this file will have correct URL,\= n" 0 69 (:parent #4)) (link (:type "http" :path "//www.orgmode.org" :raw-li= nk "http://www.orgmode.org" :application nil :search-option nil :begin 164 = :end 186 :contents-begin nil :contents-end nil :post-blank 0 :parent #4)) #= (", as well as link to external document, like\n" 0 45 (:parent #4)) #2 #("= =2E\n" 0 2 (:parent #4)))) #("Purpose of this document" 0 24 (:parent #2)))= )) (:input-file "/home/vladimir/tmp/test2.org" :title ("Test document numbe= r 2") :html-extension "html" :html-link-home "" :html-link-up "" :html-math= jax "" :html-postamble auto :html-preamble t :html-style "" :html-style-ext= ra "" :html-style-include-default t :html-style-include-scripts t :html-tab= le-tag "" :creator "Generated by Org mode 7.9.3e in Emacs 24.3.50.1." :with-latex t :infojs-opt nil :author ("= Vladimir Lomov") :date nil :description nil :email "vladimir@smoon3.smoon.o= rg" :exclude-tags ("noexport") :headline-levels 3 :keywords nil :language "= en" :preserve-breaks nil ...)) org-export-data((link (:type "file" :path "test1.org" :raw-link "file:tes= t1.org::*Purpose%20of%20this%20document" :application nil :search-option "*= Purpose of this document" :begin 231 :end 308 :contents-begin 282 :contents= -end 306 :post-blank 0 :parent (paragraph (:begin 95 :end 310 :contents-beg= in 95 :contents-end 310 :post-blank 0 :post-affiliated 95 :parent (section = (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :par= ent (headline (:raw-value "What I expect from this document" :begin 59 :end= 310 :pre-blank 1 :hiddenp outline :contents-begin 95 :contents-end 310 :le= vel 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank = 0 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp nil :CATE= GORY nil :title ... :parent ...) #4)) #2)) #("I expect that when exported t= o html this file will have correct URL,\n" 0 69 (:parent #2)) (link (:type = "http" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :applic= ation nil :search-option nil :begin 164 :end 186 :contents-begin nil :conte= nts-end nil :post-blank 0 :parent #2)) #(", as well as link to external doc= ument, like\n" 0 45 (:parent #2)) #0 #(".\n" 0 2 (:parent #2)))) #("Purpose= of this document" 0 24 (:parent #0))) (:input-file "/home/vladimir/tmp/tes= t2.org" :title ("Test document number 2") :html-extension "html" :html-link= -home "" :html-link-up "" :html-mathjax "" :html-postamble auto :html-pream= ble t :html-style "" :html-style-extra "" :html-style-include-default t :ht= ml-style-include-scripts t :html-table-tag "
" :cre= ator "Generated by Org mode 7.9.3e in = Emacs 24.3.50.1." :wit= h-latex t :infojs-opt nil :author ("Vladimir Lomov") :date nil :description= nil :email "vladimir@smoon3.smoon.org" :exclude-tags ("noexport") :headlin= e-levels 3 :keywords nil :language "en" :preserve-breaks nil ...)) #[(element) "\302=08 \"\207" [element info org-export-data] 3]((link (:ty= pe "file" :path "test1.org" :raw-link "file:test1.org::*Purpose%20of%20this= %20document" :application nil :search-option "*Purpose of this document" :b= egin 231 :end 308 :contents-begin 282 :contents-end 306 :post-blank 0 :pare= nt (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :pos= t-blank 0 :post-affiliated 95 :parent (section (:begin 95 :end 310 :content= s-begin 95 :contents-end 310 :post-blank 0 :parent (headline (:raw-value "W= hat I expect from this document" :begin 59 :end 310 :pre-blank 1 :hiddenp o= utline :contents-begin 95 :contents-end 310 :level 1 :priority nil :tags ni= l :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :a= rchivedp nil :commentedp nil :quotedp nil :CATEGORY nil :title ... :parent = =2E..) #4)) #2)) #("I expect that when exported to html this file will have= correct URL,\n" 0 69 (:parent #2)) (link (:type "http" :path "//www.orgmod= e.org" :raw-link "http://www.orgmode.org" :application nil :search-option n= il :begin 164 :end 186 :contents-begin nil :contents-end nil :post-blank 0 = :parent #2)) #(", as well as link to external document, like\n" 0 45 (:pare= nt #2)) #0 #(".\n" 0 2 (:parent #2)))) #("Purpose of this document" 0 24 (:= parent #0)))) mapconcat(#[(element) "\302=08 \"\207" [element info org-export-data] 3] = (#("I expect that when exported to html this file will have correct URL,\n"= 0 69 (:parent (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-= end 310 :post-blank 0 :post-affiliated 95 :parent (section (:begin 95 :end = 310 :contents-begin 95 :contents-end 310 :post-blank 0 :parent (headline ..= =2E #5)) #3)) #1 (link (:type "http" :path "//www.orgmode.org" :raw-link "h= ttp://www.orgmode.org" :application nil :search-option nil :begin 164 :end = 186 :contents-begin nil :contents-end nil :post-blank 0 :parent #3)) #(", a= s well as link to external document, like\n" 0 45 (:parent #3)) (link (:typ= e "file" :path "test1.org" :raw-link "file:test1.org::*Purpose%20of%20this%= 20document" :application nil :search-option "*Purpose of this document" :be= gin 231 :end 308 :contents-begin 282 :contents-end 306 :post-blank 0 :paren= t #3) #("Purpose of this document" 0 24 (:parent #4))) #(".\n" 0 2 (:parent= #3))))) (link (:type "http" :path "//www.orgmode.org" :raw-link "http://ww= w.orgmode.org" :application nil :search-option nil :begin 164 :end 186 :con= tents-begin nil :contents-end nil :post-blank 0 :parent (paragraph (:begin = 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :post-affili= ated 95 :parent (section (:begin 95 :end 310 :contents-begin 95 :contents-e= nd 310 :post-blank 0 :parent (headline ... #5)) #3)) #("I expect that when = exported to html this file will have correct URL,\n" 0 69 (:parent #3)) #1 = #(", as well as link to external document, like\n" 0 45 (:parent #3)) (link= (:type "file" :path "test1.org" :raw-link "file:test1.org::*Purpose%20of%2= 0this%20document" :application nil :search-option "*Purpose of this documen= t" :begin 231 :end 308 :contents-begin 282 :contents-end 306 :post-blank 0 = :parent #3) #("Purpose of this document" 0 24 (:parent #4))) #(".\n" 0 2 (:= parent #3))))) #(", as well as link to external document, like\n" 0 45 (:pa= rent (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :p= ost-blank 0 :post-affiliated 95 :parent (section (:begin 95 :end 310 :conte= nts-begin 95 :contents-end 310 :post-blank 0 :parent (headline ... #5)) #3)= ) #("I expect that when exported to html this file will have correct URL,\n= " 0 69 (:parent #3)) (link (:type "http" :path "//www.orgmode.org" :raw-lin= k "http://www.orgmode.org" :application nil :search-option nil :begin 164 := end 186 :contents-begin nil :contents-end nil :post-blank 0 :parent #3)) #1= (link (:type "file" :path "test1.org" :raw-link "file:test1.org::*Purpose%= 20of%20this%20document" :application nil :search-option "*Purpose of this d= ocument" :begin 231 :end 308 :contents-begin 282 :contents-end 306 :post-bl= ank 0 :parent #3) #("Purpose of this document" 0 24 (:parent #4))) #(".\n" = 0 2 (:parent #3))))) (link (:type "file" :path "test1.org" :raw-link "file:= test1.org::*Purpose%20of%20this%20document" :application nil :search-option= "*Purpose of this document" :begin 231 :end 308 :contents-begin 282 :conte= nts-end 306 :post-blank 0 :parent (paragraph (:begin 95 :end 310 :contents-= begin 95 :contents-end 310 :post-blank 0 :post-affiliated 95 :parent (secti= on (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 := parent (headline ... #5)) #3)) #("I expect that when exported to html this = file will have correct URL,\n" 0 69 (:parent #3)) (link (:type "http" :path= "//www.orgmode.org" :raw-link "http://www.orgmode.org" :application nil :s= earch-option nil :begin 164 :end 186 :contents-begin nil :contents-end nil = :post-blank 0 :parent #3)) #(", as well as link to external document, like\= n" 0 45 (:parent #3)) #1 #(".\n" 0 2 (:parent #3)))) #("Purpose of this doc= ument" 0 24 (:parent #1))) #(".\n" 0 2 (:parent (paragraph (:begin 95 :end = 310 :contents-begin 95 :contents-end 310 :post-blank 0 :post-affiliated 95 = :parent (section (:begin 95 :end 310 :contents-begin 95 :contents-end 310 := post-blank 0 :parent (headline ... #5)) #3)) #("I expect that when exported= to html this file will have correct URL,\n" 0 69 (:parent #3)) (link (:typ= e "http" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :appl= ication nil :search-option nil :begin 164 :end 186 :contents-begin nil :con= tents-end nil :post-blank 0 :parent #3)) #(", as well as link to external d= ocument, like\n" 0 45 (:parent #3)) (link (:type "file" :path "test1.org" := raw-link "file:test1.org::*Purpose%20of%20this%20document" :application nil= :search-option "*Purpose of this document" :begin 231 :end 308 :contents-b= egin 282 :contents-end 306 :post-blank 0 :parent #3) #("Purpose of this doc= ument" 0 24 (:parent #4))) #1)))) "") org-export-data((paragraph (:begin 95 :end 310 :contents-begin 95 :conten= ts-end 310 :post-blank 0 :post-affiliated 95 :parent (section (:begin 95 :e= nd 310 :contents-begin 95 :contents-end 310 :post-blank 0 :parent (headline= (:raw-value "What I expect from this document" :begin 59 :end 310 :pre-bla= nk 1 :hiddenp outline :contents-begin 95 :contents-end 310 :level 1 :priori= ty nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-s= ection-p nil :archivedp nil :commentedp nil :quotedp nil :CATEGORY nil :tit= le (#("What I expect from this document" 0 32 ...)) :parent (org-data nil (= section ... ... ...) #4)) #2)) #0)) #("I expect that when exported to html = this file will have correct URL,\n" 0 69 (:parent #0)) (link (:type "http" = :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :application n= il :search-option nil :begin 164 :end 186 :contents-begin nil :contents-end= nil :post-blank 0 :parent #0)) #(", as well as link to external document, = like\n" 0 45 (:parent #0)) (link (:type "file" :path "test1.org" :raw-link = "file:test1.org::*Purpose%20of%20this%20document" :application nil :search-= option "*Purpose of this document" :begin 231 :end 308 :contents-begin 282 = :contents-end 306 :post-blank 0 :parent #0) #("Purpose of this document" 0 = 24 (:parent #1))) #(".\n" 0 2 (:parent #0))) (:input-file "/home/vladimir/t= mp/test2.org" :title ("Test document number 2") :html-extension "html" :htm= l-link-home "" :html-link-up "" :html-mathjax "" :html-postamble auto :html= -preamble t :html-style "" :html-style-extra "" :html-style-include-default= t :html-style-include-scripts t :html-table-tag "
= " :creator "Generated by Org mode 7.9.= 3e in Emacs 24.3.50.1.= " :with-latex t :infojs-opt nil :author ("Vladimir Lomov") :date nil :descr= iption nil :email "vladimir@smoon3.smoon.org" :exclude-tags ("noexport") :h= eadline-levels 3 :keywords nil :language "en" :preserve-breaks nil ...)) #[(element) "\302=08 \"\207" [element info org-export-data] 3]((paragraph= (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :po= st-affiliated 95 :parent (section (:begin 95 :end 310 :contents-begin 95 :c= ontents-end 310 :post-blank 0 :parent (headline (:raw-value "What I expect = =66rom this document" :begin 59 :end 310 :pre-blank 1 :hiddenp outline :con= tents-begin 95 :contents-end 310 :level 1 :priority nil :tags nil :todo-key= word nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp ni= l :commentedp nil :quotedp nil :CATEGORY nil :title (#("What I expect from = this document" 0 32 ...)) :parent (org-data nil (section ... ... ...) #4)) = #2)) #0)) #("I expect that when exported to html this file will have correc= t URL,\n" 0 69 (:parent #0)) (link (:type "http" :path "//www.orgmode.org" = :raw-link "http://www.orgmode.org" :application nil :search-option nil :beg= in 164 :end 186 :contents-begin nil :contents-end nil :post-blank 0 :parent= #0)) #(", as well as link to external document, like\n" 0 45 (:parent #0))= (link (:type "file" :path "test1.org" :raw-link "file:test1.org::*Purpose%= 20of%20this%20document" :application nil :search-option "*Purpose of this d= ocument" :begin 231 :end 308 :contents-begin 282 :contents-end 306 :post-bl= ank 0 :parent #0) #("Purpose of this document" 0 24 (:parent #1))) #(".\n" = 0 2 (:parent #0)))) mapconcat(#[(element) "\302=08 \"\207" [element info org-export-data] 3] = ((paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-= blank 0 :post-affiliated 95 :parent (section (:begin 95 :end 310 :contents-= begin 95 :contents-end 310 :post-blank 0 :parent (headline (:raw-value "Wha= t I expect from this document" :begin 59 :end 310 :pre-blank 1 :hiddenp out= line :contents-begin 95 :contents-end 310 :level 1 :priority nil :tags nil = :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :arc= hivedp nil :commentedp nil :quotedp nil :CATEGORY nil :title (#("What I exp= ect from this document" 0 32 ...)) :parent (org-data nil ... #5)) #3)) #1))= #("I expect that when exported to html this file will have correct URL,\n"= 0 69 (:parent #1)) (link (:type "http" :path "//www.orgmode.org" :raw-link= "http://www.orgmode.org" :application nil :search-option nil :begin 164 :e= nd 186 :contents-begin nil :contents-end nil :post-blank 0 :parent #1)) #("= , as well as link to external document, like\n" 0 45 (:parent #1)) (link (:= type "file" :path "test1.org" :raw-link "file:test1.org::*Purpose%20of%20th= is%20document" :application nil :search-option "*Purpose of this document" = :begin 231 :end 308 :contents-begin 282 :contents-end 306 :post-blank 0 :pa= rent #1) #("Purpose of this document" 0 24 (:parent #2))) #(".\n" 0 2 (:par= ent #1)))) "") org-export-data((section (:begin 95 :end 310 :contents-begin 95 :contents= -end 310 :post-blank 0 :parent (headline (:raw-value "What I expect from th= is document" :begin 59 :end 310 :pre-blank 1 :hiddenp outline :contents-beg= in 95 :contents-end 310 :level 1 :priority nil :tags nil :todo-keyword nil = :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commen= tedp nil :quotedp nil :CATEGORY nil :title (#("What I expect from this docu= ment" 0 32 (:parent #2))) :parent (org-data nil (section (:begin 1 :end 59 = :contents-begin 1 :contents-end 58 :post-blank 1 :parent #4) (keyword (:key= "TITLE" :value "Test document number 2" :begin 1 :end 33 :post-blank 0 :po= st-affiliated 1 :parent #5)) (keyword (:key "AUTHOR" :value "Vladimir Lomov= " :begin 33 :end 58 :post-blank 0 :post-affiliated 33 :parent #5))) #2)) #0= )) (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :pos= t-blank 0 :post-affiliated 95 :parent #0) #("I expect that when exported to= html this file will have correct URL,\n" 0 69 (:parent #1)) (link (:type "= http" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :applica= tion nil :search-option nil :begin 164 :end 186 :contents-begin nil :conten= ts-end nil :post-blank 0 :parent #1)) #(", as well as link to external docu= ment, like\n" 0 45 (:parent #1)) (link (:type "file" :path "test1.org" :raw= -link "file:test1.org::*Purpose%20of%20this%20document" :application nil :s= earch-option "*Purpose of this document" :begin 231 :end 308 :contents-begi= n 282 :contents-end 306 :post-blank 0 :parent #1) #("Purpose of this docume= nt" 0 24 (:parent #2))) #(".\n" 0 2 (:parent #1)))) (:input-file "/home/vla= dimir/tmp/test2.org" :title ("Test document number 2") :html-extension "htm= l" :html-link-home "" :html-link-up "" :html-mathjax "" :html-postamble aut= o :html-preamble t :html-style "" :html-style-extra "" :html-style-include-= default t :html-style-include-scripts t :html-table-tag "
" :creator "Generated by Org mo= de 7.9.3e in Emacs 24.= 3.50.1." :with-latex t :infojs-opt nil :author ("Vladimir Lomov") :date nil= :description nil :email "vladimir@smoon3.smoon.org" :exclude-tags ("noexpo= rt") :headline-levels 3 :keywords nil :language "en" :preserve-breaks nil .= =2E.)) #[(element) "\302=08 \"\207" [element info org-export-data] 3]((section (= :begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :pare= nt (headline (:raw-value "What I expect from this document" :begin 59 :end = 310 :pre-blank 1 :hiddenp outline :contents-begin 95 :contents-end 310 :lev= el 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0= :footnote-section-p nil :archivedp nil :commentedp nil :quotedp nil :CATEG= ORY nil :title (#("What I expect from this document" 0 32 (:parent #2))) :p= arent (org-data nil (section (:begin 1 :end 59 :contents-begin 1 :contents-= end 58 :post-blank 1 :parent #4) (keyword (:key "TITLE" :value "Test docume= nt number 2" :begin 1 :end 33 :post-blank 0 :post-affiliated 1 :parent #5))= (keyword (:key "AUTHOR" :value "Vladimir Lomov" :begin 33 :end 58 :post-bl= ank 0 :post-affiliated 33 :parent #5))) #2)) #0)) (paragraph (:begin 95 :en= d 310 :contents-begin 95 :contents-end 310 :post-blank 0 :post-affiliated 9= 5 :parent #0) #("I expect that when exported to html this file will have co= rrect URL,\n" 0 69 (:parent #1)) (link (:type "http" :path "//www.orgmode.o= rg" :raw-link "http://www.orgmode.org" :application nil :search-option nil = :begin 164 :end 186 :contents-begin nil :contents-end nil :post-blank 0 :pa= rent #1)) #(", as well as link to external document, like\n" 0 45 (:parent = #1)) (link (:type "file" :path "test1.org" :raw-link "file:test1.org::*Purp= ose%20of%20this%20document" :application nil :search-option "*Purpose of th= is document" :begin 231 :end 308 :contents-begin 282 :contents-end 306 :pos= t-blank 0 :parent #1) #("Purpose of this document" 0 24 (:parent #2))) #(".= \n" 0 2 (:parent #1))))) mapconcat(#[(element) "\302=08 \"\207" [element info org-export-data] 3] = ((section (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-bl= ank 0 :parent (headline (:raw-value "What I expect from this document" :beg= in 59 :end 310 :pre-blank 1 :hiddenp outline :contents-begin 95 :contents-e= nd 310 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :p= ost-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :quotedp= nil :CATEGORY nil :title (#("What I expect from this document" 0 32 (:pare= nt #3))) :parent (org-data nil (section (:begin 1 :end 59 :contents-begin 1= :contents-end 58 :post-blank 1 :parent #5) (keyword ...) (keyword ...)) #3= )) #1)) (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310= :post-blank 0 :post-affiliated 95 :parent #1) #("I expect that when export= ed to html this file will have correct URL,\n" 0 69 (:parent #2)) (link (:t= ype "http" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :ap= plication nil :search-option nil :begin 164 :end 186 :contents-begin nil :c= ontents-end nil :post-blank 0 :parent #2)) #(", as well as link to external= document, like\n" 0 45 (:parent #2)) (link (:type "file" :path "test1.org"= :raw-link "file:test1.org::*Purpose%20of%20this%20document" :application n= il :search-option "*Purpose of this document" :begin 231 :end 308 :contents= -begin 282 :contents-end 306 :post-blank 0 :parent #2) #("Purpose of this d= ocument" 0 24 (:parent #3))) #(".\n" 0 2 (:parent #2))))) "") org-export-data((headline (:raw-value "What I expect from this document" = :begin 59 :end 310 :pre-blank 1 :hiddenp outline :contents-begin 95 :conten= ts-end 310 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type ni= l :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :quo= tedp nil :CATEGORY nil :title (#("What I expect from this document" 0 32 (:= parent #0))) :parent (org-data nil (section (:begin 1 :end 59 :contents-beg= in 1 :contents-end 58 :post-blank 1 :parent #2) (keyword (:key "TITLE" :val= ue "Test document number 2" :begin 1 :end 33 :post-blank 0 :post-affiliated= 1 :parent #3)) (keyword (:key "AUTHOR" :value "Vladimir Lomov" :begin 33 := end 58 :post-blank 0 :post-affiliated 33 :parent #3))) #0)) (section (:begi= n 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :parent #0= ) (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post= -blank 0 :post-affiliated 95 :parent #1) #("I expect that when exported to = html this file will have correct URL,\n" 0 69 (:parent #2)) (link (:type "h= ttp" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :applicat= ion nil :search-option nil :begin 164 :end 186 :contents-begin nil :content= s-end nil :post-blank 0 :parent #2)) #(", as well as link to external docum= ent, like\n" 0 45 (:parent #2)) (link (:type "file" :path "test1.org" :raw-= link "file:test1.org::*Purpose%20of%20this%20document" :application nil :se= arch-option "*Purpose of this document" :begin 231 :end 308 :contents-begin= 282 :contents-end 306 :post-blank 0 :parent #2) #("Purpose of this documen= t" 0 24 (:parent #3))) #(".\n" 0 2 (:parent #2))))) (:input-file "/home/vla= dimir/tmp/test2.org" :title ("Test document number 2") :html-extension "htm= l" :html-link-home "" :html-link-up "" :html-mathjax "" :html-postamble aut= o :html-preamble t :html-style "" :html-style-extra "" :html-style-include-= default t :html-style-include-scripts t :html-table-tag "
" :creator "Generated by Org mo= de 7.9.3e in Emacs 24.= 3.50.1." :with-latex t :infojs-opt nil :author ("Vladimir Lomov") :date nil= :description nil :email "vladimir@smoon3.smoon.org" :exclude-tags ("noexpo= rt") :headline-levels 3 :keywords nil :language "en" :preserve-breaks nil .= =2E.)) #[(element) "\302=08 \"\207" [element info org-export-data] 3]((headline = (:raw-value "What I expect from this document" :begin 59 :end 310 :pre-blan= k 1 :hiddenp outline :contents-begin 95 :contents-end 310 :level 1 :priorit= y nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-se= ction-p nil :archivedp nil :commentedp nil :quotedp nil :CATEGORY nil :titl= e (#("What I expect from this document" 0 32 (:parent #0))) :parent (org-da= ta nil (section (:begin 1 :end 59 :contents-begin 1 :contents-end 58 :post-= blank 1 :parent #2) (keyword (:key "TITLE" :value "Test document number 2" = :begin 1 :end 33 :post-blank 0 :post-affiliated 1 :parent #3)) (keyword (:k= ey "AUTHOR" :value "Vladimir Lomov" :begin 33 :end 58 :post-blank 0 :post-a= ffiliated 33 :parent #3))) #0)) (section (:begin 95 :end 310 :contents-begi= n 95 :contents-end 310 :post-blank 0 :parent #0) (paragraph (:begin 95 :end= 310 :contents-begin 95 :contents-end 310 :post-blank 0 :post-affiliated 95= :parent #1) #("I expect that when exported to html this file will have cor= rect URL,\n" 0 69 (:parent #2)) (link (:type "http" :path "//www.orgmode.or= g" :raw-link "http://www.orgmode.org" :application nil :search-option nil := begin 164 :end 186 :contents-begin nil :contents-end nil :post-blank 0 :par= ent #2)) #(", as well as link to external document, like\n" 0 45 (:parent #= 2)) (link (:type "file" :path "test1.org" :raw-link "file:test1.org::*Purpo= se%20of%20this%20document" :application nil :search-option "*Purpose of thi= s document" :begin 231 :end 308 :contents-begin 282 :contents-end 306 :post= -blank 0 :parent #2) #("Purpose of this document" 0 24 (:parent #3))) #(".\= n" 0 2 (:parent #2)))))) mapconcat(#[(element) "\302=08 \"\207" [element info org-export-data] 3] = ((section (:begin 1 :end 59 :contents-begin 1 :contents-end 58 :post-blank = 1 :parent (org-data nil #1 (headline (:raw-value "What I expect from this d= ocument" :begin 59 :end 310 :pre-blank 1 :hiddenp outline :contents-begin 9= 5 :contents-end 310 :level 1 :priority nil :tags nil :todo-keyword nil :tod= o-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp= nil :quotedp nil :CATEGORY nil :title (#("What I expect from this document= " 0 32 ...)) :parent #3) (section (:begin 95 :end 310 :contents-begin 95 :c= ontents-end 310 :post-blank 0 :parent #4) (paragraph (:begin 95 :end 310 :c= ontents-begin 95 :contents-end 310 :post-blank 0 :post-affiliated 95 :paren= t #5) #("I expect that when exported to html this file will have correct UR= L,\n" 0 69 ...) (link ...) #(", as well as link to external document, like\= n" 0 45 ...) (link ... #("Purpose of this document" 0 24 ...)) #(".\n" 0 2 = =2E..)))))) (keyword (:key "TITLE" :value "Test document number 2" :begin 1= :end 33 :post-blank 0 :post-affiliated 1 :parent #1)) (keyword (:key "AUTH= OR" :value "Vladimir Lomov" :begin 33 :end 58 :post-blank 0 :post-affiliate= d 33 :parent #1))) (headline (:raw-value "What I expect from this document"= :begin 59 :end 310 :pre-blank 1 :hiddenp outline :contents-begin 95 :conte= nts-end 310 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type n= il :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :qu= otedp nil :CATEGORY nil :title (#("What I expect from this document" 0 32 (= :parent #1))) :parent (org-data nil (section (:begin 1 :end 59 :contents-be= gin 1 :contents-end 58 :post-blank 1 :parent #3) (keyword (:key "TITLE" :va= lue "Test document number 2" :begin 1 :end 33 :post-blank 0 :post-affiliate= d 1 :parent #4)) (keyword (:key "AUTHOR" :value "Vladimir Lomov" :begin 33 = :end 58 :post-blank 0 :post-affiliated 33 :parent #4))) #1)) (section (:beg= in 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :parent #= 1) (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :pos= t-blank 0 :post-affiliated 95 :parent #2) #("I expect that when exported to= html this file will have correct URL,\n" 0 69 (:parent #3)) (link (:type "= http" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :applica= tion nil :search-option nil :begin 164 :end 186 :contents-begin nil :conten= ts-end nil :post-blank 0 :parent #3)) #(", as well as link to external docu= ment, like\n" 0 45 (:parent #3)) (link (:type "file" :path "test1.org" :raw= -link "file:test1.org::*Purpose%20of%20this%20document" :application nil :s= earch-option "*Purpose of this document" :begin 231 :end 308 :contents-begi= n 282 :contents-end 306 :post-blank 0 :parent #3) #("Purpose of this docume= nt" 0 24 (:parent #4))) #(".\n" 0 2 (:parent #3)))))) "") org-export-data((org-data nil (section (:begin 1 :end 59 :contents-begin = 1 :contents-end 58 :post-blank 1 :parent #0) (keyword (:key "TITLE" :value = "Test document number 2" :begin 1 :end 33 :post-blank 0 :post-affiliated 1 = :parent #1)) (keyword (:key "AUTHOR" :value "Vladimir Lomov" :begin 33 :end= 58 :post-blank 0 :post-affiliated 33 :parent #1))) (headline (:raw-value "= What I expect from this document" :begin 59 :end 310 :pre-blank 1 :hiddenp = outline :contents-begin 95 :contents-end 310 :level 1 :priority nil :tags n= il :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil := archivedp nil :commentedp nil :quotedp nil :CATEGORY nil :title (#("What I = expect from this document" 0 32 (:parent #1))) :parent #0) (section (:begin= 95 :end 310 :contents-begin 95 :contents-end 310 :post-blank 0 :parent #1)= (paragraph (:begin 95 :end 310 :contents-begin 95 :contents-end 310 :post-= blank 0 :post-affiliated 95 :parent #2) #("I expect that when exported to h= tml this file will have correct URL,\n" 0 69 (:parent #3)) (link (:type "ht= tp" :path "//www.orgmode.org" :raw-link "http://www.orgmode.org" :applicati= on nil :search-option nil :begin 164 :end 186 :contents-begin nil :contents= -end nil :post-blank 0 :parent #3)) #(", as well as link to external docume= nt, like\n" 0 45 (:parent #3)) (link (:type "file" :path "test1.org" :raw-l= ink "file:test1.org::*Purpose%20of%20this%20document" :application nil :sea= rch-option "*Purpose of this document" :begin 231 :end 308 :contents-begin = 282 :contents-end 306 :post-blank 0 :parent #3) #("Purpose of this document= " 0 24 (:parent #4))) #(".\n" 0 2 (:parent #3)))))) (:input-file "/home/vla= dimir/tmp/test2.org" :title ("Test document number 2") :html-extension "htm= l" :html-link-home "" :html-link-up "" :html-mathjax "" :html-postamble aut= o :html-preamble t :html-style "" :html-style-extra "" :html-style-include-= default t :html-style-include-scripts t :html-table-tag "
" :creator "Generated by Org mo= de 7.9.3e in Emacs 24.= 3.50.1." :with-latex t :infojs-opt nil :author ("Vladimir Lomov") :date nil= :description nil :email "vladimir@smoon3.smoon.org" :exclude-tags ("noexpo= rt") :headline-levels 3 :keywords nil :language "en" :preserve-breaks nil .= =2E.)) org-export-as(html nil nil nil nil) org-export-to-file(html "./test2.html" nil nil nil nil) org-html-export-to-html(nil nil nil nil) org-export-dispatch(nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) #+END_EXAMPLE Org version: Org-mode version 7.9.3e (7.9.3e-1194-g43c8aa @ /usr/share/emacs/site-lisp/o= rg/) Emacs: GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-= 02-23 on smoon3 --=20 I remember once being on a station platform in Cleveland at four in the morning. A black porter was carrying my bags, and as we were waiting for the train to come in, he said to me: "Excuse me, Mr. Cooke, I don't want to invade your privacy, but I have a bet with a friend of mine. Who composed the opening theme music of 'Omnibus'? My friend said Virgil Thomson." I asked him, "What do you say?" He replied, "I say Aaron Copeland." I said, "You're right." The porter said, "I knew Thomson doesn't write counterpoi= nt that way." I told that to a network president, and he was deeply unimpress= ed. -- Alistair Cooke