From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "filebat Mark" Newsgroups: gmane.emacs.help Subject: ident the code Date: Mon, 25 Aug 2008 21:59:01 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_130472_24519591.1219672741597" X-Trace: ger.gmane.org 1219704273 10917 80.91.229.12 (25 Aug 2008 22:44:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 22:44:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 26 00:45:27 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KXkoQ-0004HW-Rb for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 00:45:27 +0200 Original-Received: from localhost ([127.0.0.1]:39659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXknS-0008Re-7P for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 18:44:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXcb3-0005Vf-Ep for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 09:59:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXcb1-0005Uf-J3 for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 09:59:04 -0400 Original-Received: from [199.232.76.173] (port=40483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXcb1-0005UR-9n for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 09:59:03 -0400 Original-Received: from wr-out-0506.google.com ([64.233.184.236]:46193) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KXcb1-0002Ou-0L for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 09:59:03 -0400 Original-Received: by wr-out-0506.google.com with SMTP id c30so1702031wra.14 for ; Mon, 25 Aug 2008 06:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=JEPyBfO8fj0koWUhD5nlvxQsf2NRXoABo8RZZ0o38mE=; b=bkRVRDv+PkLkfWqfi1f8xGqI0G+U2ChD6ppXI0UUFipuoPh6Vp762UqvZsaY0SJDws nmMdWNMGsccvZLXWSB/jnO7o0Ifoa0N3X9EeoLZQIprJJfeiw/KKzKoPlASgqQPWWT/1 VEF6Yd1s/SU1oQyoJKDYGcMtpLi1L1DtmBBEI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=JgFpAnkeZtHDFe/MW57SanWmf2axLIzcD9VcRzFPqB9YC1F53fBEcRQa0O1VmiL8Mf USsSOsBHu9en10PcHeBBBo2SW8iZ4xNDUkmeM5xyvM2YQdIoW0lRbyo/CW2Xz1bITWuI UU71SYN5B/uqbJvtEdwxNgWF4Rjz5Tk8eoDQM= Original-Received: by 10.90.92.10 with SMTP id p10mr5360423agb.96.1219672741572; Mon, 25 Aug 2008 06:59:01 -0700 (PDT) Original-Received: by 10.90.87.6 with HTTP; Mon, 25 Aug 2008 06:59:01 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 25 Aug 2008 18:43:43 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56982 Archived-At: ------=_Part_130472_24519591.1219672741597 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, all I have some C++ source codes. I want make sure there is just a space on both sides of "=". That means script1 will be changed to script2, as following. Script1: int a= 2; a =a+3; Script2: int a = 2; a = a+3; ------------------- I think maybe an elisp function can do this job. I am wondering how to find this elisp code, cause I don't want to reinvent the wheel. Thanks for your attention. -- Thanks & Regards Denny Zhang ------=_Part_130472_24519591.1219672741597 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi, all
I have some C++ source codes. I want make sure there is just a space on both sides of "=".
That means script1 will  be changed to script2, as following.
Script1:
int a= 2;
a  =a+3;

Script2:
int a = 2;
a = a+3;

-------------------
I think maybe an elisp function can do this job. I am wondering how to find this elisp code, cause I don't want to reinvent the wheel.

Thanks for your attention.



--
Thanks & Regards

Denny Zhang

------=_Part_130472_24519591.1219672741597--