🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #734

bug in mark-c-function

#734
From: Mike Fourman
Date: Thu, 03 Sep 1992 11:48
39 lines
1064 bytes
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
Technical Details
Message-ID: <9209031048.aa06342@dcs.ed.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dcs.ed.ac.UK!mikef

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!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