From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: grep.el regexp Date: Thu, 30 Jun 2005 13:34:25 -0400 Message-ID: References: <87psuipj8b.fsf@jurta.org> <87k6kme6sp.fsf@jurta.org> <87aclb2w0m.fsf@jurta.org> <873br3xaum.fsf-monnier+emacs@gnu.org> <87u0jh6cwq.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120153016 18833 80.91.229.2 (30 Jun 2005 17:36:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2005 17:36:56 +0000 (UTC) Cc: juri@jurta.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 19:36:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Do2xQ-0002nO-II for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 19:36:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Do35i-0006zt-Je for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 13:44:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Do32l-00068w-Fj for emacs-devel@gnu.org; Thu, 30 Jun 2005 13:41:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Do32U-0005zG-Qw for emacs-devel@gnu.org; Thu, 30 Jun 2005 13:41:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Do32U-0005wZ-CC for emacs-devel@gnu.org; Thu, 30 Jun 2005 13:41:26 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Do30i-0002Eg-00; Thu, 30 Jun 2005 13:39:36 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 470832CF51E; Thu, 30 Jun 2005 13:34:29 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 51DD74AC00A; Thu, 30 Jun 2005 13:34:25 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 38250E6A42; Thu, 30 Jun 2005 13:34:25 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Wed, 29 Jun 2005 16:43:01 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.846, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39960 > The example you showed is not an example of THAT. You're talking > about three disjoint matches in the same line. > So while this could be an example where it is valid to have > multiple matches on the same line, it's only valid because they > match disjoint parts of the same line. > I am not sure whether that relates to the suggestion I made: >> I think that if we wrote a separate regexp for each kind of grep, >> all together they would match a lot fewer different strings than the >> current regexp does, and they would be much easier to understand. Indeed, the two do not conflict. I.e. I think there's no problem with compile.el's current behavior in this regard and I believe your suggestion w.r.t grep.el should work just fine. Stefan