From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: New exporter: where are the back-end functions called? Date: Mon, 11 Jun 2012 23:17:00 +0200 Message-ID: <87ipexy2er.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeBwc-0003BQ-CA for emacs-orgmode@gnu.org; Mon, 11 Jun 2012 17:14:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeBwa-0003NU-JA for emacs-orgmode@gnu.org; Mon, 11 Jun 2012 17:14:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:44135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeBwa-0003Lt-CW for emacs-orgmode@gnu.org; Mon, 11 Jun 2012 17:14:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SeBwU-0003vo-Fp for emacs-orgmode@gnu.org; Mon, 11 Jun 2012 23:14:30 +0200 Received: from e178188134.adsl.alicedsl.de ([85.178.188.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jun 2012 23:14:30 +0200 Received: from tjolitz by e178188134.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jun 2012 23:14:30 +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: emacs-orgmode@gnu.org Hi Nicolas, Hi List, 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. Unfortunately, I cannot figure out where 'org-e-html-headline' is called in the export process, searching for the function name gave no result. Can anybody give me a hint how to find the caller(s) of this function? Is there Emacs functionality that finds all the callers of a function? I suspect the call is somewhere concatenated out of different pieces in the source code, so a simple search won't help probably. -- cheers, Thorsten