home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.bug
- Path: sparky!uunet!cis.ohio-state.edu!dcs.ed.ac.UK!mikef
- From: mikef@dcs.ed.ac.UK (Mike Fourman)
- Subject: bug in mark-c-function
- Message-ID: <9209031048.aa06342@dcs.ed.ac.uk>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Thu, 3 Sep 1992 11:48:20 GMT
- Approved: bug-gnu-emacs@prep.ai.mit.edu
- Lines: 40
-
- It doesn't always mark the function. Here is an example
- (the comment shows where to place point)
- ---------------------------------------------------
- #include <stdio.h>
-
- int main()
- {
- int i ;
-
-
- switch( i )
- {
- case 0 :
- {
- printf( "zero\n" ) ;
- }
- break ;
-
- /*<place point here . (for example) and call mark-c-function>*/
-
- default:
- {
- printf( "non-zero\n" ) ;
- }
- }
-
- }
-
-
- -----------------------------------------------------------
-
- The code has to be poorly indented for the bug to show up
- (in my experience). If you use indent-region to reindent
- the entire buffer then mark-c-function marks this function
- correctly.
-
- We are running 18.58
-
- Mike Fourman
-
-