emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading and evaluating the buffer are not the same thing.


From: Richard Stallman
Subject: Re: loading and evaluating the buffer are not the same thing.
Date: Wed, 18 May 2005 01:20:43 -0400

    (eval-when-compile (require 'cl))

    If I do load-library <RET> gud <RET>

    then gud is loaded and cl is not, as you would expect.

That is because you're loading the compiled file.

    However, if I put gud.el in a buffer and do eval-buffer, cl *is* loaded.
    Even if I just evaluate the above expression cl is loaded.

That is because you are loading the source.
It would do the same if you load gud.el.

Does the manual's explanation eval-when-compile not make this clear?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]