From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: FCC Newsgroups: gmane.emacs.help Subject: Re: grep can help? Date: Thu, 22 Apr 2004 13:23:59 +0200 Organization: Universitat Politecnica de Catalunya Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <86brlkmhj7.fsf@chello.at> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082633843 19591 80.91.224.253 (22 Apr 2004 11:37:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2004 11:37:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 22 13:37:15 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGcW2-0001h1-00 for ; Thu, 22 Apr 2004 13:37:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGcQT-0007Yo-1y for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Apr 2004 07:31:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.cesca.es!news.upc.es!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: adca05.upc.es Original-X-Trace: defalla.upc.es 1082633183 11369 147.83.51.18 (22 Apr 2004 11:26:23 GMT) Original-X-Complaints-To: newsmngr@upc.es Original-NNTP-Posting-Date: 22 Apr 2004 11:26:23 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en, es-es, tr In-Reply-To: <86brlkmhj7.fsf@chello.at> Original-Xref: shelby.stanford.edu gnu.emacs.help:122561 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17848 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17848 Albert Reiner wrote: > Just to point out the obvious: This does not take into account > exclamation marks in string constants, and the standard also allows > you to write F90 in fixed format in which case you might use ! in > column 5 (?) for continuation lines. Of course it depends on your > code whether this is a problem; a general solution would need to parse > F90 in both formats. > > Albert. I see. I think your 2nd point is not an example of good programming, so I would not worry about it. But your 1st point needs to be taken care of: replace-regexp "\B!.*" " " and all the comments will be gone, respecting the ! inside the strings, as long as they don't come with a preceding whitespace. But if they do, this is again not a good practice, normally for example you write "Nice to see you!", but not "Nice to see you !". FCC.