Article View: gnu.emacs.bug
Article #99529C-mode indentation
From: eric%yamada-sun
Date: Sat, 11 Aug 1990 21:28
Date: Sat, 11 Aug 1990 21:28
41 lines
1613 bytes
1613 bytes
GNU Emacs 18.55.2 of Thu May 24 1990 on yamada-sun (berkeley-unix)
Put the following into a file named foo.c
void
ick(void);
{
if (foo)
bar;
#if defined (BAZ)
else
zip;
#endif
}
then at the shell do
% emcas -q foo.c
Then do C-x h (mark-whole-buffer) ESC C-\ (indent-region). The result
will look like this:
void
ick(void);
{
if (foo)
bar;
#if defined (BAZ)
else
zip;
#endif
}
Why I think this is a bug: The `else' clause ought to be indented two
spaces over. If the `#if defined' and the `#endif' aren't present,
the `else' clause gets indented properly.
------------------------------------------------------------------------
|Eric Hanchrow yamada-sun!eric@nosun.west.sun.com |
|Phase III Logic, Inc. yamada-sun!eric@cse.ogi.edu |
|1600 N.W. 167th Place Beaverton, OR 97006-4800 USA |
|Voice: (503)-645-0313 Fax: (503)-645-0207 as of 13-Dec-89|
--------------Crackling-noises-OK--do-not-correct!----------------------
Technical Details
Message-ID:
<9008112128.AA10242@noname>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CSE.OGI.EDU!eric%yamada-sunShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,17c59d1ab99e9fdc,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-08-11 15:42:37 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CSE.OGI.EDU!eric%yamada-sun From: eric%yamada-sun@CSE.OGI.EDU Newsgroups: gnu.emacs.bug Subject: C-mode indentation Message-ID: <9008112128.AA10242@noname> Date: 11 Aug 90 21:28:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41 Posted: Sat Aug 11 22:28:06 1990