From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: grep.el regexp Date: Thu, 23 Jun 2005 12:53:59 -0400 Message-ID: References: <87psuipj8b.fsf@jurta.org> <87k6kme6sp.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119545648 12430 80.91.229.2 (23 Jun 2005 16:54:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2005 16:54:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 23 18:54:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DlUwb-0007il-1R for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2005 18:52:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DlV3S-00077Y-HK for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2005 12:59:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DlV0x-0005S3-IU for emacs-devel@gnu.org; Thu, 23 Jun 2005 12:57:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DlV0s-0005PB-Cx for emacs-devel@gnu.org; Thu, 23 Jun 2005 12:57:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DlV0r-0005M6-CZ for emacs-devel@gnu.org; Thu, 23 Jun 2005 12:57:13 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DlV21-0002uc-Fd for emacs-devel@gnu.org; Thu, 23 Jun 2005 12:58:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DlUxj-0004KN-41; Thu, 23 Jun 2005 12:53:59 -0400 Original-To: Juri Linkov In-reply-to: <87k6kme6sp.fsf@jurta.org> (message from Juri Linkov on Wed, 22 Jun 2005 19:27:18 +0300) 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:39379 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39379 This approach has one problem: different rules in grep-regexp-alist are not mutually exclusive, so information from different regexps can appear in grep buffers from similar regexps. In the worst case this can cause subsequent calls of `next-error' revisiting the same source line several times for each of separate regexps. If that can happen, it is a bug in compile.el. It should never find more than one match on any given line.