home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / editors / 2233 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.5 KB  |  53 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!epx.cis.umn.edu!wright
  3. From: wright@epx.cis.umn.edu (Mark Wright)
  4. Subject: Brief macro problem
  5. Message-ID: <1992Sep15.150529.18576@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: epx.cis.umn.edu
  8. Organization: University of Minnesota
  9. Date: Tue, 15 Sep 1992 15:05:29 GMT
  10. Lines: 41
  11.  
  12. Can anyone explain to be why I'm getting a NULL GROUP OR EXPRESSION error
  13. with the following Brief macro?  It really looks like a bug to me - it
  14. looks like Brief doesn't want to escape the '{' when I use '\{'.  Note that
  15. this is only a problem with a compiled macro.  I still can use that expression
  16. when I use alt-s or the search_fwd "<\{" at the command line (F10).
  17.  
  18. thanks
  19. /****************** NEXTFUN ************************************************/
  20.  
  21. void nextfun( void )
  22.  
  23. /*  nextfun takes you to the next '{' at collumn 1
  24. **
  25. **  Mark Wright
  26. **  September 15, 1992
  27. */
  28.  
  29. {
  30.   int line, col;
  31.  
  32.   /* if past end of buffer (ie. inq_position returns 1), then don't bother
  33.   ** searching.  And save original position
  34.   */
  35.  
  36.   if (!inq_position( line, col )) {
  37.     down();
  38.     if (! search_fwd ("<\{") ) {
  39.       message( "No more functions." );
  40.       move_abs( line, col );
  41.     }
  42.   }
  43.   else
  44.     message( "No more functions." );
  45.  
  46. }
  47.  
  48. /****************** NEXTFUN ************************************************/
  49.  
  50. -- 
  51. Mark Wright
  52. wright@epx.cis.umn.edu
  53.