Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!mit-eddie!uw-beaver!fluke!intermec!dave From: dave@intermec.UUCP (David Karr) Newsgroups: comp.emacs Subject: Need easy way to enter 1-line block in c/c++ modes. Message-ID: <1350@intermec.UUCP> Date: 19 Oct 90 15:08:40 GMT Reply-To: dave@intermec.com () Organization: Intermec Corporation, Everett, Wa. Lines: 29 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."