From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: "filebat Mark" <filebat.mark@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: ident the code
Date: Tue, 26 Aug 2008 01:45:27 +0200 [thread overview]
Message-ID: <7A89A75F-5C3A-448E-B6EC-96BC66DE2A64@Web.DE> (raw)
In-Reply-To: <b93cb5f30808250659n733f6d24n5d819ab7daf8ac19@mail.gmail.com>
Am 25.08.2008 um 15:59 schrieb filebat Mark:
> I have some C++ source codes. I want make sure there is just a
> space on both
> sides of "=".
Do you think you could achieve your aim with regular expressions?
(replace-regexp " *= *" " = ")
Replace all occurrences of zero or more spaces followed by "=" and
followed by zero or more spaces with exactly " = ". This would also
change initialisation of loops ... but the regular expression could
be made more complicated to handle parentheses on the line, to avoid
replacements when they exist on that line.
--
Greetings
Pete
There is no national science just as there is no national
multiplication table; what is national is no longer science.
– Anton Checov
next prev parent reply other threads:[~2008-08-25 23:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 13:59 ident the code filebat Mark
2008-08-25 23:45 ` Peter Dyballa [this message]
2008-08-26 2:54 ` David Hansen
2008-08-26 14:35 ` filebat Mark
2008-08-26 15:56 ` filebat Mark
[not found] ` <mailman.17594.1219766191.18990.help-gnu-emacs@gnu.org>
2008-08-26 16:10 ` Andreas Politz
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7A89A75F-5C3A-448E-B6EC-96BC66DE2A64@Web.DE \
--to=peter_dyballa@web.de \
--cc=filebat.mark@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).