From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [ox, patch] external compilation Date: Sat, 21 Feb 2015 14:23:04 +0100 Message-ID: <87pp938klj.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> <87bnkna455.fsf@gmx.us> <87oaon1ku0.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]:57773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPA1Y-0005YT-LV for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 08:23:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPA1V-0001JU-9B for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 08:23:12 -0500 Received: from mout.gmx.net ([212.227.15.19]:58445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPA1U-0001JN-Vh for emacs-orgmode@gnu.org; Sat, 21 Feb 2015 08:23:09 -0500 Received: from W530 ([46.166.186.238]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LcBvB-1XiQoB2oSb-00jbfF for ; Sat, 21 Feb 2015 14:23:06 +0100 In-Reply-To: <87oaon1ku0.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 21 Feb 2015 13:59:51 +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 Nicolas Goaziou writes: > Rasmus writes: > >> 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]. > > The solution I gave you doesn't prompt anything. You are right. So yours (slightly) better. >> 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 fr= om >> the above, I won't push further. > > I don't see the point of adding a feature that will _only_ benefit to > other editors than Emacs. It also makes it easier for Emacs users. I compile org with a Makefile sometimes. > Also, I have trouble understanding why you would need to switch init > file per document, instead of using, e.g., #+SETUPFILE. The document is shared between a couple of people. My init.el is opinionated and > 3000 lines and only assumes Emacs-git. It would be a distraction to circulate it for this purpose. By having a separate init file I ensure stability and coherency, hopefully also across time. For the same reason, I copy bib entries from my "global" lit.bib to a project lit.bib. Why not #+SETUP: 'Cause I also define filters, links, org-latex-package-alist etc. I even use a separate "org-cite" library. > To solve a portability issue, which is a related problem, then you don't > want to change init file for a give Org document, but instead attach it > to fixed set-up.=20 Even better. And more ambitious! > We could work it out by defining a new file format ".borg" (for Bundled > Org) containing both the init file and the document, in a compressed > directory (created, e.g., with `org-assimilate'). Hmm, I guess that would be nice. Do you have like a tar in mind? Would .borg be tar since it contains both "libraries" and a document? Unless we can somehow sandbox execution I guess it holds the same security issues as a #+INIT? BTW: If it can hold libraries, this could solve another pity: manually copying ox-koma-letter.el to vanilla Emacs setups. =E2=80=94Rasmus --=20 Enough with the bla bla!