I maintain a fork of an org-mode backend for a markdown based publishing format https://github.com/fommil/dotfiles/blob/master/.emacs.d/lisp/ox-leanpub.el

Which works great for the org-mode that ships with emacs 25.2.

However, when I use the latest org-mode from the snapshots on even the most simple of files, e.g. the one line

Wibble wibble I'm a fish

I get a stacktrace like this (huge amount of data elided)

Debugger entered--Lisp error: (wrong-type-argument sequencep :back-end)
  org-export-as(leanpub nil nil nil nil)
  org-export-to-buffer(leanpub "*Org LEANPUB Export*" nil nil nil nil
nil (lambda nil (text-mode)))
  call-interactively(org-leanpub-export-as-markdown record nil)
  command-execute(org-leanpub-export-as-markdown record)
  execute-extended-command(nil "org-leanpub-export-as-markdown" nil)
  funcall-interactively(execute-extended-command nil
"org-leanpub-export-as-markdown" nil)
  call-interactively(execute-extended-command nil nil)

From reading http://orgmode.org/Changes.html#org1e55804 I can see that I am supposed to remove the :export-block, which I have done locally.

Can anybody see what else I need to change to be compatible with the latest version?

  • Probably helpful to provide some more details as to when you get that error (on opening an org-file, on loading your ox-leanpubl.el, or ?), and perhaps some of the contents of the backtrace. – Tyler Aug 21 '17 at 18:24
  • there is only one command in this backend, which is export. I have updated the stacktrace but it is several MB of binary data so I have elided much of the information. – fommil Aug 22 '17 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.