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

  1. Path: sparky!uunet!timbuk.cray.com!shamash!bjdunlop
  2. From: bjdunlop@shamash.cdc.com (Bruce Dunlop)
  3. Newsgroups: alt.lucid-emacs.help
  4. Subject: Re: Highlighting problems
  5. Message-ID: <50950@shamash.cdc.com>
  6. Date: 31 Dec 92 00:28:31 GMT
  7. References: <1992Dec26.001926.26263@nntpd.lkg.dec.com> <50856@shamash.cdc.com> <1992Dec28.211836.24522@nntpd.lkg.dec.com>
  8. Organization: Control Data Corporation, Arden Hills, MN
  9. Lines: 31
  10.  
  11. In article <1992Dec28.211836.24522@nntpd.lkg.dec.com> tatlow@athena.lmo.dec.com writes:
  12. >>(defun.  From the lisp I have looked at, I believe that defun is usually on
  13. >>a line by itself. 
  14. >
  15. >Yes, defun usually starts a line, but it's not required to be at
  16. >the beginning.  The problem is with the whole package (or at least
  17.  
  18. Please note that I did NOT say that defun was required or even usually at the
  19. "beginning" of a line.  I said it was usually on a line by itself.  My
  20. regular expression also did not require defun to be at the beginning of a
  21. line - just the first thing encountered on a line.
  22.     (^ *(defun, nil, hilit2)
  23. This would hilit the defun line to the end of line OR, if a comment was
  24. encountered, until the comment started.  The comment would be hilited in the
  25. usual comment color.
  26.  
  27. The converse, however would not be true.  I.E. if the line started with the
  28. comment syntax, encountering a defun would not be hilited in the defun color.
  29. The entire line would be hilited in the comment color.
  30.  
  31. I believe the above behavior is what is desired.
  32.  
  33. The only problem would be if a comment start sequence was embedded somewhere
  34. in quoted text in a defun line (or any other function line).  This would
  35. incorrectly be hilited as a comment.  But this problem could occur anywhere,
  36. I believe.
  37.  
  38. ********************************************************************
  39. *   Jim Dahlberg         Computing Devices International   *
  40. *   bjdunlop@shamash.cdc.com        A Ceridian Company         *
  41. ********************************************************************
  42.