From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: [RFC] Slight change to asynchronous export Date: Mon, 28 Oct 2013 11:07:22 -0400 Message-ID: <87li1d1ljp.fsf@gmail.com> References: <87fvrnawes.fsf@gmail.com> 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]:50025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaoPl-00057U-UB for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 11:07:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaoPd-0004jF-5W for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 11:07:33 -0400 Received: from mail-qe0-x235.google.com ([2607:f8b0:400d:c02::235]:52294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaoPd-0004iv-0p for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 11:07:25 -0400 Received: by mail-qe0-f53.google.com with SMTP id cy11so4055919qeb.26 for ; Mon, 28 Oct 2013 08:07:24 -0700 (PDT) In-Reply-To: <87fvrnawes.fsf@gmail.com> 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: Nicolas Goaziou , Org Mode List 2013ko urriak 27an, Nicolas Goaziou-ek idatzi zuen: >=20 > Hello, >=20 > At the moment, by default, external emacs process for asynchronous > export is called with: >=20 > /path/to/emacs -Q --batch -l org-export-async-init-file ... export stuf= f... >=20 > where `org-export-async-init-file' defaults to `user-init-file'. It is, > by default, not the same as calling "emacs", because of the "-Q". >=20 > I suggest allowing a nil (default) value for > `org-export-async-init-file'. In that case, the command will become: >=20 > /path/to/emacs --batch ... export stuff... >=20 > If it is a file, it will be the same as before. >=20 > WDYT? Hi Nicolas, My init.el file does (server-start), and also opens all the buffers (usually 100+) I had opened the last time I quit emacs (by using emacs=E2= =80=99s included desktop library). The buffers in turn spawn child processes (aspell, some python IDE-ish autocomplete server, ...) I think these things are relatively common in init.el files, but not things that should be done by the async export process. Other examples might include gnus/other email/rss fetching, or automatic update of installed elpa packages. Of course this would not be an issue for me in particular, but I think it would be very easy for a user to get unwanted results. I guess you want to make it so that users don=E2=80=99t have to configure a= sync export (beyond just flipping it on) in order to use it. But I don=E2=80=99t know if there is a sensible way to parcel out benign bits of initialization code from dangerous ones without user intervention. (=E2=80=9CDangerous=E2=80=9D only in the sense of =E2=80=9Cshould not be ru= n by the export process=E2=80=9D.) An interesting approach might be to extend the approach of org-export--generate-copy-script in order to generate an init file containing all relevant variable settings that can be read by the async exporter, but given that export hooks can call into arbitrary user-defined elisp, I don=E2=80=99t know if this could get off the ground. --=20 Aaron Ecay