[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Post-22.1 development?
From: |
Andreas Schwab |
Subject: |
Re: Post-22.1 development? |
Date: |
Thu, 07 Jun 2007 19:05:40 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) |
Michael Albinus <address@hidden> writes:
> address@hidden (Johan Bockgård) writes:
>
>> The change was unnecessarily drastic.
>>
>> However, there is no problem with using the `cl' package at
>> compile time, with `(eval-when-compile (require 'cl))'. That's
>> sufficient for using the macros in the `cl' package, because the
>> compiler expands them before generating the byte-code.
>>
>> -- (info "(elisp)Coding Conventions")
>
> But this would mean that one cannot use such a package if it is NOT
> byte compiled.
Why? The require is still evaluated when interpreted.
eval-when-compile is a Lisp macro in `byte-run.el'.
(eval-when-compile &rest BODY)
Like `progn', but evaluates the body at compile time if you're compiling.
Thus, the result of the body appears to the compiler as a quoted constant.
In interpreted code, this is entirely equivalent to `progn'.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Post-22.1 development?, (continued)
- Re: Post-22.1 development?, David Kastrup, 2007/06/04
- Re: Post-22.1 development?, Jason Rumney, 2007/06/04
- Re: Post-22.1 development?, Richard Stallman, 2007/06/05
- Re: Post-22.1 development?, Chong Yidong, 2007/06/05
- Re: Post-22.1 development?, Nick Roberts, 2007/06/05
- Re: Post-22.1 development?, Richard Stallman, 2007/06/05
- Re: Post-22.1 development?, Michael Albinus, 2007/06/06
- Re: Post-22.1 development?, Johan Bockgård, 2007/06/06
- Re: Post-22.1 development?, David Kastrup, 2007/06/06
- Re: Post-22.1 development?, Michael Albinus, 2007/06/07
- Re: Post-22.1 development?,
Andreas Schwab <=
- Re: Post-22.1 development?, Michael Albinus, 2007/06/07
- Re: Post-22.1 development?, Stefan Monnier, 2007/06/08
- Re: Post-22.1 development?, David House, 2007/06/09
- Re: Post-22.1 development?, Richard Stallman, 2007/06/06
- Re: Post-22.1 development?, Michael Albinus, 2007/06/07
- Re: Post-22.1 development?, Vinicius Jose Latorre, 2007/06/08
Re: Post-22.1 development?, Dan Nicolaescu, 2007/06/10