From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aidan Gauland Subject: Re: parsing formatted text Date: Fri, 29 Oct 2010 19:59:33 +0000 (UTC) Message-ID: References: <87iq0lv2bb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50473 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBv75-0001Ar-RL for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 15:59:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBv74-0000eK-OO for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 15:59:47 -0400 Received: from lo.gmane.org ([80.91.229.12]:39621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBv74-0000e3-GQ for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 15:59:46 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PBv71-0007oQ-LU for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 21:59:43 +0200 Received: from 114-134-7-235.rurallink.co.nz ([114.134.7.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Oct 2010 21:59:43 +0200 Received: from aidalgol by 114-134-7-235.rurallink.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Oct 2010 21:59:43 +0200 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 Eric Schulte gmail.com> writes: > You could pass the text through the `org-export-string' function to > generate a string of HTML from a string of Org markup. > > e.g. > > (org-export-string "plain plain *bold* plain" "html") > > returns the following string > > "

plain plain bold plain

" Actually, now that I've tried that, I'm getting prompted for a filename when I evaluate that. Evaluating (org-export-string "plain plain *bold* plain" "html") prompts me (in the minibuffer) with... File to save in: /tmp/ I can't see any obvious s-exp in the definition of org-export-string that would be bringing up the prompt. Aside from the prompt, this function is exactly what I want. Any idea how I could get rid of the prompt so I can run the function non-interactively? --Aidan