From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [ox, patch] external compilation Date: Sat, 21 Feb 2015 12:35:34 +0100 Message-ID: <87bnkna455.fsf@gmx.us> References: <87wq3e5e23.fsf@gmx.us> <873860vl9l.fsf@gmx.us> <878ufs36oh.fsf@nicolasgoaziou.fr> <878ufssg8r.fsf@gmx.us> <874mqg32s4.fsf@nicolasgoaziou.fr> <87r3tkqw94.fsf@gmx.us> <87wq3c1k6d.fsf@nicolasgoaziou.fr> <87lhjsqspq.fsf@gmx.us> <87sidz1ua8.fsf@nicolasgoaziou.fr> 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]:35195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YP8LZ-0004Ow-Ea for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 06:35:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YP8LU-0005TU-BC for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 06:35:45 -0500 Received: from mout.gmx.net ([212.227.17.22]:54246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YP8LU-0005RZ-1g for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 06:35:40 -0500 Received: from W530 ([46.166.186.238]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LkCU2-1XoPsh281y-00c7aI for ; Sat, 21 Feb 2015 12:35:38 +0100 In-Reply-To: <87sidz1ua8.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 21 Feb 2015 10:35:43 +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: emacs-orgmode@gnu.org Hi, >> That it hardcodes conf.el. So it doesn't toexport1.org which depends on >> config/conf.el. I want to specify the dependency in in toexport.org >> explicitly so that >> >> emacs --batch -Q --visit toexport.org -f org-latex-export-to-pdf >> >> generally works with custom-config files. Again, think about supporting= a >> Org from a editor where you just have "one button". > > Then > > # Local Variables: > # org-export-async-init-file: "config/config.el" > # End: > > at the end of your file and > > emacs --batch -Q --eval=3D"(setq enable-local-variables :all)" --visit > toexport.org --eval=3D"(org-export-latex-to-pdf t)" That's more or less what I do cf. the first post, namely # Local Variables: # eval: (unless noninteractive (load-file "org-conf.el")) # End: [Which gives me the annoying prompt]. I call Emacsfor like this. For some reason I had to explicitly require 'ox, maybe just me doing a mistake. emacs --batch --no-init-file --eval=3D"(progn (setq enable-local-eval t) (r= equire 'ox-latex))" $1 --funcall=3Dorg-latex-export-to-pdf The whole point is that I would like to cut it down to: emacs --batch --no-init-file $1 --funcall=3Dorg-latex-export-to-pdf With the dependency specified in an #+INIT or #+PREAMBLE or #+LISP-SETUP or whatever. For the sake of making ox export for arbitrary $1 " as easy as latex". (Even better would be a dedicated binary: "ox --latex $1"). I don't know if it's a security issue, and if you don't see a benefit from the above, I won't push further. =E2=80=94Rasmus --=20 Slowly unravels in a ball of yarn and the devil collects it