From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Sojka Subject: Mediawiki export bugs and export to Doxygen Date: Wed, 24 Aug 2011 11:55:33 +0200 Message-ID: <87hb5716cq.fsf@steelpick.2x.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwABO-0005cG-Ah for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 05:55:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwABN-00029B-0Q for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 05:55:38 -0400 Received: from max.feld.cvut.cz ([147.32.192.36]:55738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwABM-00028Q-R0 for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 05:55:36 -0400 Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 0465B19F3334 for ; Wed, 24 Aug 2011 11:55:35 +0200 (CEST) Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id niTuI5qvWDJS for ; Wed, 24 Aug 2011 11:55:33 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id C7EA719F2F32 for ; Wed, 24 Aug 2011 11:55:33 +0200 (CEST) Received: from steelpick.2x.cz (unknown [141.76.49.12]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id C040B15C028 for ; Wed, 24 Aug 2011 11:55:33 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.76) (envelope-from ) id 1QwABJ-0005y6-CM for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 11:55:33 +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 all, I wanted to try the experimental Mediawiki exporter and it fails to export documents with dot code blocks (as the one provided below). I tried to fix that myself but my elisp and org-babel knowledge is not sufficient for that. I used org-mode 7.7. The error was: "file-name-extension: Wrong type argument: stringp, nil". I tracked it down and it seems that it is caused by (nth 2 info) being nil in org-babel-exp-do-export, whereas in org-babel-exp-src-block, which calls org-babel-exp-do-export, the information about :file and :cmdline is still present. Another problem is that the Mediawiki export doesn't obey the org-confirm-babel-evaluate variable - it always wants to confirm the evaluation of code block. I have also seen http://thread.gmane.org/gmane.emacs.orgmode/40746/focus=40749 but this seems to solve different thing. Does anybody have a suggestion how to solve this. Additionally, I'm thinking about writing org exporter to Doxygen syntax. I wanted to based it on Mediawiki exporter but I'm not sure whether it is a good idea since the Mediawiki exporter doesn't seem to be maintained. Again, any suggestions are welcomed. And finally, the example that fails to export to mediawiki: --8<---------------cut here---------------start------------->8--- #+TITLE: Test #+begin_src dot :file generic_proto.png :cmdline -Tpng digraph com { in -> out; in -> call } #+end_src # Local Variables: # org-confirm-babel-evaluate: nil # End: --8<---------------cut here---------------end--------------->8--- Thanks, -Michal