Article View: gnu.emacs.bug
Article #100017C-mode indent problem
From: Eric Hanchrow
Date: Tue, 06 Mar 1990 17:28
Date: Tue, 06 Mar 1990 17:28
33 lines
1793 bytes
1793 bytes
This is not exactly one of your more catastrophic bugs, but what the
heck.
Emacs version 18.55, Sun Sparc 1 under SunOS 4.0.3c.
In C mode, it seems that the first non-preprocessor line gets indented
one tab stop too much if it's preceded by a preprocessor line. Here's
an example:
#include <stdio.h>
void
main(void)
{
}
void
not_main(void)
{
}
The program you see above was indented in C mode, with
`c-indent-command' at the beginning of each line. I would have
expected the first function (`main') to be indented just like the
second one. Notice how the `void' in the first function is indented,
while the `void' in the second isn't.
I don't know enough Lisp to fix this myself, hence the bug report.
-------------------------------------------------------------------------
|Eric Hanchrow yamada-sun!eric@nosun.west.sun.com |
|Phase III Logic, Inc. ...!{tektronix, sun}!nosun!yamada-sun!eric |
|1600 N.W. 167th Place Beaverton, OR 97006 |
|Voice: (503)-645-0313 Fax: (503)-645-0207 as of 13-Dec-89 |
-------------------------------------------------------------------------
Technical Details
Message-ID:
<9003061728.AA01809@yamada-sun.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!spdcc!snorkelwacker!think!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!nosun.west.sun.com!yamada-sun!ericShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,42705e0a490d81e1,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-03-06 09:28:25 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!spdcc!snorkelwacker!think!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!nosun.west.sun.com!yamada-sun!eric From: yamada-sun!eric@nosun.west.sun.com (Eric Hanchrow) Newsgroups: gnu.emacs.bug Subject: C-mode indent problem Message-ID: <9003061728.AA01809@yamada-sun.UUCP> Date: 6 Mar 90 17:28:25 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33 Posted: Tue Mar 6 18:28:25 1990