From: <kla...@sd...> - 2005-08-10 09:17:09
|
Klaus, thanks for your analysis! Sounds senseful... I think, it's time for a question to the Emacs-developers why defcustom = init-code is not byte-compiled.... Thansk and ciao, Klaus too ;-) -----Urspr=FCngliche Nachricht----- Von: ecb...@li... im Auftrag von Klaus Zeitler Gesendet: Mi 10.08.2005 11:01 An: ecb...@li... Betreff: Re: AW: AW: AW: [ECB-list] Symbol's function definition is = void: case =20 >>>>> "Klaus" =3D=3D klaus berndl <kla...@sd...> writes: Klaus>=20 Klaus> ecb-upgrade.el contains a defcustom: Klaus>=20 Klaus> (defcustom ecb-wget-setup (cond (...) Klaus> (case system-type Klaus> (cygwin32... Klaus> (windows-nt ... Klaus> (otherwise ...)))) Klaus>=20 Klaus> In front of this (exactly: at the top of the file) there is: Klaus>=20 Klaus> (eval-when-compile Klaus> (require 'cl)) Klaus>=20 Klaus> So this should load #cl when byte-compiling and so resolving = the Klaus> `case'- macro?! Why then this error occurs? My guess is that cl gets loaded when you compile ecb-upgrade, but the = code in defcustom somehow does not get compiled. If you load the elc file in your editor (i.e. C-x C-f ecb-upgrade.elc), = you'll set that the defcustom statement for ecb-wget-setup still contains=20 "(case ...". But if you replace the defcustom with defvar, the case will be replaced by some byte code. Klaus --=20 ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kze...@lu... | ------------------------------------------ --- The natural progress of things is for liberty to yield and governments to gain ground. -- Thomas Jefferson ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ Ecb-list mailing list Ecb...@li... https://lists.sourceforge.net/lists/listinfo/ecb-list |