[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: byte-compile-file not reentrant?
From: |
Daniel Colascione |
Subject: |
Re: byte-compile-file not reentrant? |
Date: |
Tue, 29 Dec 2009 22:17:51 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/29/09 9:58 PM, Lennart Borgman wrote:
> A buffer created with (get-buffer-create " *Compiler Input*") makes
> byte-compile-file not reentrant if I understand it correctly. (I did
> not look very carefully.)
>
> I do not understand the meaning of this. Should the old buffer be
> reused in some way?
>
> There is a similar call in byte-compile-from-buffer.
>
> Could perhaps these calls be changed to generate new buffer names?
> Would that make byte compiling reentrant or are there other
> restrictions that makes this impossible?
I looked into this a bit when I wrote byte-code-cache.el. The buffer
name is just the first obstacle to a re-entrant byte compiler: there are
various variable bindings that would be hard to catch and sort out.
TBH, it'd probably be easier to just re-execute emacs itself, in batch
mode, as a subprocess.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
iEYEARECAAYFAks6xl8ACgkQ17c2LVA10VuwBQCgn7Jwf0xL/PjKOPmM+T7ffdYu
JV4AoLEaSRnOKSIb7c4kilEEuP4AvxJ6
=EIDE
-----END PGP SIGNATURE-----