From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuele Giaquinta Newsgroups: gmane.emacs.devel Subject: Re: problem with recent change to grep-regexp-alist Date: Sun, 7 Aug 2005 16:25:00 +0200 Message-ID: <742051605080707254aeaf65c@mail.gmail.com> References: <20050806103401.GA369@dd213-213-54-232.pa1.infinito.it> <87r7d7j5pb.fsf@jurta.org> <85ek96lvn5.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1123425173 30364 80.91.229.2 (7 Aug 2005 14:32:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2005 14:32:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 07 16:32:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E1mBs-0006RJ-0D for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2005 16:31:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1mBm-0006Jn-IG for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2005 10:31:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E1mB7-00060h-OG for emacs-devel@gnu.org; Sun, 07 Aug 2005 10:31:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E1mB1-0005ug-Di for emacs-devel@gnu.org; Sun, 07 Aug 2005 10:31:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1mB1-0005pC-26 for emacs-devel@gnu.org; Sun, 07 Aug 2005 10:30:59 -0400 Original-Received: from [64.233.162.198] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E1mIi-0001Ps-QD for emacs-devel@gnu.org; Sun, 07 Aug 2005 10:38:56 -0400 Original-Received: by zproxy.gmail.com with SMTP id x7so591003nzc for ; Sun, 07 Aug 2005 07:25:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Dh5XhpVt/D8xpBx1liH/4HAAUdMYgKKeERdKXl3+Dv4ImjlKvaetP99GvzzdUO5Wx/b6jKSVoKa+xo7tav1SAPMAbFaXWJn5dQiZNIypy7eLRXpdQK9shErbULp2DqSPodxcHBoLLoNgHMMhfNdF466uUPSv/VwSNI7Xxr0f0DI= Original-Received: by 10.36.3.9 with SMTP id 9mr1820217nzc; Sun, 07 Aug 2005 07:25:00 -0700 (PDT) Original-Received: by 10.36.59.10 with HTTP; Sun, 7 Aug 2005 07:25:00 -0700 (PDT) Original-To: David Kastrup , Juri Linkov In-Reply-To: <85ek96lvn5.fsf@lola.goethe.zz> Content-Disposition: inline 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:41658 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41658 > > Ok, let's use "\(.+?\)". > > > > You can still get wrong matches with the file names like "abc:123", > > but perhaps such file names are rare. >=20 > Maybe \([A-Za-z]:\| ... > or something? It is not like there are many Unix file names starting > with a single letter followed by colon. >=20 > But Linux has file names like >=20 > /proc/driver/uhci/0000:00:07.2 For those files the matching will be fine. The wrong matches occur when the filename contains somewhere the pattern ":[0-9]+:" or ends with the pattern ":[0-9]+" (like Juri's example) Juri, wouldn't be good to add a comment about this in grep.el or grep.txt?