🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87940

cc-mode should support electric newlines

#87940
From: Jonathan I. Kamens
Date: Sat, 13 Aug 1994 03:25
19 lines
1554 bytes
In GNU Emacs 19.25.2 of Fri Aug 12 1994 on gza-client1 (sparc-sun-sunos4.1.3)

The C-mode I've got, which is bastardized from a number of different
sources I couldn't possibly identify, supports "electric newlines."
That is, when I hit newline in it, it automatically deletes any
whitespace at the end of the previous line (if I'm not in a literal)
and indents the cursor on the next line.

I like this feature a lot, so I'd like it to be present in cc-mode, so
I can switch to using one of the modes shipped with Emacs instead of
my own hacked-together mode.  I know other people who like this
feature too.

I tried to add it to cc-mode myself, but the code is too obtuse for me
to be able to easily figure out how to do it properly :-).

Thanks,

Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com
Technical Details
Message-ID: <199408122015.QAA13444@gza-client1.aktis.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu !asuvax!cs.utexas.edu!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cam.ov.COM!jik

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,790fd4f342447d98,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-13 06:22:10 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!primenet!netnews.asu.edu      !asuvax!cs.utexas.edu!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cam.ov.COM!jik
From: jik@cam.ov.COM (Jonathan I. Kamens)
Newsgroups: gnu.emacs.bug
Subject: cc-mode should support electric newlines
Date: 12 Aug 1994 23:25:11 -0400
Organization: GNUs Not Usenet
Lines: 20
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199408122015.QAA13444@gza-client1.aktis.com>