Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org-mode export problems. #6296

Closed
jiadongdan opened this issue Jun 11, 2016 · 22 comments
Closed

Org-mode export problems. #6296

jiadongdan opened this issue Jun 11, 2016 · 22 comments
Labels
- Bug tracker - Org stale marked as a stale issue/pr (usually by a bot) To be reproduced

Comments

@jiadongdan
Copy link

jiadongdan commented Jun 11, 2016

Description

When I add

#+TITLE: this is a title

in the beginning of my org file, then I hit C-c C-e to export to other format like (html, twbs), I have the following problems:

screenshot 2016-06-12 00 41 14

When I remove #+TITLE: this is a title, everything is fine. Shown as:

screenshot 2016-06-12 01 03 25

By the way, this is not stricter to #+TITLE, some with #+ will cause the problems, some will not.

Reproduction guide

  • Start Emacs
  • open one org file with #+TITLE: this is a title
  • C-c C-e h h
  • problems as shown in the figure

Observed behaviour:
HTML can not be exported if #+title is added

Expected behaviour:

+ TITLE: title should not influence export results

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.21
  • Spacemacs branch: master (rev. 0283f64)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
(auto-completion better-defaults emacs-lisp org)

Backtrace

screenshot 2016-06-12 01 23 45

@TheBB
Copy link
Collaborator

TheBB commented Jun 11, 2016

BACKTRACE IF RELEVANT

It's quite relevant. Mind including one?

@jiadongdan
Copy link
Author

I have added two photos to compare, in fact I did not have this problems previously.

@jiadongdan
Copy link
Author

I have no idea what's going on there, anyone have any ideas?

@TheBB
Copy link
Collaborator

TheBB commented Jun 11, 2016

Thanks but can you include the backtrace please. Toggle SPC t D and then trigger the error to get one.

@jiadongdan
Copy link
Author

I have added the screenshot of backtrace, this is a big problem for me. I have to export HTML format often, if the title cannot be added, it will be a disaster for me.

@jiadongdan
Copy link
Author

Have you reproduced this? Thanks.

@TheBB
Copy link
Collaborator

TheBB commented Jun 11, 2016

No I haven't. What is your org-version?

@jiadongdan
Copy link
Author

Org-mode 8.3.4

@jiadongdan
Copy link
Author

I have tried the raw version of emacs, it does not have this problem.

@TheBB
Copy link
Collaborator

TheBB commented Jun 11, 2016

Well, anyway I can't reproduce it. Sorry.

@TheBB
Copy link
Collaborator

TheBB commented Jun 11, 2016

I have tried the raw version of emacs, it does not have this problem.

Raw Emacs uses an older version of org-mode, so that's not really conclusive.

@jiadongdan
Copy link
Author

I will reinstall to see whether there is a change

@jiadongdan
Copy link
Author

Oops, still have the problems, sometimes it is OK, sometimes NOT...

@nickanderson
Copy link
Contributor

I am also getting these errors from time to time. Previously I had success with removing ox-reveal (that was before i started running the develop branch and was ) Now ox-reveal is in the org layer and I have it disabled

2016-09-15_selection_004

System Info 💻

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: develop (rev. 26df4a7)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(cfengine php emacs-lisp git github markdown
          (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t)
          (org :variables org-enable-org-journal-support t org-enable-reveal-js-support nil)
          deft html spell-checking syntax-checking)

Org-mode 8.3.5

@diadochos
Copy link

diadochos commented Dec 6, 2016

I have had this problem on my machine since a few weeks ago.

Minimal example

  1. Create test1.txt
# -*- mode: org -*-
#+TITLE: test
  1. M-x org-latex-export-to-latex
  2. You get the following message in the minibuffer
    apply: Wrong type argument: listp, #("test" 0 4 (:parent (#0)))

Backtrace

Here's the backtrace I got by running the above procedure.

Debugger entered--Lisp error: (wrong-type-argument listp #("hoge" 0 4 (:parent (#1))))
  org-element-set-contents(#("hoge" 0 4 (:parent (#0))))
  apply(org-element-set-contents #("hoge" 0 4 (:parent (#0))) nil)
  #[257 "\211\305\306\307�#��\310\311�\211�:\204��\312\202\"�\n@9\203!�\nAA\202\"�\n)\"\210\313\314	�\211�:\2043�\312\202@�\n@9\203?�\nAA\202@�\n)#\210�\315\211	��\n;\203V�\316\317�\n#\202\\�\320\nA@�\"*��\211�;\203n�\321\n\312�\f$\202z�\nA\322\nA@�\f#\240\210\n+\210	A�A@\240\210	�@\240*\207" [new old element property value replace-regexp-in-string "\n" " " mapc #[(blob) "�\305	��\211�;\203��\306\f\307�\n$\202 �\fA\310\fA@�\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-get org-add-props plist-put] 7 "\n\n(fn S)"](#("hoge" 0 4 (:parent (#0))))
  #[257 "\211\211:\204��\211;\205��\311\262�\202��\211@9\205��\211@\262��?\206\251�\301\203-��\312\301\313\">\206\251�\211\2049�\314\310\242�\"\202\251�\211\315=\203]�\314\310\242�\211:\204N�\316\262�\202Y�\211@9\203Y�\211AA\262�\"\202\251�\211\304>\203~�\300�!\211\203}�\302\203v�\317\320�\"\210\202}�\307�\307\242B\240\210\210\306\321=\203\271��;\204\271�\211��\236A\211\203\270�\211@\310\242��\211;\203\247�\322\323��#\266\202\202\257�\312�A@�\"\266\202!\210�A\266\202\202\216�\210\303\203Q�\306\321=\203Q�\324�!\325=\203Q���\211\203P�\211@\211@�A�\211;\203\347�\322\323��#\266\202\202\357�\312�A@�\"\266\202\211\203G����\235\2030����\235\203!�\326�!\211\203��\211@\310\242�A!\210\310\242�@!\210�A\266\202\202��\210\202G�\310\242�A!\210\310\242�@!\210\202G����\235\203B�\314\310\242\326�!\"\210\202G�\310\242�!\210\266��A\266\202\202\315�\210\211\305>\206\251��\211:\204c�\316\262�\202n�\211@9\203n�\211AA\262�?\206\251�\306\327=\203\200�\211��>?\206\251�\306\330=\203\216�\324�!\331=\206\251�\314\310\242�\211:\204\235�\316\262�\202\250�\211@9\203\250�\211AA\262�\"\207" [#[257 "\211\305\306\307�#��\310\311�\211�:\204��\312\202\"�\n@9\203!�\nAA\202\"�\n)\"\210\313\314	�\211�:\2043�\312\202@�\n@9\203?�\nAA\202@�\n)#\210�\315\211	��\n;\203V�\316\317�\n#\202\\�\320\nA@�\"*��\211�;\203n�\321\n\312�\f$\202z�\nA\322\nA@�\f#\240\210\n+\210	A�A@\240\210	�@\240*\207" [new old element property value replace-regexp-in-string "\n" " " mapc #[(blob) "�\305	��\211�;\203��\306\f\307�\n$\202 �\fA\310\fA@�\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-get org-add-props plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text) nil objects (nil) (#0) plain-text plist-get :ignore-list mapc org-data nil throw :--map-first-match objects get-text-property 0 org-element-class element reverse greater-elements elements object org-element-secondary-value-alist org-element--parsed-properties-alist org-element-dual-keywords org-element-multiple-keywords org-element-greater-elements] 11 "\n\n(fn --DATA)"](#("hoge" 0 4 (:parent (#0))))
  mapc(#[257 "\211\211:\204��\211;\205��\311\262�\202��\211@9\205��\211@\262��?\206\251�\301\203-��\312\301\313\">\206\251�\211\2049�\314\310\242�\"\202\251�\211\315=\203]�\314\310\242�\211:\204N�\316\262�\202Y�\211@9\203Y�\211AA\262�\"\202\251�\211\304>\203~�\300�!\211\203}�\302\203v�\317\320�\"\210\202}�\307�\307\242B\240\210\210\306\321=\203\271��;\204\271�\211��\236A\211\203\270�\211@\310\242��\211;\203\247�\322\323��#\266\202\202\257�\312�A@�\"\266\202!\210�A\266\202\202\216�\210\303\203Q�\306\321=\203Q�\324�!\325=\203Q���\211\203P�\211@\211@�A�\211;\203\347�\322\323��#\266\202\202\357�\312�A@�\"\266\202\211\203G����\235\2030����\235\203!�\326�!\211\203��\211@\310\242�A!\210\310\242�@!\210�A\266\202\202��\210\202G�\310\242�A!\210\310\242�@!\210\202G����\235\203B�\314\310\242\326�!\"\210\202G�\310\242�!\210\266��A\266\202\202\315�\210\211\305>\206\251��\211:\204c�\316\262�\202n�\211@9\203n�\211AA\262�?\206\251�\306\327=\203\200�\211��>?\206\251�\306\330=\203\216�\324�!\331=\206\251�\314\310\242�\211:\204\235�\316\262�\202\250�\211@9\203\250�\211AA\262�\"\207" [#[257 "\211\305\306\307�#��\310\311�\211�:\204��\312\202\"�\n@9\203!�\nAA\202\"�\n)\"\210\313\314	�\211�:\2043�\312\202@�\n@9\203?�\nAA\202@�\n)#\210�\315\211	��\n;\203V�\316\317�\n#\202\\�\320\nA@�\"*��\211�;\203n�\321\n\312�\f$\202z�\nA\322\nA@�\f#\240\210\n+\210	A�A@\240\210	�@\240*\207" [new old element property value replace-regexp-in-string "\n" " " mapc #[(blob) "�\305	��\211�;\203��\306\f\307�\n$\202 �\fA\310\fA@�\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-get org-add-props plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text) nil objects (nil) (#0) plain-text plist-get :ignore-list mapc org-data nil throw :--map-first-match objects get-text-property 0 org-element-class element reverse greater-elements elements object org-element-secondary-value-alist org-element--parsed-properties-alist org-element-dual-keywords org-element-multiple-keywords org-element-greater-elements] 11 "\n\n(fn --DATA)"] (#("hoge" 0 4 (:parent #0))))
  #[257 "\211\211:\204��\211;\205��\311\262�\202��\211@9\205��\211@\262��?\206\251�\301\203-��\312\301\313\">\206\251�\211\2049�\314\310\242�\"\202\251�\211\315=\203]�\314\310\242�\211:\204N�\316\262�\202Y�\211@9\203Y�\211AA\262�\"\202\251�\211\304>\203~�\300�!\211\203}�\302\203v�\317\320�\"\210\202}�\307�\307\242B\240\210\210\306\321=\203\271��;\204\271�\211��\236A\211\203\270�\211@\310\242��\211;\203\247�\322\323��#\266\202\202\257�\312�A@�\"\266\202!\210�A\266\202\202\216�\210\303\203Q�\306\321=\203Q�\324�!\325=\203Q���\211\203P�\211@\211@�A�\211;\203\347�\322\323��#\266\202\202\357�\312�A@�\"\266\202\211\203G����\235\2030����\235\203!�\326�!\211\203��\211@\310\242�A!\210\310\242�@!\210�A\266\202\202��\210\202G�\310\242�A!\210\310\242�@!\210\202G����\235\203B�\314\310\242\326�!\"\210\202G�\310\242�!\210\266��A\266\202\202\315�\210\211\305>\206\251��\211:\204c�\316\262�\202n�\211@9\203n�\211AA\262�?\206\251�\306\327=\203\200�\211��>?\206\251�\306\330=\203\216�\324�!\331=\206\251�\314\310\242�\211:\204\235�\316\262�\202\250�\211@9\203\250�\211AA\262�\"\207" [#[257 "\211\305\306\307�#��\310\311�\211�:\204��\312\202\"�\n@9\203!�\nAA\202\"�\n)\"\210\313\314	�\211�:\2043�\312\202@�\n@9\203?�\nAA\202@�\n)#\210�\315\211	��\n;\203V�\316\317�\n#\202\\�\320\nA@�\"*��\211�;\203n�\321\n\312�\f$\202z�\nA\322\nA@�\f#\240\210\n+\210	A�A@\240\210	�@\240*\207" [new old element property value replace-regexp-in-string "\n" " " mapc #[(blob) "�\305	��\211�;\203��\306\f\307�\n$\202 �\fA\310\fA@�\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-get org-add-props plist-put] 7 "\n\n(fn S)"] nil nil nil (plain-text) nil objects (nil) (#0) plain-text plist-get :ignore-list mapc org-data nil throw :--map-first-match objects get-text-property 0 org-element-class element reverse greater-elements elements object org-element-secondary-value-alist org-element--parsed-properties-alist org-element-dual-keywords org-element-multiple-keywords org-element-greater-elements] 11 "\n\n(fn --DATA)"]((#("hoge" 0 4 (:parent #0))))
  org-element-map((#("hoge" 0 4 (:parent #0))) plain-text #[257 "\211\305\306\307�#��\310\311�\211�:\204��\312\202\"�\n@9\203!�\nAA\202\"�\n)\"\210\313\314	�\211�:\2043�\312\202@�\n@9\203?�\nAA\202@�\n)#\210�\315\211	��\n;\203V�\316\317�\n#\202\\�\320\nA@�\"*��\211�;\203n�\321\n\312�\f$\202z�\nA\322\nA@�\f#\240\210\n+\210	A�A@\240\210	�@\240*\207" [new old element property value replace-regexp-in-string "\n" " " mapc #[(blob) "�\305	��\211�;\203��\306\f\307�\n$\202 �\fA\310\fA@�\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-get org-add-props plist-put] 7 "\n\n(fn S)"])
  org-export--get-inbuffer-options([cl-struct-org-export-backend latex nil ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block . org-latex-quote-block) (radio-target . org-latex-radio-target) (section . org-latex-section) (special-block . org-latex-special-block) (src-block . org-latex-src-block) (statistics-cookie . org-latex-statistics-cookie) (strike-through . org-latex-strike-through) (subscript . org-latex-subscript) (superscript . org-latex-superscript) (table . org-latex-table) (table-cell . org-latex-table-cell) (table-row . org-latex-table-row) (target . org-latex-target) (template . org-latex-template) (timestamp . org-latex-timestamp) (underline . org-latex-underline) (verbatim . org-latex-verbatim) (verse-block . org-latex-verse-block) (latex-math-block . org-latex-math-block) (latex-matrices . org-latex-matrices)) ((:latex-class "LATEX_CLASS" nil org-latex-default-class t) (:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t) (:latex-header "LATEX_HEADER" nil nil newline) (:latex-header-extra "LATEX_HEADER_EXTRA" nil nil newline) (:description "DESCRIPTION" nil nil parse) (:keywords "KEYWORDS" nil nil parse) (:subtitle "SUBTITLE" nil nil parse) (:latex-active-timestamp-format nil nil org-latex-active-timestamp-format) (:latex-caption-above nil nil org-latex-caption-above) (:latex-classes nil nil org-latex-classes) (:latex-default-figure-position nil nil org-latex-default-figure-position) (:latex-default-table-environment nil nil org-latex-default-table-environment) (:latex-default-table-mode nil nil org-latex-default-table-mode) (:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format) (:latex-footnote-defined-format nil nil org-latex-footnote-defined-format) (:latex-footnote-separator nil nil org-latex-footnote-separator) (:latex-format-drawer-function nil nil org-latex-format-drawer-function) (:latex-format-headline-function nil nil org-latex-format-headline-function) (:latex-format-inlinetask-function nil nil org-latex-format-inlinetask-function) (:latex-hyperref-template nil nil org-latex-hyperref-template t) (:latex-image-default-height nil nil org-latex-image-default-height) (:latex-image-default-option nil nil org-latex-image-default-option) (:latex-image-default-width nil nil org-latex-image-default-width) (:latex-images-centered nil nil org-latex-images-centered) (:latex-inactive-timestamp-format nil nil org-latex-inactive-timestamp-format) (:latex-inline-image-rules nil nil org-latex-inline-image-rules) (:latex-link-with-unknown-path-format nil nil org-latex-link-with-unknown-path-format) (:latex-listings nil nil org-latex-listings) (:latex-listings-langs nil nil org-latex-listings-langs) (:latex-listings-options nil nil org-latex-listings-options) (:latex-minted-langs nil nil org-latex-minted-langs) (:latex-minted-options nil nil org-latex-minted-options) (:latex-prefer-user-labels nil nil org-latex-prefer-user-labels) (:latex-subtitle-format nil nil org-latex-subtitle-format) (:latex-subtitle-separate nil nil org-latex-subtitle-separate) (:latex-table-scientific-notation nil nil org-latex-table-scientific-notation) (:latex-tables-booktabs nil nil org-latex-tables-booktabs) (:latex-tables-centered nil nil org-latex-tables-centered) (:latex-text-markup-alist nil nil org-latex-text-markup-alist) (:latex-title-command nil nil org-latex-title-command) (:latex-toc-command nil nil org-latex-toc-command) (:latex-compiler "LATEX_COMPILER" nil org-latex-compiler) (:date "DATE" nil "\\today" parse)) ((:filter-options . org-latex-math-block-options-filter) (:filter-parse-tree org-latex-math-block-tree-filter org-latex-matrices-tree-filter)) nil (108 "Export to LaTeX" ((76 "As LaTeX buffer" org-latex-export-as-latex) (108 "As LaTeX file" org-latex-export-to-latex) (112 "As PDF file" org-latex-export-to-pdf) (111 "As PDF file and open" (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b)))))))])
  org-export-get-environment([cl-struct-org-export-backend latex nil ((bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) (latex-fragment . org-latex-latex-fragment) (line-break . org-latex-line-break) (link . org-latex-link) (node-property . org-latex-node-property) (paragraph . org-latex-paragraph) (plain-list . org-latex-plain-list) (plain-text . org-latex-plain-text) (planning . org-latex-planning) (property-drawer . org-latex-property-drawer) (quote-block . org-latex-quote-block) (radio-target . org-latex-radio-target) (section . org-latex-section) (special-block . org-latex-special-block) (src-block . org-latex-src-block) (statistics-cookie . org-latex-statistics-cookie) (strike-through . org-latex-strike-through) (subscript . org-latex-subscript) (superscript . org-latex-superscript) (table . org-latex-table) (table-cell . org-latex-table-cell) (table-row . org-latex-table-row) (target . org-latex-target) (template . org-latex-template) (timestamp . org-latex-timestamp) (underline . org-latex-underline) (verbatim . org-latex-verbatim) (verse-block . org-latex-verse-block) (latex-math-block . org-latex-math-block) (latex-matrices . org-latex-matrices)) ((:latex-class "LATEX_CLASS" nil org-latex-default-class t) (:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t) (:latex-header "LATEX_HEADER" nil nil newline) (:latex-header-extra "LATEX_HEADER_EXTRA" nil nil newline) (:description "DESCRIPTION" nil nil parse) (:keywords "KEYWORDS" nil nil parse) (:subtitle "SUBTITLE" nil nil parse) (:latex-active-timestamp-format nil nil org-latex-active-timestamp-format) (:latex-caption-above nil nil org-latex-caption-above) (:latex-classes nil nil org-latex-classes) (:latex-default-figure-position nil nil org-latex-default-figure-position) (:latex-default-table-environment nil nil org-latex-default-table-environment) (:latex-default-table-mode nil nil org-latex-default-table-mode) (:latex-diary-timestamp-format nil nil org-latex-diary-timestamp-format) (:latex-footnote-defined-format nil nil org-latex-footnote-defined-format) (:latex-footnote-separator nil nil org-latex-footnote-separator) (:latex-format-drawer-function nil nil org-latex-format-drawer-function) (:latex-format-headline-function nil nil org-latex-format-headline-function) (:latex-format-inlinetask-function nil nil org-latex-format-inlinetask-function) (:latex-hyperref-template nil nil org-latex-hyperref-template t) (:latex-image-default-height nil nil org-latex-image-default-height) (:latex-image-default-option nil nil org-latex-image-default-option) (:latex-image-default-width nil nil org-latex-image-default-width) (:latex-images-centered nil nil org-latex-images-centered) (:latex-inactive-timestamp-format nil nil org-latex-inactive-timestamp-format) (:latex-inline-image-rules nil nil org-latex-inline-image-rules) (:latex-link-with-unknown-path-format nil nil org-latex-link-with-unknown-path-format) (:latex-listings nil nil org-latex-listings) (:latex-listings-langs nil nil org-latex-listings-langs) (:latex-listings-options nil nil org-latex-listings-options) (:latex-minted-langs nil nil org-latex-minted-langs) (:latex-minted-options nil nil org-latex-minted-options) (:latex-prefer-user-labels nil nil org-latex-prefer-user-labels) (:latex-subtitle-format nil nil org-latex-subtitle-format) (:latex-subtitle-separate nil nil org-latex-subtitle-separate) (:latex-table-scientific-notation nil nil org-latex-table-scientific-notation) (:latex-tables-booktabs nil nil org-latex-tables-booktabs) (:latex-tables-centered nil nil org-latex-tables-centered) (:latex-text-markup-alist nil nil org-latex-text-markup-alist) (:latex-title-command nil nil org-latex-title-command) (:latex-toc-command nil nil org-latex-toc-command) (:latex-compiler "LATEX_COMPILER" nil org-latex-compiler) (:date "DATE" nil "\\today" parse)) ((:filter-options . org-latex-math-block-options-filter) (:filter-parse-tree org-latex-math-block-tree-filter org-latex-matrices-tree-filter)) nil (108 "Export to LaTeX" ((76 "As LaTeX buffer" org-latex-export-as-latex) (108 "As LaTeX file" org-latex-export-to-latex) (112 "As PDF file" org-latex-export-to-pdf) (111 "As PDF file and open" (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b)))))))] nil (:output-file "./20161206.tex"))
  org-export-as(latex nil nil nil (:output-file "./20161206.tex"))
  org-export-to-file(latex "./20161206.tex" nil nil nil nil nil (closure ((outfile . "./20161206.tex") (ext-plist) (body-only) (visible-only) (subtreep) (async) t) (file) (org-latex-compile file)))
  (let ((outfile (org-export-output-file-name ".tex" subtreep))) (org-export-to-file (quote latex) outfile async subtreep visible-only body-only ext-plist (function (lambda (file) (org-latex-compile file)))))
  org-latex-export-to-pdf(nil nil nil nil)
  (org-open-file (org-latex-export-to-pdf nil s v b))
  (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b))))(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)

Some clue

When I change the title to a date-time like this (test2.txt):
# -*- mode: org -*-
#+TITLE: [2016-12-06]

Then the problem won't occur.

The difference

When I change the file content to (text3.txt)

# -*- mode: org -*-
#+TITLE: test [2016-12-06]

and run M-x org-latex-export-to-latex, I get:
apply: Wrong type argument: listp, #("test " 0 5 (:parent (#0 (timestamp (:type inactive :raw-value "[2016-12-06]" :year-start 2016 :month-start 12 :day-start 6 ...)))))

So the difference between test1.txt and test2.txt is probably the difference between "timestamp" and just a string.

System Info 💻

  • OS: darwin
  • Emacs: 25.1.1
  • Spacemacs: 0.200.5
  • Spacemacs branch: master (rev. 664ba6a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Org mode version 9.0.1 (9.0.1-elpa @ elpa/org-20161118/)
  • Layers:
(nginx csv bibtex
       (auto-completion :variables auto-completion-enable-sort-by-usage t auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t auto-completion-private-snippets-directory "~/.emacs.d.bak/snippets/")
       better-defaults ipython-notebook emacs-lisp markdown
       (org :variables org-enable-github-support t)
       osx spell-checking syntax-checking
       (ruby :variables ruby-enable-enh-ruby-mode t ruby-version-manager 'rbenv ruby-test-runner 'rspec)
       python javascript latex yaml php gtags ess version-control git html clojure extra-langs dash docker my-keybindings my-config-from-spacemacs-base realgud)
  • System configuration features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

@mathpunk
Copy link
Contributor

mathpunk commented Dec 18, 2016

Description

org-exporter won't open an HTML buffer.

Reproduction guide

I have an org-file with header

# -*- mode: org -*-
#+TITLE: title

I hit the key sequence , e e h H: that is, open the org-mode export dispatcher, select Export to HTML, select As HTML buffer. (Note: I also tried it with no title, and got what looked like the same behavior. The backtrace is from trying with a title.)

Observed behaviour:
Wrong type argument: stringp, nil

Expected behaviour:
Open an HTML buffer based on the org-file.

System Info 💻

  • OS: gnu/linux
  • Emacs: 25.1.1
  • Spacemacs: 0.200.5
  • Spacemacs branch: develop (rev. 467a5cc)
  • Graphic display: t
  • Distribution: spacemacs-base
  • Editing style: vim
  • Completion: ivy
  • Layers:
(ivy better-defaults
     (auto-completion :variables auto-completion-tab-key-behavior 'cycle auto-completion-space-key-behavior 'reject auto-completion-return-key-behavior 'reject auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t auto-completion-enable-sort-by-usage t auto-completion-complete-with-key-sequence "jk" auto-completion-complete-with-key-sequence-delay 0.1)
     (shell :variables shell-default-shell 'term shell-default-term-shell "/usr/bin/zsh" shell-default-height 40 shell-default-position 'bottom)
     emacs-lisp javascript clojure latex git github restclient syntax-checking markdown deft org themes-megapack typography)
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

Backtrace

  org-babel-exp-src-block()
  org-babel-exp-process-buffer()
  org-export-as(html nil nil nil nil)
  org-export-to-buffer(html "*Org HTML Export*" nil nil nil nil nil (closure ((ext-plist) (body-only) (visible-only) (subtreep) (async) org-html-standalone-image-predicate htmlize-buffer-places org-html-format-table-no-css htmlize-css-name-prefix htmlize-output-type htmlize-output-type htmlize-css-name-prefix t) nil (set-auto-mode t)))
  org-html-export-as-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)```

@mnick
Copy link

mnick commented Mar 25, 2017

This issue seems to be related to incompatibilities between builtin org-mode (8.x) and Spacemacs org-mode (9.x).

Deleting all compiled org-mode files in the elpa directory fixes it for me:

for dir in "$HOME/.emacs.d/elpa/org-"*/; find $dir -name "*.elc" -delete

Interestingly, deleting the entire elpa directory doesn't work.

Related issues: #8414 #7641

@vdm
Copy link

vdm commented Mar 28, 2017

bash-4.4$ for dir in "$HOME/.emacs.d/elpa/org-"*/; do find $dir -name "*.elc" -delete; done

@bhipple
Copy link
Contributor

bhipple commented Apr 24, 2017

Thanks @mnick, your suggestion worked for me. I had tried updating everything and deleting the entire elpa directory without any luck; now it's all performing well!

@biocyberman
Copy link

@mnick That works :) Which means org-* package are installed with precompiled files?

@hoosierEE
Copy link

Thanks @mnick and @vdm that fixes it for me.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Org stale marked as a stale issue/pr (usually by a bot) To be reproduced
Projects
None yet
Development

No branches or pull requests

10 participants