From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: ident the code Date: Tue, 26 Aug 2008 01:45:27 +0200 Message-ID: <7A89A75F-5C3A-448E-B6EC-96BC66DE2A64@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1219707962 22393 80.91.229.12 (25 Aug 2008 23:46:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 23:46:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "filebat Mark" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 26 01:46:55 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 1KXllt-0006WB-Tf for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 01:46:54 +0200 Original-Received: from localhost ([127.0.0.1]:37200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXlku-00085i-Gp for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 19:45:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXlkc-00085R-Hd for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 19:45:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXlka-000856-HP for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 19:45:33 -0400 Original-Received: from [199.232.76.173] (port=35703 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXlka-000853-Be for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 19:45:32 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:59784) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KXlkZ-00030D-Gs for help-gnu-emacs@gnu.org; Mon, 25 Aug 2008 19:45:32 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 64807E9F1ACC; Tue, 26 Aug 2008 01:45:29 +0200 (CEST) Original-Received: from [91.35.238.9] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KXlkX-00011d-00; Tue, 26 Aug 2008 01:45:29 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1921RM8yxH1TUvNcdUS7Oi0KXCFZY9+y+LYJqJL DpSDaHp5WxrvA72vrziM6MV3Y7IXJIyCY1H/n8bkK2gv9ixYzt RfT/dRi22AijhdeQOJOg== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:56987 Archived-At: Am 25.08.2008 um 15:59 schrieb filebat Mark: > I have some C++ source codes. I want make sure there is just a =20 > space on both > sides of "=3D". Do you think you could achieve your aim with regular expressions? (replace-regexp " *=3D *" " =3D ") Replace all occurrences of zero or more spaces followed by "=3D" and =20 followed by zero or more spaces with exactly " =3D ". This would also =20= change initialisation of loops ... but the regular expression could =20 be made more complicated to handle parentheses on the line, to avoid =20 replacements when they exist on that line. -- Greetings Pete There is no national science just as there is no national =20 multiplication table; what is national is no longer science. =96 Anton Checov