emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Sebastien Vauban
	<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: [RFC] Slight change to asynchronous export
Date: Mon, 28 Oct 2013 10:04:18 +0100	[thread overview]
Message-ID: <87y55dahrh.fsf@gmail.com> (raw)
In-Reply-To: <86d2mp6aw9.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 28 Oct 2013 09:46:14 +0100")



Hello,

"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
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

  reply	other threads:[~2013-10-28  9:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-27  9:35 [RFC] Slight change to asynchronous export Nicolas Goaziou
2013-10-28  8:46 ` Sebastien Vauban
2013-10-28  9:04   ` Nicolas Goaziou [this message]
2013-10-29 10:43     ` Rasmus
2013-10-29 13:27       ` Nicolas Goaziou
2013-10-28 15:04 ` Carsten Dominik
2013-10-28 15:07 ` Aaron Ecay
2013-10-28 17:18   ` Nicolas Goaziou
2013-10-28 17:22     ` Aaron Ecay
2013-10-29 10:50   ` Rasmus
2013-10-28 17:39 ` Achim Gratz
2013-10-29  8:35   ` Nicolas Goaziou
2013-10-29 17:42     ` Rick Frankel
2013-10-30  8:27       ` Sebastien Vauban
2013-10-30 10:00       ` Nicolas Goaziou
2013-10-30 13:50         ` Rick Frankel
2013-10-31 10:23           ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y55dahrh.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).