home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / lucidem / help / 823 < prev    next >
Encoding:
Text File  |  1992-12-25  |  1.8 KB  |  56 lines

  1. Path: sparky!uunet!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!dash.lmo.dec.com!tatlow
  2. From: tatlow@dash.lmo.dec.com (Tom Tatlow)
  3. Newsgroups: alt.lucid-emacs.help
  4. Subject: Highlighting problems
  5. Message-ID: <1992Dec26.001926.26263@nntpd.lkg.dec.com>
  6. Date: 26 Dec 92 00:19:26 GMT
  7. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  8. Reply-To: tatlow@athena.lmo.dec.com
  9. Organization: Digital Equipment Corporation, AI Technology Center
  10. Lines: 44
  11.  
  12.  
  13. lhilit doesn't work correctly.  At the very least, it doesn't work
  14. consistently and certainly not as I wished it did.
  15.  
  16. Example:
  17.  
  18. I load-library lhilit and then go into *scratch*, and go into
  19. emacs-lisp mode.  I type:
  20.  
  21.     ;; comment
  22.  
  23. and hit C-c C-h -- the line turns red (correct).  I then modify the
  24. line so it looks like this:
  25.  
  26.     ;; comment (defun
  27.  
  28. and hit C-c C-h -- now ";; comment" is in red and "(defun" is in blue.
  29. It seems that the comment should override and the whole line should be
  30. red.  Can lhilit do this?  Anyway, here's the inconsistent part: I
  31. then modify the line so it looks like this:
  32.  
  33.     (defun ;; comment (defun
  34.  
  35. and hit C-c C-h -- now the first "(defun" is in blue, and 
  36. ";; comment (defun" is in red!  This can't be right!
  37.  
  38.  
  39.  
  40. Is there a way to impose ordering on the regexps so that if it matched
  41. the regexp for comments it would color it red and not go on to see if
  42. it also matched another regexp?
  43.  
  44.  
  45.  
  46. ==================================================================
  47.           Tom Tatlow        "The Question"
  48.  
  49.     Work:  Digital Equipment Corporation, AI Technology Center
  50.            tatlow@athena.lmo.dec.com         (508) 480-5397
  51.  
  52.     Home:  Post Office Box 1035, Berlin, MA 01503
  53.            tom@math.mit.edu                  (617) 876-6216
  54.  
  55. ==================================================================
  56.