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

Error while exporting #14

Open
avoine opened this issue Sep 17, 2015 · 7 comments
Open

Error while exporting #14

avoine opened this issue Sep 17, 2015 · 7 comments

Comments

@avoine
Copy link

avoine commented Sep 17, 2015

I've got this error while exporting with Emacs 24.4:

Debugger entered--Lisp error: (wrong-number-of-arguments #[(templates) "\212eb\210\306�\307\310\306\311#\205\\�\312 �\313   !\314=\203X�\315    
\"�\316\317 \"\211� \316\320    \"E\211��\235\203<�\321\322\316\323 \"\"\210\202W��\203W�
�B�\316\324    \"b\210\325\306x\210`|\210\212�c\210)+)\202��*\207" [record object templates value begin signature nil re-search-forward "{{{[-A-Za-z0-9_]" t org-element-context org-element-type macro org-macro-expand org-element-property :begin :args error "Circular macro expansion: %s" :key :end "    "] 6 ("/usr/share/emacs/24.4/lisp/org/org-macro.elc" . 3797)] 3)
  org-macro-replace-all((("modification-time" . "(eval (format-time-string \"$1\" '(22011 7223 28980 721000)))") ("input-file" . "mydoc.org") ("time" . "(eval (format-time-string \"$1\"))") ("property" . "(eval (org-entry-get nil \"$1\" 'selective))")) nil ("SUBTITLE" "TITLE" "DATE" "AUTHOR"))
  org-export-as(rst nil nil nil (:output-file "./mydoc.rst"))
  org-export-to-file(rst "./mydoc.rst" nil nil nil nil nil)
  org-rst-export-to-rst(nil nil nil nil)
  org-export-dispatch(nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)
@msnoigrs
Copy link
Owner

Hi, Thank you for trying ox-rst.
I can't reproduce the problem in my environment (emacs 24.5.1, org-mode bleeding edge git://orgmode.org/org-mode.git)
If possible, please indicate the mydoc.org file.
As far as I see the error, it seems that there is the problem with macro or with version compatibility.

@avoine
Copy link
Author

avoine commented Sep 18, 2015

I've put (org-reload) like it was suggested here:

syl20bnr/spacemacs#2856 (comment)

at the end of my init.el file and now I have this error:

apply: Wrong type argument: listp, #("My Name" 0 12 (:parent (#0)))

I have this header in my org file and no header give me a stringp error:

#+TITLE: My title
#+AUTHOR: My name
#+EMAIL: myemail@xyz.com
the text...

@mclearc
Copy link

mclearc commented Sep 23, 2015

I'm having this problem as well. The work around using (org-reload) doesn't seem to work for me. This seems to be a recent bug, introduced in just the last couple of days.

 Wrong type argument: listp, #("Monday 9.7.15" 0 13 (:parent (#0)))

@ghost
Copy link

ghost commented Apr 18, 2017

I have the same issue. Seems like this diff is enough to fix:

diff --git a/ox-rst.el b/ox-rst.el
index 7bfb0477d36d..fd1dcc187fac 100644
--- a/ox-rst.el
+++ b/ox-rst.el
@@ -741,7 +741,7 @@ holding export options."
        ;; 1. Document's body.
        contents
        ;; 2. Footnote definitions.
-       (let ((definitions (org-export-collect-footnote-definitions info)))
+       (let ((definitions (org-export-collect-footnote-definitions contents info)))
          (when definitions
                (concat
                 "\n\n"

I'm not sure if it's 100% correct, hopefully @masayuko can have a look :-)

UPDATE:

This function has been changed long ago:

$ git describe 014de0a532cbc60987d09d6040ed46195cffdf12
release_8.3beta-853-g014de0a532cb

$ git show 014de0a532cbc60987d09d6040ed46195cffdf12
commit 014de0a532cbc60987d09d6040ed46195cffdf12
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date:   Fri Feb 20 18:06:23 2015 +0100

    ox: Change `org-export-collect-footnote-definitions' signature
    
    * lisp/ox.el (org-export-collect-footnote-definitions): Refactor
      code.  Change signature.
    
    * testing/lisp/test-ox.el (test-org-export/collect-footnote-definitions):
      New test.
    (test-org-export/footnotes): Update test.
    
    * lisp/ox-ascii.el (org-ascii-inner-template):
    * lisp/ox-html.el (org-html-footnote-section): Apply signature change.
    
    * etc/ORG-NEWS: Document signature change.
    
    This change makes `org-export-collect-footnote-definitions' compatible
    with `org-export-get-footnote-number' and
    `org-export-footnote-first-reference-p'.

No idea why Debian's emacs 25.1 still ships with such old org. I'll update from orgmode.org/elpa and try again

@msnoigrs
Copy link
Owner

Thank you for let me know!

@ghost
Copy link

ghost commented Apr 18, 2017

@masayuko maybe you shouldn't have. Debian is shipping with old org-mode. I guess the real bug is that you're requiring org 8.2.4 when, apparently, you should require 8.4. Please confirm that it's working for you with today's org-mode. I just updated my installation of org-mode to today's git and ox-rst works without any changes.

msnoigrs added a commit that referenced this issue Apr 18, 2017
This reverts commit 3705865.
@msnoigrs
Copy link
Owner

You are right. Thanks.

@msnoigrs msnoigrs reopened this Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants