all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: luca.spinacci@seleniacomms.com
Subject: Formatting comment lines (C code)
Date: Thu, 21 Apr 2005 08:38:31 +0200	[thread overview]
Message-ID: <OF35F3BBE7.35009E64-ONC1256FEA.00237CB1@SeleniaComms.com> (raw)


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	other threads:[~2005-04-21  6:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21  6:38 luca.spinacci [this message]
     [not found] <mailman.2351.1114065580.2895.help-gnu-emacs@gnu.org>
2005-04-21  8:02 ` Formatting comment lines (C code) Peter Tury

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF35F3BBE7.35009E64-ONC1256FEA.00237CB1@SeleniaComms.com \
    --to=luca.spinacci@seleniacomms.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.