From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: problem with recent change to grep-regexp-alist Date: Sat, 06 Aug 2005 21:11:44 +0300 Organization: JURTA Message-ID: <87r7d7j5pb.fsf@jurta.org> References: <20050806103401.GA369@dd213-213-54-232.pa1.infinito.it> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123353711 12743 80.91.229.2 (6 Aug 2005 18:41:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2005 18:41:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 06 20:41:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E1Tbn-0004hQ-Hk for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2005 20:41:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1Tei-0004gt-Bn for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2005 14:44:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E1TWP-0000Bx-Hd for emacs-devel@gnu.org; Sat, 06 Aug 2005 14:35:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E1TVq-0008Qr-2z for emacs-devel@gnu.org; Sat, 06 Aug 2005 14:35:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1TVm-0008FW-91 for emacs-devel@gnu.org; Sat, 06 Aug 2005 14:35:10 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E1TQb-0005AT-NL for emacs-devel@gnu.org; Sat, 06 Aug 2005 14:29:49 -0400 Original-Received: from mail.neti.ee (80-235-35-120-dsl.mus.estpak.ee [80.235.35.120]) by Relayhost2.neti.ee (Postfix) with ESMTP id 5950616B8; Sat, 6 Aug 2005 21:15:59 +0300 (EEST) Original-To: Emanuele Giaquinta In-Reply-To: <20050806103401.GA369@dd213-213-54-232.pa1.infinito.it> (Emanuele Giaquinta's message of "Sat, 6 Aug 2005 12:34:01 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:41610 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41610 > In the 1.42 revision of grep.el the subpattern for the filename in the > regexps of the first two grep-regexp-alist's elements has been changed > from "\(.+?\)" to "\([^:\n]+\)". Now the matching fails if the > filename contains a colon, while the previous value worked, thanks to the > non greedy "+?" quantifier. Note that the regexp of the third > grep-regexp-alist's element is still correct, and is the one that > matches if grep-highlight-matches's value is "t" (which is the > default). Ok, let's use "\(.+?\)". You can still get wrong matches with the file names like "abc:123", but perhaps such file names are rare. -- Juri Linkov http://www.jurta.org/emacs/