From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: New exporter: where are the back-end functions called? Date: Tue, 12 Jun 2012 14:53:04 +0200 Message-ID: <878vfselov.fsf@gmail.com> References: <87ipexy2er.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeQdI-0003nF-E4 for emacs-orgmode@gnu.org; Tue, 12 Jun 2012 08:55:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeQdA-0006oj-CH for emacs-orgmode@gnu.org; Tue, 12 Jun 2012 08:55:39 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:48699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeQdA-0006nf-36 for emacs-orgmode@gnu.org; Tue, 12 Jun 2012 08:55:32 -0400 Received: by wefh52 with SMTP id h52so4184934wef.0 for ; Tue, 12 Jun 2012 05:55:29 -0700 (PDT) In-Reply-To: <87ipexy2er.fsf@googlemail.com> (Thorsten Jolitz's message of "Mon, 11 Jun 2012 23:17:00 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hello, Thorsten Jolitz writes: > when trying to enhance the HTML back-end of the new exporter with > interactive HTML elements, one possibility (probably the easiest and > best) is to write variants for the export functions for some Org > elements that insert different HTML in the output string (HTML form > fields instead of static HTML). > > By far the most interesting Org element for me is the 'headline' > element, that is transcoded by the following function from > 'org-e-html.el': > > ,-------------------------------------------------------------- > | (defun org-e-html-headline (headline contents info) > | "Transcode an HEADLINE element from Org to HTML. > | CONTENTS holds the contents of the headline. INFO is a plist > | holding contextual information." > `-------------------------------------------------------------- > > Now I don't want to mess around in the original exporter code, but > rather would like to rename this function and all the helper functions > it calls with the 'iorg'-prefix and then experiment with changing the > function bodies. You may have a look at `org-export-define-derived-backend' macro and "Defining a Back-End" in Org export documentation[1]. Regards, [1] http://orgmode.org/worg/dev/org-export-reference.html -- Nicolas Goaziou