From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Question about emitting Date: Thu, 23 Oct 2008 11:07:03 -0500 Message-ID: <4900A127.70004@sift.info> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kt2ix-0006Zb-0B for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 12:07:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kt2iv-0006XF-By for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 12:07:46 -0400 Received: from [199.232.76.173] (port=33009 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt2iv-0006Wv-6x for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 12:07:45 -0400 Received: from outbound-mail-39.bluehost.com ([69.89.20.193]:55123) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kt2it-0002Bd-MP for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 12:07:44 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I'd be interested in working on this. I have to use a couple of wikis, so I have been working on some code to generate wiki format out of Org. I'd be interested in cooperating with anyone who takes up Carsten's challenge to help with org exporting. I'm particularly interested because I'd like to see it structured with some kind of abstraction that supports modification. Right now, in order to integrate with the export code that's already there, I've made org-export-as-trac starting from a copy of org-export-as-html. To avoid writing everything completely from scratch, I've had to do a lot of really icky code using advice, for example, stuff like this (from my code to emit trac markup): (defadvice org-open-par (around enable-trac-export activate) (if *trac-exporting* "\n\n\n" ad-do-it)) This is my way to override the default behavior from html export (org-exp.el). It would be a lot nicer, and a lot more extensible to alternative markups (there are a zillion wiki syntaxes, all very close to each other --- we probably wouldn't want to make them all from scratch), if we could do something like simulate method dispatch on some format-type parameter. Unfortunately, emacs lisp doesn't provide any bona fide method dispatch, so it would have to be simulated in some way. Please feel free to contact me if you'd be interested in brainstorming on this. Best, R