Path: news.cs.au.dk!news.net.uni-c.dk!howland.erols.net!cpk-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 11:06:36 -0800 Organization: Sun Microsystems Inc., Mountain View, CA Lines: 61 Message-ID: References: <19990303123948.25049.qmail@noatun.mjolner.dk> NNTP-Posting-Host: nobox.eng.sun.com X-Newsreader: Gnus v5.5/Emacs 20.3 Xref: news.cs.au.dk comp.lang.beta:11858 datpete@mjolner.dk writes: > Regarding the beta-font-lock.el problem: > I think the real problem was, that the make-regexp.el file was > missing from ftp://ftp.cs.au.dk/beta/emacs. > > I have added the file. Please try if this helps. That would be fine for Emacs-19.xx, but they changed the implementation of font-lock somewhere such that Emacs-20.3 (and perhaps earlier Emacs-20.xxen) comes with a font-lock that complains about (font-lock-make-faces t) (setq font-lock-face-attributes (append font-lock-face-attributes beta-font-lock-face-defs)) and possibly other things (I don't remember exactly). These things are obsolete, or the same task is done automatically in the new version. A more serious problem is a difference in design. The old font-lock used to support per-language faces, so I originally defined things like beta-font-lock-fragment-face which was used to select the coloring of fragment syntax (INCLUDE, SLOT, etc.). But the newer font-lock requires implementers of support for each language to use _standard_ faces (like font-lock-variable-name-face font-lock-keyword-face and so on). So the special BETA concepts like fragments have no natural face any more. The idea is that a user can define font-lock-keyword-face to mean `blinking, red and yellow stripes, shadow, 4.2pt, Gothic' or similar, and then keywords in _all_ languages will look like that. So the newer version (that I gave a pointer to yesterday, and which uses only standard faces and avoids the obsolete things) would most likely be needed in order to make it work with Emacs-20.??. Another thing: as far as I know, `make-regexp.el' is an obsolete module whose responsibilities have been taken over by `regexp-opt.el' (which is available in newer distributions of Emacs). The newer version of `beta-font-lock.el' uses `regexp-opt.el'. NB: Yes, I should have told somebody a long time ago to update the old version to the new one, and perhaps keep the old one around under the name `Emacs-19.xx-beta-font-lock.el'. Complaining about it was a very constructive and valuable action! ;-) regards, -- Erik Ernst ernst@nobox.Eng.Sun.COM Sun Microsystems Laboratories, Inc., MTV 29, Mountain View, CA 94043