home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / lucidem / help / 824 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  1.4 KB

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