home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / bug / 1229 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1014 b   |  53 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!dcs.ed.ac.UK!mikef
  3. From: mikef@dcs.ed.ac.UK (Mike Fourman)
  4. Subject: bug in mark-c-function
  5. Message-ID: <9209031048.aa06342@dcs.ed.ac.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 3 Sep 1992 11:48:20 GMT
  10. Approved: bug-gnu-emacs@prep.ai.mit.edu
  11. Lines: 40
  12.  
  13. It doesn't always mark the function. Here is an example
  14. (the comment shows where to place point)
  15. ---------------------------------------------------
  16. #include <stdio.h>
  17.  
  18. int main()
  19. {
  20. int i ;
  21.   
  22.  
  23. switch( i )
  24. {
  25. case 0 :
  26. {
  27. printf( "zero\n" ) ;
  28. }
  29. break ;
  30.  
  31. /*<place point here . (for example) and call mark-c-function>*/
  32.  
  33. default:
  34. {
  35. printf( "non-zero\n" ) ;  
  36. }
  37. }
  38.  
  39. }
  40.      
  41.  
  42. -----------------------------------------------------------
  43.  
  44. The code has to be poorly indented for the bug to show up
  45. (in my experience). If you use indent-region to reindent
  46. the entire buffer then mark-c-function marks this function
  47. correctly.
  48.  
  49. We are running 18.58
  50.  
  51. Mike Fourman
  52.  
  53.