From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug: "org-export-preprocess-string: Wrong number of arguments" when doing "org-export-as-html" Date: Fri, 01 Mar 2013 12:12:49 +0100 Message-ID: <87fw0fnzke.fsf@gmail.com> References: <2013-02-27T15-12-01@devnull.Karl-Voit.at> <2013-03-01T11-12-10@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBNtg-0004xr-3e for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 06:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBNte-00077e-Rj for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 06:13:04 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:54091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBNte-00077S-LP for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 06:13:02 -0500 Received: by mail-wi0-f180.google.com with SMTP id hi8so3303141wib.7 for ; Fri, 01 Mar 2013 03:13:02 -0800 (PST) In-Reply-To: <2013-03-01T11-12-10@devnull.Karl-Voit.at> (Karl Voit's message of "Fri, 1 Mar 2013 11:18:08 +0100") 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: news1142@Karl-Voit.at Cc: emacs-orgmode@gnu.org Hello, Karl Voit writes: > * Achim Gratz wrote: >> Karl Voit Karl-Voit.at> writes: >>> #+BEGIN_SRC elisp >>> (org-export-as-html 3 nil nil "htmlized-output" nil nil) >>> #+END_SRC >> >>> Am I doing something wrong or is this a bug? >> >> You are trying to use the old exporter and pick up code from an earlier version >> of Org. > > Oh, am I? :-O I was not aware of this. Obviously, I am no insider of > emacs-lisp nor the exporting mechanism of Org. > > What is the equivalent elisp expression for using the new exporter? `org-html-export-to-html' (output to file) and `org-html-export-as-html' (output to temporary buffer). For batch processing, you can also use `org-export-as', in conjunction with `html' backend, which will output a string. There's also `org-export-string-as', which will do the same as `org-export-as' but will work from an input string instead of the current buffer. Regards, -- Nicolas Goaziou