* Different Warnings when compiling each Elisp with a single Emacs process?
@ 2012-08-13 8:03 Bastien
2012-08-13 9:01 ` Andreas Schwab
2012-08-13 11:53 ` Achim Gratz
0 siblings, 2 replies; 5+ messages in thread
From: Bastien @ 2012-08-13 8:03 UTC (permalink / raw)
To: emacs-devel
Hi,
I'm trying to understand what compilation warnings are shown when
several files are compiled within the same Emacs process and when
the same set of files is compiled with one Emacs process per file.
Let's assume this is with emacs -batch -Q.
My assumption is that compiling a file does not load it. So I
don't really understand why there are different warnings.
Thanks for any hint!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Different Warnings when compiling each Elisp with a single Emacs process?
2012-08-13 8:03 Different Warnings when compiling each Elisp with a single Emacs process? Bastien
@ 2012-08-13 9:01 ` Andreas Schwab
2012-08-13 13:46 ` Bastien
2012-08-13 11:53 ` Achim Gratz
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2012-08-13 9:01 UTC (permalink / raw)
To: Bastien; +Cc: emacs-devel
Bastien <bzg@gnu.org> writes:
> My assumption is that compiling a file does not load it.
But it loads any prerequisites, see byte-compile-file-form-require.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Different Warnings when compiling each Elisp with a single Emacs process?
2012-08-13 8:03 Different Warnings when compiling each Elisp with a single Emacs process? Bastien
2012-08-13 9:01 ` Andreas Schwab
@ 2012-08-13 11:53 ` Achim Gratz
2012-08-13 13:46 ` Bastien
1 sibling, 1 reply; 5+ messages in thread
From: Achim Gratz @ 2012-08-13 11:53 UTC (permalink / raw)
To: emacs-devel
Bastien <bzg <at> gnu.org> writes:
> My assumption is that compiling a file does not load it. So I
> don't really understand why there are different warnings.
For starters, each (require '...) form acts like eval-and-compile and each macro
expands before that expansion is compiled. Then there all the other forms that
will explicitly eval also/only during compilation.
http://www.gnu.org/software/emacs/manual/html_node/elisp/Eval-During-Compile.html
Regards,
Achim.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Different Warnings when compiling each Elisp with a single Emacs process?
2012-08-13 9:01 ` Andreas Schwab
@ 2012-08-13 13:46 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2012-08-13 13:46 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
Andreas Schwab <schwab@linux-m68k.org> writes:
> Bastien <bzg@gnu.org> writes:
>
>> My assumption is that compiling a file does not load it.
>
> But it loads any prerequisites, see byte-compile-file-form-require.
Thanks for the pointer!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Different Warnings when compiling each Elisp with a single Emacs process?
2012-08-13 11:53 ` Achim Gratz
@ 2012-08-13 13:46 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2012-08-13 13:46 UTC (permalink / raw)
To: Achim Gratz; +Cc: emacs-devel
Achim Gratz <Stromeko@NexGo.DE> writes:
> Bastien <bzg <at> gnu.org> writes:
>> My assumption is that compiling a file does not load it. So I
>> don't really understand why there are different warnings.
>
> For starters, each (require '...) form acts like eval-and-compile and each macro
> expands before that expansion is compiled. Then there all the other forms that
> will explicitly eval also/only during compilation.
>
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Eval-During-Compile.html
Got it, thanks!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-13 13:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 8:03 Different Warnings when compiling each Elisp with a single Emacs process? Bastien
2012-08-13 9:01 ` Andreas Schwab
2012-08-13 13:46 ` Bastien
2012-08-13 11:53 ` Achim Gratz
2012-08-13 13:46 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).