From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Emacs lisp code export difference between `org-export-region-as-html' and `org-export-as-html' Date: Tue, 25 Sep 2012 03:24:52 +0200 Message-ID: <876272q4gr.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGJtM-000874-3G for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 21:24:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGJtL-0003C0-8n for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 21:24:52 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:39663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGJtL-0003Bp-2s for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 21:24:51 -0400 Received: by wgbdt14 with SMTP id dt14so4053340wgb.30 for ; Mon, 24 Sep 2012 18:24:50 -0700 (PDT) In-Reply-To: (thorne's message of "Mon, 24 Sep 2012 15:53:00 -0600") 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: thorne Cc: emacs-orgmode@gnu.org thorne writes: > (defun render-one (file) > (with-temp-buffer > (insert-file file) > (org-export-as-html nil nil nil 'string t))) Try (defun render-one (file) (with-temp-buffer (insert-file file) (org-mode) (org-export-as-html nil nil nil 'string t))) (org-mode) is important here. -- Bastien