Path: news.cs.au.dk!news.net.uni-c.dk!uninett.no!news.netg.se!news-peer-europe.sprintlink.net!news.sprintlink.net!Sprint!cam-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: 03 Mar 1999 17:15:15 -0800 Organization: Sun Microsystems Inc., Mountain View, CA Lines: 57 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:11860 "Michael M. Tung" writes: > Erik Ernst wrote: > > > datpete@mjolner.dk writes: > > > > > Regarding the beta-font-lock.el problem: [added make-regexp.el] > > > > That would be fine for Emacs-19.xx, but [..] > > Thanks for all the help! The Elisp file make-regexp compiles fine. > However both versions > of beta-font-lock still gives compilation errors under XEmacs 20.4. > > The 1996 as well as the 1999 version of Erik's beta-font-lock produces: > > Compiling file /usr/local/lib/xemacs-20.4/lisp/beta/beta-font-lock.el at > Wed Mar 3 23:30:34 1999 > ** assignment to free variable beta-font-lock-decl-regexp > ** reference to free variable beta-font-lock-decl-regexp > !! Symbol's value as variable is void ((beta-font-lock-decl-regexp)) Ah, in that case the XEmacs compiler is quite touchy .. the problem is that line 147 in beta-font-lock.el says (setq beta-font-lock-decl-regexp [..] where is should have said (defconst beta-font-lock-decl-regexp [..] like all the other expressions around that point. With `setq' the assumption is that an existing variable is given a new value, whereas `defconst' introduces a new variable and gives is a value. GNU Emacs doesn't even warn about this (style) problem, but it seems that XEmacs refuses to even generate the .elc. Anyway, I fixed the problem (the diff is ---------------------------------------------------------------------- 147c147 < (setq beta-font-lock-decl-regexp --- > (defconst beta-font-lock-decl-regexp ---------------------------------------------------------------------- ) and uploaded the changed file to ftp://ftp.cs.au.dk/pub/empl/eernst/beta/beta-font-lock.el again. I hope that is works now. Thanks for the input! cheers, -- Erik Ernst ernst@nobox.Eng.Sun.COM Sun Microsystems Laboratories, Inc., MTV 29, Mountain View, CA 94043