From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shlomi Vaknin Subject: Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)] Date: Wed, 09 Mar 2016 21:27:18 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113abca85a5622052da45d19 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adldi-0007Vx-1R for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 16:27:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adldg-0005cu-AU for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 16:27:29 -0500 Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:36179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adldg-0005cp-55 for emacs-orgmode@gnu.org; Wed, 09 Mar 2016 16:27:28 -0500 Received: by mail-qg0-x235.google.com with SMTP id u110so53836777qge.3 for ; Wed, 09 Mar 2016 13:27:28 -0800 (PST) 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: "emacs-orgmode@gnu.org" --001a113abca85a5622052da45d19 Content-Type: text/plain; charset=UTF-8 Hey, I am a dedicated org-mode user, and I absolutely love it! This is my first post to this group. Recently, one of my org files stopped being exportable (does not matter what I try to export to). I traced the problem to be related to the new inlined code result block {{{result()}}}. I tried a fresh installation of emacs, with nothing extra installed and no custom configuration files with the latest org mode, but the problem persists. I am getting an exception =Wrong type argument: integer-or-marker-p,nil= when trying to export my org file. I managed to systematically remove lines from the file until I was left with the following skeleton that still produces the problem in my setup: -------------------------------------- * Test a - src_elisp{3} * Test Q - src_elisp{3} - test - something - src_elisp{3} - src_elisp{3} {{{results(=3=)}}} src_elisp{3} {{{results(=3=)}}} -------------------------------------- Interesting enough, if I remove any of these lines, the exporter works again.. I am not sure why I am getting this problem, and would appreciate if anyone else tries this out to know if its just a problem in my setup or is it a legitimate bug. Here is the backtrace: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) org-element-plain-list-parser(98 (60) ((25 2 "- " nil nil nil 30) (30 2 "- " nil nil nil 39) (39 2 "- " nil nil nil 110) (53 4 "- " nil nil nil 72) (72 4 "- " nil nil nil 110))) org-element--current-element(98 element nil ((25 2 "- " nil nil nil 30) (30 2 "- " nil nil nil 39) (39 2 "- " nil nil nil 110) (53 4 "- " nil nil nil 72) (72 4 "- " nil nil nil 110))) org-element--parse-to(77) org-element-at-point() org-element-context() org-babel-exp-process-buffer(#<2>>) org-export-execute-babel-code() org-export-as(html nil nil nil (:output-file "./org-bug.html")) org-export-to-file(html "./org-bug.html" nil nil nil nil nil) org-html-export-to-html(nil nil nil nil) org-export-dispatch(nil) funcall-interactively(org-export-dispatch nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) Emacs : GNU Emacs 25.1.50.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1603)) of 2016-03-09 Package: Org-mode version 8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/) current state: ============== (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local))) (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local))) org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'org-html-format-headline-default-function org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) --001a113abca85a5622052da45d19 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey, I am a dedicated org-mode user, and I absolutely= love it! This is my first post to this group.

Rec= ently, one of my org files stopped being exportable (does not matter what I= try to export to). I traced the problem to be related to the new inlined c= ode result block {{{result()}}}. I tried a fresh installation of emacs, wit= h nothing extra installed and no custom configuration files with the latest= org mode, but the problem persists.

I am getting = an exception =3DWrong type argument: integer-or-marker-p,nil=3D when trying= to export my org file. I managed to systematically remove lines from the f= ile until I was left with the following skeleton that still produces the pr= oblem in my setup:

-------------------------------= -------
* Test a
=C2=A0 - src_elisp{3}

* Test Q
=C2=A0 - src_elisp{3}
=C2=A0 - test
=C2=A0 - something
=C2=A0 =C2=A0 - src_elisp{3}
=C2=A0 =C2=A0 - src_elisp{3} {{{results(=3D3=3D)}}}
=C2=A0 src_= elisp{3} {{{results(=3D3=3D)}}}
---------------------------------= -----

Interesting enough, if I remove any of these= lines, the exporter works again..
I am not sure why I am getting= this problem, and would appreciate if anyone else tries this out to know i= f its just a problem in my setup or is it a legitimate bug.

<= /div>
Here is the backtrace:
Debugger entered--Lisp error: (w= rong-type-argument integer-or-marker-p nil)
=C2=A0 org-element-pl= ain-list-parser(98 (60) ((25 2 "- " nil nil nil 30) (30 2 "-= " nil nil nil 39) (39 2 "- " nil nil nil 110) (53 4 "-= " nil nil nil 72) (72 4 "- " nil nil nil 110)))
= =C2=A0 org-element--current-element(98 element nil ((25 2 "- " ni= l nil nil 30) (30 2 "- " nil nil nil 39) (39 2 "- " nil= nil nil 110) (53 4 "- " nil nil nil 72) (72 4 "- " nil= nil nil 110)))
=C2=A0 org-element--parse-to(77)
=C2=A0= org-element-at-point()
=C2=A0 org-element-context()
= =C2=A0 org-babel-exp-process-buffer(#<buffer org-bug.org<2><2>>)
=C2=A0 org-export-exec= ute-babel-code()
=C2=A0 org-export-as(html nil nil nil (:output-f= ile "./org-bug.html"))
=C2=A0 org-export-to-file(html &= quot;./org-bug.html" nil nil nil nil nil)
=C2=A0 org-html-ex= port-to-html(nil nil nil nil)
=C2=A0 org-export-dispatch(nil)
=C2=A0 funcall-interactively(org-export-dispatch nil)
=C2= =A0 call-interactively(org-export-dispatch nil nil)
=C2=A0 comman= d-execute(org-export-dispatch)


Emac= s =C2=A0: GNU Emacs 25.1.50.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21= Version 10.9.5 (Build 13F1603)) of 2016-03-09
Package: Org-mode = version 8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)
<= div>
current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
(setq
=C2=A0org-tab-first-hook '(org-h= ide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-= arg-expand)
=C2=A0org-speed-command-hook '(org-speed-command-= default-hook org-babel-speed-command-hook)
=C2=A0org-occur-hook &= #39;(org-first-headline-recenter)
=C2=A0org-metaup-hook '(org= -babel-load-in-session-maybe)
=C2=A0org-html-format-drawer-functi= on '(lambda (name contents) contents)
=C2=A0org-latex-format-= inlinetask-function 'org-latex-format-inlinetask-default-function
=
=C2=A0org-confirm-shell-link-function 'yes-or-no-p
=C2= =A0org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-de= fault
=C2=A0org-latex-format-headline-function 'org-latex-for= mat-headline-default-function
=C2=A0org-after-todo-state-change-h= ook '(org-clock-out-if-current)
=C2=A0org-latex-format-drawer= -function '(lambda (name contents) contents)
=C2=A0org-src-mo= de-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-ed= it-buffer)
=C2=A0org-agenda-before-write-hook '(org-agenda-ad= d-entry-text)
=C2=A0org-babel-pre-tangle-hook '(save-buffer)<= /div>
=C2=A0org-mode-hook '(#[nil "\300\301\302\303\304$\207&q= uot; [org-add-hook change-major-mode-hook org-show-block-all append local] = 5]
#[nil "\300\301\302\303\304$\207" [org-add-hook change-major= -mode-hook org-babel-show-result-all append local] 5]
(lambda nil (org-ad= d-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote app= end) (quote local)))
(lambda nil
=C2=A0(org-add-hook (quote change-majo= r-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local)= ))
org-babel-result-hide-spec org-babel-hide-all-hashes)
=C2=A0= org-archive-hook '(org-attach-archive-delete-maybe)
=C2=A0org= -ascii-format-drawer-function '(lambda (name contents width) contents)<= /div>
=C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-ba= bel-execute-safely-maybe)
=C2=A0org-cycle-hook '(org-cycle-hi= de-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
= =C2=A0org-optimize-window-after-visibility-change)
=C2=A0org-conf= irm-elisp-link-function 'yes-or-no-p
=C2=A0org-metadown-hook = '(org-babel-pop-to-session-maybe)
=C2=A0org-html-format-headl= ine-function 'org-html-format-headline-default-function
=C2= =A0org-html-format-inlinetask-function 'org-html-format-inlinetask-defa= ult-function
=C2=A0org-clock-out-hook '(org-clock-remove-empt= y-clock-drawer)
=C2=A0)

--001a113abca85a5622052da45d19--