From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Matches for multiline regexps Date: Sun, 19 Jun 2005 23:50:09 -0400 Message-ID: References: <200506160140.j5G1eFJ26066@raven.dms.auburn.edu> <200506170326.j5H3Qxc01563@raven.dms.auburn.edu> <200506180248.j5I2mW504853@raven.dms.auburn.edu> <87slzel8ql.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119239864 4057 80.91.229.2 (20 Jun 2005 03:57:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2005 03:57:44 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 05:57:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DkDPi-0008WM-EO for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2005 05:57:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkDVr-0005rM-Gy for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2005 00:03:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DkDRl-00044p-04 for emacs-devel@gnu.org; Sun, 19 Jun 2005 23:59:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DkDRY-0003xB-Jf for emacs-devel@gnu.org; Sun, 19 Jun 2005 23:59:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkDRY-0003th-7e for emacs-devel@gnu.org; Sun, 19 Jun 2005 23:59:28 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DkDLf-000060-9b for emacs-devel@gnu.org; Sun, 19 Jun 2005 23:53:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DkDIX-0004Jh-KN; Sun, 19 Jun 2005 23:50:09 -0400 Original-To: Juri Linkov In-reply-to: <87slzel8ql.fsf@jurta.org> (message from Juri Linkov on Sun, 19 Jun 2005 17:14:29 +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:39149 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39149 The current duplicating of context lines of consecutive matched lines is too inconvenient. Inconvenient for whom? The user, or the maintainers of occur? It really should work like grep or diff, and to join consecutive lines with their context lines into one block. I am not necessarily against it. On the other hand, I don't like the idea of such a major rewrite of this code now. Although it would be part of fixing bugs in the handling of multiline regexps with context, I would rather fix that bug in a simple way with little rewriting.