[comp.emacs] Mod wanted for c-mode

crocker@motcid.UUCP (Ronald T. Crocker) (12/10/90)

What I would like is for some kind soul in netland to send me some
functions for emacs that will tab over to some pre-specified
(tab-column) column, enter the string "/* " into the buffer, and await
input for inline comments.  When the edge of the screen is reached,
this function would wrap the words to the next line, of course tabbed
over to tab-column, with the string " * " entered into the buffer
prior to the continued comment.  When enter is hit, this function
would put a " */" at the end of the comment.  It is fair if cursor
movements turn of this "comment enter" sub-mode.  I'd also be quite
pleased if this function were mapped to ESC-/, but I can probably
handle that.

For example, if tab-column is set at 41, the following would be input
with the keys: TAB i f SPC ( i < 0 ) SPC { ESC / i SPC n e g a t i v e NL

	if (i<0) {			/* i negative */

If something already exists in c-mode and I'm missing it, or if there
is a better thing to use for C code than c-mode, please inform me and
I'll be glad to try it.  I'm not totally enthralled by c-mode, but
it's better than text-mode for writing C code.

Thanks

Ron Crocker
Motorola Radio-Telephone Systems Group, Cellular Infrastructure Group
(708) 632-4752 [FAX: (708) 632-4430]
...!uunet!motcid!crocker