🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1680

incorrect indentation in c-mode

#1680
From: James Clark
Date: Wed, 10 May 1989 08:37
15 lines
643 bytes
GNU Emacs 18.54 incorrectly indents the following C code:

main()
{
  if (i)
    do
	foo();
  while(i);
}

The `while' should, of course, align with the `do.'
This happens using the default indentation style.

James Clark
jjc@jclark.uucp
Technical Details
Message-ID: <8905100837.AA20027@jclark.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjc
From: jclark!jjc@UUNET.UU.NET (James Clark)
Newsgroups: gnu.emacs.bug
Subject: incorrect indentation in c-mode
Message-ID: <8905100837.AA20027@jclark.uucp>
Date: 10 May 89 08:37:57 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 15