[comp.emacs] Need easy way to enter 1-line block in c/c++ modes.

dave@intermec.UUCP (David Karr) (10/19/90)

In other words, c-mode and c++-mode work fine if my block of code
looks like this:

    if	(gorkola)
    {
    	gorkola;
    	moregorkola;
    }

but if my block is only one line, like this:

    if  (gorkola)
    	gorkola;

then c-mode and c++-mode force me to go to silly lengths to generate
this.  Basically I have to enter the left brace, then do the line feed
and type the indented line, and then delete the line with the brace.
I would love it if I could type ^U-LF or ^U-TAB, and have it go to one
higher indent level than it would normally.  When done with the line,
either by typing ";" or CR, it would NOT force the line back to the
previous indent level.  I believe I could probably implement this in a
reasonable amount of time, but I wouldn't mind it if someone had
already figured this out.
-- 
----------------------------------------
David Karr    dave@intermec.COM or uunet!pilchuck!intermec!dave
Intermec Corp., PO Box 4280, Everett, WA 98203 (206)348-2600 x7324
"The above statements do not necessarily reflect the opinions of my employer."