Path: news.cs.au.dk!news.net.uni-c.dk!uninett.no!news.maxwell.syr.edu!newsfeed.berkeley.edu!su-news-hub1.bbnplanet.com!denver-news-feed1.bbnplanet.com!news.gtei.net!namche.sun.com!ebaynews1.Ebay.Sun.COM!engnews2.Eng.Sun.COM!not-for-mail From: Erik Ernst Newsgroups: comp.lang.beta Subject: Re: beta mode for emacs Date: 05 Mar 1999 16:23:41 -0800 Organization: Sun Microsystems Inc., Mountain View, CA Lines: 37 Message-ID: References: <19990303123948.25049.qmail@noatun.mjolner.dk> <36DDBA7E.2D596B1@uni-mainz.de> NNTP-Posting-Host: nobox.eng.sun.com X-Newsreader: Gnus v5.5/Emacs 20.3 Xref: news.cs.au.dk comp.lang.beta:11865 Sorry about the excessive use of bandwidth on this topic but I think the matter should be settled now .. > It seems to be the lines looking like: > > (eval-when-compile > (concat beta-font-lock-decl-regexp ...)) > > that causes the trouble. I have never got the eval-when-compile stuff > to work as I hoped either :-) Of course! (I couldn't reproduce the problem yesterday, in Emacs or XEmacs). The only case where the error occurs is when it is compiled by an [X]Emacs which has _not_ yet _loaded_ beta-font-lock (from .el or .elc, that makes no difference). In this case the `eval-when-compile' expressions try to evaluate `beta-font-lock-decl-regexp' (e.g. the 4 expressions following the infamous line 147 defconst), and at that point this variable does not have a value. I added an `(eval-when-compile ..)' around the line 147 expression, and that seems to do the trick. The new and improved version---now in colors :)---is available at the usual spot: Hope it works this time (otherwise please notify me by mail ;-) cheers, -- Erik Ernst ernst@nobox.Eng.Sun.COM Sun Microsystems Laboratories, Inc., MTV 29, Mountain View, CA 94043