all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)]
@ 2016-03-09 21:27 Shlomi Vaknin
  2016-03-10  3:00 ` Charles C. Berry
  0 siblings, 1 reply; 9+ messages in thread
From: Shlomi Vaknin @ 2016-03-09 21:27 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 4594 bytes --]

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(#<buffer org-bug.org<2><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)
 )

[-- Attachment #2: Type: text/html, Size: 6154 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-03-13 19:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 21:27 Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)] Shlomi Vaknin
2016-03-10  3:00 ` Charles C. Berry
2016-03-10  5:45   ` Shlomi Vaknin
2016-03-10  6:33     ` Bill Burdick
2016-03-10  9:21     ` Nicolas Goaziou
2016-03-11 21:13       ` Shlomi Vaknin
2016-03-13 17:34         ` Nicolas Goaziou
2016-03-13 19:34           ` Shlomi Vaknin
2016-03-13 19:45             ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.