help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formatting comment lines (C code)


From: luca . spinacci
Subject: Formatting comment lines (C code)
Date: Thu, 21 Apr 2005 08:38:31 +0200

I would like to format my comment lines
replacing all spaces and tabs between
'//' and the comment text with only one space.
Ex.
//____Text.... => //_Text

where '_' is a space.

I use replace-regexp "[^ a-zA-Z0-9/\.]" " "
on a selection of my code but it
doesn't work very well because replaces
characters in the comment text
- for instance replaces )(!-, etc. -.

Any suggestion?

Thank you very much.
Luca





reply via email to

[Prev in Thread] Current Thread [Next in Thread]