From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Slight change to asynchronous export Date: Mon, 28 Oct 2013 10:04:18 +0100 Message-ID: <87y55dahrh.fsf@gmail.com> References: <87fvrnawes.fsf@gmail.com> <86d2mp6aw9.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaikR-0001C9-E9 for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 05:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaikJ-000693-BY for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 05:04:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:47694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaikJ-00068r-3x for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 05:04:23 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VaikG-00076X-QT for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 10:04:20 +0100 In-Reply-To: <86d2mp6aw9.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 28 Oct 2013 09:46:14 +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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > Nicolas Goaziou wrote: >> At the moment, by default, external emacs process for asynchronous >> export is called with: >> >> /path/to/emacs -Q --batch -l org-export-async-init-file ... export stuff... >> >> 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". >> >> I suggest allowing a nil (default) value for >> `org-export-async-init-file'. In that case, the command will become: >> >> /path/to/emacs --batch ... export stuff... >> >> If it is a file, it will be the same as before. >> >> WDYT? > > IIUC, the default `user-init-file' still gets read because you drop the `-Q' > option. And you allow adding a supplementary configuration file for the export > process. With the proposed change, you get `user-init-file' and all site-lisp/ family, which is equivalent to a regular Emacs call. Actually, by default, you only get `user-init-file'. > Right? Correct. > The only drawback would be for people having a long .emacs config file (which > takes a long time to load): they would experience a longer running time for the > async export, but it's async, so they wouldn't mind much. If you specify a specific config file, which is what `org-export-async-init-file' suggests, the load time will be decreased. > BTW, is there no possibility of doing the same with emacsclient (but with no > visible buffer)? That'd drop the startup time of Emacs. But, once again, > that's not a problem per se, as it's async. It's for my own > understanding. No, that's not possible. Emacsclient runs in the same process as the server: this is not asynchronous anymore. To convince yourself, try spawning two clients from the same server, run (sleep-for 30) in one of them and switch to the other one. Regards, -- Nicolas Goaziou