From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex =?utf-8?Q?Benn=C3=A9e?= Subject: Re: Change in ox export for #+DATE keywords Date: Sat, 08 Aug 2015 13:04:25 +0100 Message-ID: <87io8qvvee.fsf@linaro.org> References: <87si7ulvjv.fsf@linaro.org> <877fp6cka5.fsf@nicolasgoaziou.fr> <87k2t6w60m.fsf@linaro.org> <87egjeazsa.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO2rY-0008IC-GW for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 08:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZO2rV-0002Rr-5c for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 08:04:32 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:34342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO2rU-0002Ri-TG for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 08:04:29 -0400 Received: by wicne3 with SMTP id ne3so86807087wic.1 for ; Sat, 08 Aug 2015 05:04:28 -0700 (PDT) In-reply-to: <87egjeazsa.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Alex Benn=C3=A9e writes: > >> Nicolas Goaziou writes: >> >>> Hello, >>> >>> Alex Benn=C3=A9e writes: >>> >>>> I've been using org-mode as a source for my presentations but exporting >>>> broke today following an ELPA update. It seems the line: >>>> >>>> #+DATE: KVM Forum 2015 >>>> >>>> Is no longer acceptable. >>> >>> FWIW, I export it without an error. Do you use a custom export >>> back-end? >> >> I'm using ox-reveal (for Reveal.js). I'm finding it hard to trigger an >> actual backtrace so maybe the problem is there. > > I've had a cursory look at ox-reveal.el[fn:1]. There is a strange thing, > indeed. In `org-reveal-template', line 888, (plist-get info :author) > should be wrapped within (org-export-data ...). > > However, it is not related to your error. Therefore, I suspect an > installation problem on your side. I've tried re-building all my elpa packages as well as doing a plaing HTML export and I can now get a backtrace: Debugger entered--Lisp error: (wrong-type-argument listp #("Towards multi-t= hreaded TCG" 0 26 (:parent (#1)))) org-element-set-contents(#("Towards multi-threaded TCG" 0 26 (:parent (#0= )))) apply(org-element-set-contents #("Towards multi-threaded TCG" 0 26 (:pare= nt (#0))) nil) #[(s) "\306\307\310#=1A\311\312 \211:\204=00\313\202\"=0B@9\203!=0BAA\2= 02\"=0B)\"\210\314\315\n \211:\2043\313\202@=0B@9\203?=0BAA\202@=0B)#\210 \= 316\211\n=1C=0B;\203V\317\320\f=0B#\202\\\321=0BA@\f\"*=1C\211;\203n\322=0B= \313\f$\202z=0BA\323=0BA@\f#\240\210=0B+\210\nA A@\240\210\n @\240*\207" [s= new old element property value replace-regexp-in-string "\n" " " mapc #[(b= lob) "\305 =1B\211;\203=00\306\f\307=0B\n$\202 \fA\310\fA@=0B\n#\240\210\f= +\207" [blob old value property element :parent org-add-props nil plist-put= ] 6] nil apply org-element-set-contents :parent get-text-property 0 plist-g= et org-add-props plist-put] 6](#("Towards multi-threaded TCG" 0 26 (:parent= (#0)))) #[(--data) "\211:\204=00 ;\205=00\306\202=00 @9\205=00 @)?\206\337=0B\2= 03,\307=0B\310\">\206\337\n\2047\311\f\"\202\337\n\312=3D\203\\\311\f\21= 1:\204J\313\202W @9\203V AA\202W )\"\202\337\n>\203\202=0E!\211=15\203\201= =0E\203z\314\315=15\"\210\202\201=0E=0EB=17)=18\316=3D\203\312;\204\312\n= =19\236A\313=1A\211=1B\203\311=0E@=1A\f=1A=1E ;\203\266\317\320=1C #\202\2= 75\307 A@=1C\"*!\210=1BA\211=1B\204\234*=1D\203\202=0E\316=3D\203\202\n=1E>= \203\202=0E=1F\313 \211=1B\203\201=0E@\211 @ A=1E ;\203=01\317\320=1C #\20= 2=0B\307 A@=1C\"*!\"!\203w=0E\"#\235\203_=0E\"$\235\203P\321!!\313%\211=1B\= 203L=0E@%\f%A!\210\f%@!\210=1BA\211=1B\2042*\202w\f!A!\210\f!@!\210\202w=0E= \"$\235\203r\311\f\321!!\"\210\202w\f!!\210*=1BA\211=1B\204\350*\n&>\206\33= 7\211:\204\224\313\202\241 @9\203\240 AA\202\241 )?\206\337=0E\322=3D\203\= 265\n'>?\206\337=0E\323=3D\203\303\n(>\206\337\311\f\211:\204\320\313\202\= 335 @9\203\334 AA\202\335 )\")\207" [--data element --type info --walk-tree= types plain-text plist-get :ignore-list mapc org-data nil throw --map-firs= t-match objects get-text-property 0 reverse greater-elements elements fun r= esult first-match --acc --category org-element-secondary-value-alist p --do= list-tail-- property with-affiliated org-element-all-elements org-element--= parsed-properties-alist kwd-pair value kwd org-element-dual-keywords org-el= ement-multiple-keywords line no-recursion org-element-greater-elements org-= element-all-objects] 6](#("Towards multi-threaded TCG" 0 26 (:parent (#0)))) mapc(#[(--data) "\211:\204=00 ;\205=00\306\202=00 @9\205=00 @)?\206\337= =0B\203,\307=0B\310\">\206\337\n\2047\311\f\"\202\337\n\312=3D\203\\\311\= f\211:\204J\313\202W @9\203V AA\202W )\"\202\337\n>\203\202=0E!\211=15\20= 3\201=0E\203z\314\315=15\"\210\202\201=0E=0EB=17)=18\316=3D\203\312;\204\3= 12\n=19\236A\313=1A\211=1B\203\311=0E@=1A\f=1A=1E ;\203\266\317\320=1C #\2= 02\275\307 A@=1C\"*!\210=1BA\211=1B\204\234*=1D\203\202=0E\316=3D\203\202\n= =1E>\203\202=0E=1F\313 \211=1B\203\201=0E@\211 @ A=1E ;\203=01\317\320=1C = #\202=0B\307 A@=1C\"*!\"!\203w=0E\"#\235\203_=0E\"$\235\203P\321!!\313%\211= =1B\203L=0E@%\f%A!\210\f%@!\210=1BA\211=1B\2042*\202w\f!A!\210\f!@!\210\202= w=0E\"$\235\203r\311\f\321!!\"\210\202w\f!!\210*=1BA\211=1B\204\350*\n&>\20= 6\337\211:\204\224\313\202\241 @9\203\240 AA\202\241 )?\206\337=0E\322=3D\= 203\265\n'>?\206\337=0E\323=3D\203\303\n(>\206\337\311\f\211:\204\320\313\= 202\335 @9\203\334 AA\202\335 )\")\207" [--data element --type info --walk-= tree types plain-text plist-get :ignore-list mapc org-data nil throw --map-= first-match objects get-text-property 0 reverse greater-elements elements f= un result first-match --acc --category org-element-secondary-value-alist p = --dolist-tail-- property with-affiliated org-element-all-elements org-eleme= nt--parsed-properties-alist kwd-pair value kwd org-element-dual-keywords or= g-element-multiple-keywords line no-recursion org-element-greater-elements = org-element-all-objects] 6] (#("Towards multi-threaded TCG" 0 26 (:parent #= 0)))) #[(--data) "\211:\204=00 ;\205=00\306\202=00 @9\205=00 @)?\206\337=0B\2= 03,\307=0B\310\">\206\337\n\2047\311\f\"\202\337\n\312=3D\203\\\311\f\21= 1:\204J\313\202W @9\203V AA\202W )\"\202\337\n>\203\202=0E!\211=15\203\201= =0E\203z\314\315=15\"\210\202\201=0E=0EB=17)=18\316=3D\203\312;\204\312\n= =19\236A\313=1A\211=1B\203\311=0E@=1A\f=1A=1E ;\203\266\317\320=1C #\202\2= 75\307 A@=1C\"*!\210=1BA\211=1B\204\234*=1D\203\202=0E\316=3D\203\202\n=1E>= \203\202=0E=1F\313 \211=1B\203\201=0E@\211 @ A=1E ;\203=01\317\320=1C #\20= 2=0B\307 A@=1C\"*!\"!\203w=0E\"#\235\203_=0E\"$\235\203P\321!!\313%\211=1B\= 203L=0E@%\f%A!\210\f%@!\210=1BA\211=1B\2042*\202w\f!A!\210\f!@!\210\202w=0E= \"$\235\203r\311\f\321!!\"\210\202w\f!!\210*=1BA\211=1B\204\350*\n&>\206\33= 7\211:\204\224\313\202\241 @9\203\240 AA\202\241 )?\206\337=0E\322=3D\203\= 265\n'>?\206\337=0E\323=3D\203\303\n(>\206\337\311\f\211:\204\320\313\202\= 335 @9\203\334 AA\202\335 )\")\207" [--data element --type info --walk-tree= types plain-text plist-get :ignore-list mapc org-data nil throw --map-firs= t-match objects get-text-property 0 reverse greater-elements elements fun r= esult first-match --acc --category org-element-secondary-value-alist p --do= list-tail-- property with-affiliated org-element-all-elements org-element--= parsed-properties-alist kwd-pair value kwd org-element-dual-keywords org-el= ement-multiple-keywords line no-recursion org-element-greater-elements org-= element-all-objects] 6]((#("Towards multi-threaded TCG" 0 26 (:parent #0)))) byte-code(" !\210\n\237\207" [--walk-tree data --acc] 2) org-element-map((#("Towards multi-threaded TCG" 0 26 (:parent #0))) plain= -text #[(s) "\306\307\310#=1A\311\312 \211:\204=00\313\202\"=0B@9\203!=0B= AA\202\"=0B)\"\210\314\315\n \211:\2043\313\202@=0B@9\203?=0BAA\202@=0B)#\2= 10 \316\211\n=1C=0B;\203V\317\320\f=0B#\202\\\321=0BA@\f\"*=1C\211;\203n\32= 2=0B\313\f$\202z=0BA\323=0BA@\f#\240\210=0B+\210\nA A@\240\210\n @\240*\207= " [s new old element property value replace-regexp-in-string "\n" " " mapc = #[(blob) "\305 =1B\211;\203=00\306\f\307=0B\n$\202 \fA\310\fA@=0B\n#\240\2= 10\f+\207" [blob old value property element :parent org-add-props nil plist= -put] 6] nil apply org-element-set-contents :parent get-text-property 0 pli= st-get org-add-props plist-put] 6]) org-export--get-inbuffer-options([cl-struct-org-export-backend reveal htm= l ((export-block . org-reveal-export-block) (headline . org-reveal-headline= ) (inner-template . org-reveal-inner-template) (item . org-reveal-item) (ke= yword . org-reveal-keyword) (plain-list . org-reveal-plain-list) (paragraph= . org-reveal-paragraph) (quote-block . org-reveal-quote-block) (section . = org-reveal-section) (src-block . org-reveal-src-block) (template . org-reve= al-template)) ((:reveal-control nil "reveal_control" org-reveal-control t) = (:reveal-progress nil "reveal_progress" org-reveal-progress t) (:reveal-his= tory nil "reveal_history" org-reveal-history t) (:reveal-center nil "reveal= _center" org-reveal-center t) (:reveal-rolling-links nil "reveal_rolling_li= nks" org-reveal-rolling-links t) (:reveal-slide-number nil "reveal_slide_nu= mber" org-reveal-slide-number t) (:reveal-keyboard nil "reveal_keyboard" or= g-reveal-keyboard t) (:reveal-overview nil "reveal_overview" org-reveal-ove= rview t) (:reveal-width nil "reveal_width" org-reveal-width t) (:reveal-hei= ght nil "reveal_height" org-reveal-height) (:reveal-margin "REVEAL_MARGIN" = nil org-reveal-margin t) (:reveal-min-scale "REVEAL_MIN_SCALE" nil org-reve= al-min-scale t) (:reveal-max-scale "REVEAL_MAX_SCALE" nil org-reveal-max-sc= ale t) (:reveal-root "REVEAL_ROOT" nil org-reveal-root t) (:reveal-trans "R= EVEAL_TRANS" nil org-reveal-transition t) (:reveal-speed "REVEAL_SPEED" nil= org-reveal-transition-speed t) (:reveal-theme "REVEAL_THEME" nil org-revea= l-theme t) (:reveal-extra-css "REVEAL_EXTRA_CSS" nil nil nil) (:reveal-extr= a-js "REVEAL_EXTRA_JS" nil org-reveal-extra-js nil) (:reveal-hlevel "REVEAL= _HLEVEL" nil nil t) (:reveal-title-slide nil "reveal_title_slide" org-revea= l-title-slide t) (:reveal-title-slide-template "REVEAL_TITLE_SLIDE_TEMPLATE= " nil org-reveal-title-slide-template t) (:reveal-title-slide-background "R= EVEAL_TITLE_SLIDE_BACKGROUND" nil nil t) (:reveal-title-slide-background-si= ze "REVEAL_TITLE_SLIDE_BACKGROUND_SIZE" nil nil t) (:reveal-title-slide-bac= kground-repeat "REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT" nil nil t) (:reveal-t= itle-slide-background-transition "REVEAL_TITLE_SLIDE_BACKGROUND_TRANSITION"= nil nil t) (:reveal-mathjax nil "reveal_mathjax" org-reveal-mathjax t) (:r= eveal-mathjax-url "REVEAL_MATHJAX_URL" nil org-reveal-mathjax-url t) (:reve= al-preamble "REVEAL_PREAMBLE" nil org-reveal-preamble t) (:reveal-head-prea= mble "REVEAL_HEAD_PREAMBLE" nil org-reveal-head-preamble t) (:reveal-postam= ble "REVEAL_POSTAMBLE" nil org-reveal-postamble t) (:reveal-multiplex-id "R= EVEAL_MULTIPLEX_ID" nil org-reveal-multiplex-id nil) (:reveal-multiplex-sec= ret "REVEAL_MULTIPLEX_SECRET" nil org-reveal-multiplex-secret nil) (:reveal= -multiplex-url "REVEAL_MULTIPLEX_URL" nil org-reveal-multiplex-url nil) (:r= eveal-multiplex-socketio-url "REVEAL_MULTIPLEX_SOCKETIO_URL" nil org-reveal= -multiplex-socketio-url nil) (:reveal-slide-header "REVEAL_SLIDE_HEADER" ni= l org-reveal-slide-header t) (:reveal-slide-footer "REVEAL_SLIDE_FOOTER" ni= l org-reveal-slide-footer t) (:reveal-plugins "REVEAL_PLUGINS" nil nil t) (= :reveal-default-frag-style "REVEAL_DEFAULT_FRAG_STYLE" nil org-reveal-defau= lt-frag-style t)) ((:filter-parse-tree . org-reveal-filter-parse-tree)) ("R= EVEAL" "NOTES") (82 "Export to reveal.js HTML Presentation" ((82 "To file" = org-reveal-export-to-html) (66 "To file and Browse" org-reveal-export-to-ht= ml-and-browse)))]) org-export-get-environment([cl-struct-org-export-backend reveal html ((ex= port-block . org-reveal-export-block) (headline . org-reveal-headline) (inn= er-template . org-reveal-inner-template) (item . org-reveal-item) (keyword = . org-reveal-keyword) (plain-list . org-reveal-plain-list) (paragraph . org= -reveal-paragraph) (quote-block . org-reveal-quote-block) (section . org-re= veal-section) (src-block . org-reveal-src-block) (template . org-reveal-tem= plate)) ((:reveal-control nil "reveal_control" org-reveal-control t) (:reve= al-progress nil "reveal_progress" org-reveal-progress t) (:reveal-history n= il "reveal_history" org-reveal-history t) (:reveal-center nil "reveal_cente= r" org-reveal-center t) (:reveal-rolling-links nil "reveal_rolling_links" o= rg-reveal-rolling-links t) (:reveal-slide-number nil "reveal_slide_number" = org-reveal-slide-number t) (:reveal-keyboard nil "reveal_keyboard" org-reve= al-keyboard t) (:reveal-overview nil "reveal_overview" org-reveal-overview = t) (:reveal-width nil "reveal_width" org-reveal-width t) (:reveal-height ni= l "reveal_height" org-reveal-height) (:reveal-margin "REVEAL_MARGIN" nil or= g-reveal-margin t) (:reveal-min-scale "REVEAL_MIN_SCALE" nil org-reveal-min= -scale t) (:reveal-max-scale "REVEAL_MAX_SCALE" nil org-reveal-max-scale t)= (:reveal-root "REVEAL_ROOT" nil org-reveal-root t) (:reveal-trans "REVEAL_= TRANS" nil org-reveal-transition t) (:reveal-speed "REVEAL_SPEED" nil org-r= eveal-transition-speed t) (:reveal-theme "REVEAL_THEME" nil org-reveal-them= e t) (:reveal-extra-css "REVEAL_EXTRA_CSS" nil nil nil) (:reveal-extra-js "= REVEAL_EXTRA_JS" nil org-reveal-extra-js nil) (:reveal-hlevel "REVEAL_HLEVE= L" nil nil t) (:reveal-title-slide nil "reveal_title_slide" org-reveal-titl= e-slide t) (:reveal-title-slide-template "REVEAL_TITLE_SLIDE_TEMPLATE" nil = org-reveal-title-slide-template t) (:reveal-title-slide-background "REVEAL_= TITLE_SLIDE_BACKGROUND" nil nil t) (:reveal-title-slide-background-size "RE= VEAL_TITLE_SLIDE_BACKGROUND_SIZE" nil nil t) (:reveal-title-slide-backgroun= d-repeat "REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT" nil nil t) (:reveal-title-s= lide-background-transition "REVEAL_TITLE_SLIDE_BACKGROUND_TRANSITION" nil n= il t) (:reveal-mathjax nil "reveal_mathjax" org-reveal-mathjax t) (:reveal-= mathjax-url "REVEAL_MATHJAX_URL" nil org-reveal-mathjax-url t) (:reveal-pre= amble "REVEAL_PREAMBLE" nil org-reveal-preamble t) (:reveal-head-preamble "= REVEAL_HEAD_PREAMBLE" nil org-reveal-head-preamble t) (:reveal-postamble "R= EVEAL_POSTAMBLE" nil org-reveal-postamble t) (:reveal-multiplex-id "REVEAL_= MULTIPLEX_ID" nil org-reveal-multiplex-id nil) (:reveal-multiplex-secret "R= EVEAL_MULTIPLEX_SECRET" nil org-reveal-multiplex-secret nil) (:reveal-multi= plex-url "REVEAL_MULTIPLEX_URL" nil org-reveal-multiplex-url nil) (:reveal-= multiplex-socketio-url "REVEAL_MULTIPLEX_SOCKETIO_URL" nil org-reveal-multi= plex-socketio-url nil) (:reveal-slide-header "REVEAL_SLIDE_HEADER" nil org-= reveal-slide-header t) (:reveal-slide-footer "REVEAL_SLIDE_FOOTER" nil org-= reveal-slide-footer t) (:reveal-plugins "REVEAL_PLUGINS" nil nil t) (:revea= l-default-frag-style "REVEAL_DEFAULT_FRAG_STYLE" nil org-reveal-default-fra= g-style t)) ((:filter-parse-tree . org-reveal-filter-parse-tree)) ("REVEAL"= "NOTES") (82 "Export to reveal.js HTML Presentation" ((82 "To file" org-re= veal-export-to-html) (66 "To file and Browse" org-reveal-export-to-html-and= -browse)))] nil (:output-file "./towards-multithreaded-tcg.html")) org-export-as(reveal nil nil nil (:output-file "./towards-multithreaded-t= cg.html")) org-export-to-file(reveal "./towards-multithreaded-tcg.html" nil nil nil = nil nil) org-reveal-export-to-html(nil nil nil nil) org-export-dispatch(nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) But with all the byte code its very hard to follow :-/ I shall poke some more. > > Regards, > > [fn:1] https://github.com/yjwen/org-reveal/blob/master/ox-reveal.el=20 --=20 Alex Benn=C3=A9e