Path: utzoo!utgpu!watmath!uunet!samsung!brutus.cs.uiuc.edu!rpi!netserv2!deven From: deven@rpi.edu (Deven T. Corzine) Newsgroups: gnu.emacs.gnus Subject: Re: Problem with byte-compile macro Message-ID: Date: 26 Nov 89 17:24:24 GMT References: Distribution: gnu Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 32 In-Reply-To: ron@clarity.Princeton.EDU's message of 23 Nov 89 21:26:40 GMT On 23 Nov 89 21:26:40 GMT, ron@clarity.Princeton.EDU (Ronald Beekelaar) said: ron> As soon as I load a byte-compiled version of this function, it ron> doesn't work anymore!!! It gives me the message: ron> Invalid function: (macro lambda etc....) ron> How come it worked uncompiled and doesn't compiled and what can I ron> do about it so it will work compiled? I have run across this before. Actually, it is Emacs-related, not specific to gnus. Apparently it is a problem where the byte-compiler will try to compile a macro as a function. (hence the "lambda") The solution appears to be to load the uncompiled Emacs-Lisp library (with GNUS, you should probably load ALL parts of GNUS...) _before_ attempting to byte-compile the library. After loading it, then byte-compile the library. Then the byte-compiler appears to get it straight, and the compiled code works correctly. Give it a try, anyway. [(ESC ESC) Eval: (load "gnus") and then Eval: (byte-compile-file "gnus.el"), basically.] Deven -- Deven T. Corzine Internet: deven@rpi.edu, shadow@pawl.rpi.edu Snail: 2151 12th St. Apt. 4, Troy, NY 12180 Phone: (518) 274-0327 Bitnet: deven@rpitsmts, userfxb6@rpitsmts UUCP: uunet!rpi!deven Simple things should be simple and complex things should be possible.