From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Exporting a given file (not buffer) Date: Fri, 13 Feb 2015 23:13:31 +0100 Message-ID: <87wq3lwjck.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMOUZ-0003cX-GT for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 17:13:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMOUU-0005iZ-CY for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 17:13:43 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:60453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMOUU-0005i6-6R for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 17:13:38 -0500 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 216FE5207A for ; Fri, 13 Feb 2015 23:13:36 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r6DPROtpshQd for ; Fri, 13 Feb 2015 23:13:36 +0100 (CET) Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id DC43E5206D for ; Fri, 13 Feb 2015 23:13:35 +0100 (CET) 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: Org-Mode mailing list Hello fellow Orgers, I need a function, which =E2=80=93 given an org file's name =E2=80=93 ope= ns it silently, exports to a file, and closes. I can write it myself, but maybe such a function already exists? It seems that `org-export-to-file' exports the current buffer, so I could make a new buffer, `insert-file-contents' the given file to it, turn on `org-mode', do my export and close the buffer (probably using `with-temp-buffer' in the first place) =E2=80=93 but is it really necessa= ry to code it, or is it ready somewhere in Org? TIA, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University