Article View: gnu.emacs.bug
Article #98931C mode indentation peculiarity
From: Francois Pinard
Date: Fri, 04 Jan 1991 19:15
Date: Fri, 04 Jan 1991 19:15
28 lines
1721 bytes
1721 bytes
In GNU Emacs 18.55.6 of Mon Jun 25 1990 on icule (usg-unix-v)
Presume a .c file has the following contents:
void
z ()
{
...;
}
If I put the cursor on the second line (the `z ()' line), and hit TAB,
this second line will be moved two spaces to the right. This
behaviour is particularily apparent when c-auto-newline is t, if `{'
is typed just after `)'. This might be a bug, as I imply it from
the following quotation from GNU Emacs documentation:
I strongly recommend that you try out the indentation style
produced by the standard settings of these variables, together
with putting open braces on separate lines. You can see how
it looks in all the C source files of GNU Emacs.
In the source files, the two header lines of a function are usually
not indented. Maybe and presumably, this has been reported many
times, but the discussions just escaped me :-).
--
Franc,ois Pinard ``Vivement GNU!'' pinard@iro.umontreal.ca
(514) 588-4656 cp 886 L'Epiphanie (Qc) J0K 1J0 ...!uunet!iros1!pinard
Technical Details
Message-ID:
<9101041915.AA01530@icule.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!LARRY.MCRCIM.MCGILL.EDU!pinard%icule.UUCPShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,f94610cc18ecc125,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-01-04 11:15:56 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!LARRY.MCRCIM.MCGILL.EDU!pinard%icule.UUCP From: pinard%icule.UUCP@LARRY.MCRCIM.MCGILL.EDU (Francois Pinard) Newsgroups: gnu.emacs.bug Subject: C mode indentation peculiarity Message-ID: <9101041915.AA01530@icule.UUCP> Date: 4 Jan 91 19:15:56 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: pinard@iro.umontreal.ca Distribution: gnu Organization: GNUs Not Usenet Lines: 28 Approved: bug-gnu-emacs@prep.ai.mit.edu