home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!shamash!bjdunlop
- From: bjdunlop@shamash.cdc.com (Bruce Dunlop)
- Newsgroups: alt.lucid-emacs.help
- Subject: Re: Highlighting problems
- Message-ID: <50856@shamash.cdc.com>
- Date: 26 Dec 92 21:32:24 GMT
- References: <1992Dec26.001926.26263@nntpd.lkg.dec.com>
- Organization: Control Data Corporation, Arden Hills, MN
- Lines: 25
-
- In article <1992Dec26.001926.26263@nntpd.lkg.dec.com> tatlow@athena.lmo.dec.com writes:
- >
- >lhilit doesn't work correctly. At the very least, it doesn't work
- >... stuff deleted
- >and hit C-c C-h -- the line turns red (correct). I then modify the
- >line so it looks like this:
- >
- > ;; comment (defun
- >
- >and hit C-c C-h -- now ";; comment" is in red and "(defun" is in blue.
-
- There is nothing wrong with lhilit - just the regular expression defining
- (defun. From the lisp I have looked at, I believe that defun is usually on
- a line by itself. So you need a regular exp that says this. Try something
- like:
-
- (^ *(defun, nil, hilit2)
-
- in the appropriate lhilit statement. The ^ means 'beginning of line'; the
- <space>* means to look for any number of blank spaces; then look for (defun.
-
- ********************************************************************
- * Jim Dahlberg Computing Devices International *
- * bjdunlop@shamash.cdc.com A Ceridian Company *
- ********************************************************************
-