home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- 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
- From: wright@epx.cis.umn.edu (Mark Wright)
- Subject: Brief macro problem
- Message-ID: <1992Sep15.150529.18576@news2.cis.umn.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: epx.cis.umn.edu
- Organization: University of Minnesota
- Date: Tue, 15 Sep 1992 15:05:29 GMT
- Lines: 41
-
- Can anyone explain to be why I'm getting a NULL GROUP OR EXPRESSION error
- with the following Brief macro? It really looks like a bug to me - it
- looks like Brief doesn't want to escape the '{' when I use '\{'. Note that
- this is only a problem with a compiled macro. I still can use that expression
- when I use alt-s or the search_fwd "<\{" at the command line (F10).
-
- thanks
- /****************** NEXTFUN ************************************************/
-
- void nextfun( void )
-
- /* nextfun takes you to the next '{' at collumn 1
- **
- ** Mark Wright
- ** September 15, 1992
- */
-
- {
- int line, col;
-
- /* if past end of buffer (ie. inq_position returns 1), then don't bother
- ** searching. And save original position
- */
-
- if (!inq_position( line, col )) {
- down();
- if (! search_fwd ("<\{") ) {
- message( "No more functions." );
- move_abs( line, col );
- }
- }
- else
- message( "No more functions." );
-
- }
-
- /****************** NEXTFUN ************************************************/
-
- --
- Mark Wright
- wright@epx.cis.umn.edu
-