🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #188886

EVAL-WHEN in emacs

#188886
From: Tim Bradshaw
Date: Sat, 08 Jun 1991 18:19
20 lines
1400 bytes
I've just spent ages hunting down a problem which turned out to be
because I'd compiled my emacs init file without GNUS loaded, hence
macros were not getting expanded (the reason it took so long is that
I've also just installed 18.57 so I assumed it was that!).

What would be really useful to me would be some kind of CL-like
EVAL-WHEN for Emacs, so I can say:

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

in my emacs init.  Has anyone implemented such a thing?  It shouldn't
be terribly hard but it will probably need the byte-compiler to be
modified a little.

Also: I've seen at least 2 new byte-compilers discussed recently:
which is the best (or are either of them better than the original?)?

--tim
Tim Bradshaw, Last of the Lisp dinosaurs: tim@cstr.ed.ac.uk
Internet: tim%ed.cstr@nsfnet-relay.ac.uk UUCP: ...!uunet!mcvax!ukc!cstr!tim  
Technical Details
Message-ID: <TIM.91Jun8191942@kahlo.cstr.ed.ac.uk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!ukc!edcastle!helium!cstr!tim

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,7d5674bc01ffe4e7,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-06-08 11:34:19 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!ukc!edcastle!helium!cstr!tim
From: tim@cstr.ed.ac.uk (Tim Bradshaw)
Newsgroups: gnu.emacs.help
Subject: EVAL-WHEN in emacs
Message-ID: <TIM.91Jun8191942@kahlo.cstr.ed.ac.uk>
Date: 8 Jun 91 18:19:42 GMT
Sender: news@aifh.ed.ac.uk (Network News Administrator)
Distribution: gnu
Organization: CSTR, University of Edinburgh
Lines: 20