all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* inconsistency in backend export functions?
@ 2013-12-12 14:27 John Kitchin
  2013-12-12 16:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2013-12-12 14:27 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hi All,

I was playing around with creating a new backend to convert an org-file to
a json representation, and I came across this apparent inconsistency in the
backend function signatures.

at http://orgmode.org/worg/dev/org-export-reference.html it suggests the
backend transcoding functions should have this signature:

(defun org-backend-xxx (element contents info)
  code that converts element to a string)

but, that does not work for a plain-text element. Even in ox-latex.el it is
defined with only two arguments, with no contents.

(defun org-latex-plain-text (text info)

My exporter works when I define it this way too, but it seemed like an odd
inconsistency to me. Am I missing something in the docs somewhere?

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

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

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

end of thread, other threads:[~2013-12-12 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12 14:27 inconsistency in backend export functions? John Kitchin
2013-12-12 16:44 ` Nicolas Goaziou
2013-12-12 17:01   ` John Kitchin

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.