From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Changes to emacs/lisp/progmodes/grep.el Date: Wed, 30 Jun 2004 08:16:55 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87lli5k4l9.fsf@mail.jurta.org> References: <87isdgnzzi.fsf@mail.jurta.org> <20040625220304.0f1fd05a@pfdabpc.inhouse.start.de> <20040627123340.5d3354cd@pfdabpc.inhouse.start.de> <20040628104013.5b4eb37e@pfdabpc.inhouse.start.de> <7494-Mon28Jun2004200058+0300-eliz@gnu.org> <20040628232216.5be7f8dd@pfdabpc.inhouse.start.de> <5567-Tue29Jun2004071049+0300-eliz@gnu.org> <20040629220851.07104e4c@pfdabpc.inhouse.start.de> <7137-Tue29Jun2004231955+0300-eliz@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088572828 31496 80.91.224.253 (30 Jun 2004 05:20:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2004 05:20:28 +0000 (UTC) Cc: Daniel Pfeiffer , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 30 07:20:21 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfXW9-0007V4-00 for ; Wed, 30 Jun 2004 07:20:21 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfXW9-0000wJ-00 for ; Wed, 30 Jun 2004 07:20:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfXXq-0002xm-Oz for emacs-devel@quimby.gnus.org; Wed, 30 Jun 2004 01:22:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BfXXj-0002xh-DQ for emacs-devel@gnu.org; Wed, 30 Jun 2004 01:21:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BfXXh-0002x7-S9 for emacs-devel@gnu.org; Wed, 30 Jun 2004 01:21:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfXXh-0002x4-Jq for emacs-devel@gnu.org; Wed, 30 Jun 2004 01:21:57 -0400 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BfXVg-0004cD-Qx; Wed, 30 Jun 2004 01:19:53 -0400 Original-Received: from mail.jurta.org (80-235-43-232-dsl.mus.estpak.ee [80.235.43.232]) by knife.dreamhost.com (Postfix) with ESMTP id 2BE04E4043; Tue, 29 Jun 2004 22:19:50 -0700 (PDT) Original-To: Eli Zaretskii In-Reply-To: <7137-Tue29Jun2004231955+0300-eliz@gnu.org> (Eli Zaretskii's message of "Tue, 29 Jun 2004 23:19:55 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25319 "Eli Zaretskii" writes: >> Date: Tue, 29 Jun 2004 22:08:51 +0200 >> From: dapfy@t-online.de (Daniel Pfeiffer) >> - Is it better to delete the Escape sequences as Juri suggested and thus >> irreversibly change the buffer contents such that it can't be rehighlighted? >> >> - Or do we maintain save-to-file and editability, by making the Escape >> sequences invisible (and maybe solving the drawbacks somehow)? > > I missed that part of the discussion, but why not use something like > ansi-color.el to _display_ the highlighted substrings as if they were > on a text-mode terminal? ansi-color.el is good for displaying highlighted substrings, but it _deletes_ escape sequences after highlighting the substrings. So, as Daniel pointed out, substrings can't be rehighlighted later after saving and reloading the *grep* buffer. Moreover, ansi-color.el conflicts with font-lock which is used to calculate column positions of matches based on relative locations of escape sequences in grep output. -- Juri Linkov http://www.jurta.org/emacs/