From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcelo Toledo Newsgroups: gmane.emacs.devel Subject: Re: [dann@ics.uci.edu: grep fontification problem] Date: Fri, 06 May 2005 14:56:06 -0300 Message-ID: <878y2s6xxl.fsf@kali.intranet> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115402845 18852 80.91.229.2 (6 May 2005 18:07:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 May 2005 18:07:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 06 20:07:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DU7Do-0003iB-7B for ged-emacs-devel@m.gmane.org; Fri, 06 May 2005 20:06:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DU7LZ-0004JC-ED for ged-emacs-devel@m.gmane.org; Fri, 06 May 2005 14:14:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DU7GT-0008OG-4f for emacs-devel@gnu.org; Fri, 06 May 2005 14:09:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DU7GR-0008N3-1U for emacs-devel@gnu.org; Fri, 06 May 2005 14:09:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DU7FG-0007Su-P9 for emacs-devel@gnu.org; Fri, 06 May 2005 14:08:14 -0400 Original-Received: from [200.246.179.113] (helo=hm13.locaweb.com.br) by monty-python.gnu.org with smtp (Exim 4.34) id 1DU796-0003FG-5u for emacs-devel@gnu.org; Fri, 06 May 2005 14:01:52 -0400 Original-Received: (qmail 29224 invoked from network); 6 May 2005 17:54:14 -0000 Original-Received: from unknown (10.1.10.10) by hm13.locaweb.com.br with QMTP; 6 May 2005 17:54:14 -0000 Original-Received: (qmail 23984 invoked from network); 6 May 2005 17:56:16 -0000 Original-Received: from unknown (HELO kali.intranet.marcelotoledo.org) (marcelo@marcelotoledo.org@201.9.95.237) by hm10.locaweb.com.br with SMTP; 6 May 2005 17:56:16 -0000 Original-To: emacs-devel@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUREBKVenaCZF94VlBp TEhXPzzH0uJJMS+5w9gzIiKEqtMzAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEgAACxIB0t1+/AAA AAd0SU1FB9MGCwAYJycum7IAAAH+SURBVHjavVO5bttAECUCGMGWOwICtTtL5Si1s4ThLuBRuEwk gfEPCCptwQHBUh3LRWiC2L/NLGNHqyNtCJDFPL735kyS//mIf8Z94q4BToirJDe9FxThJoYX4oqD F975Sxc/Nq33/vx/kQzr0lZVfUHxa4Na26o+A8TPghCRys0ZZdgYRECylTsDVoRKgaasPVUaC6OU VKz14E5KGRiQUuq6aWMtEQCOQ72mVsQmbqjKfC6BU749YYhmbNashWmZPbqvEcPniBynuirbIYu0 RtRkkLCydP8rjxgvtMk1EaDRVa8jk5esYiDj8jF7AhcBlsDmtpiAiPE4EBoys5xrsc/pEfjSk0a9 BOIqF/3iCNCzQTlTklOWdv/pCHyz3CoA0AykT3dHYH/LrQKjtJGg48a/mwCUQAhpEwE3C84HlZyR AV3Hg6KcDTgnWPJM4r7vC+Bcu0MA1jEgeim57aEQvToZ+w0bsAmPXRdtPPX3y8ldKm3pgSf3F3N5 KFsB75a5c7wF7u04egW8QBwnzHjx3ygiGZUKnUJjIPXJtKhMY64g/AMg6Kr+cYBXCydW3GCWCp8y nXeHcHguHN8+rDuGzCDV3bybnINaH1QgLCqg6rouxFkocaPiQwhxNvq8YyAkxqfpfNh3fuZM+bjb 7kJmju/Yie+v/x+k/LDddr8BShKMrI4evB8AAAAASUVORK5CYII= In-Reply-To: (Richard Stallman's message of "Wed, 04 May 2005 12:13:13 -0400") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) 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:36763 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36763 In 2004/04/05 we started a thread about highlighting grep buffer, the code mentioned there uses the ansi codes of grep and activates the `ansi-color-apply-on-region'. This solution is partially acceptable, will work for most of the users, but will fail for non GNU Grep, I cannot customize it in Emacs which is bad in my opinion because may not look good in all displays and every once grep changes their code, we have to make sure it will not break our solution and it will still be highlighting correctly. For some reason the solution nowadays looks pretty much confusing, it uses the ansi codes generated from grep, doesn't activate ansi in the region and the codes are stripped in the future. In 26 Apr 2005 17:24:24 Stefan suggested something, but I can only realize that we have been fighting against a wrong solution that we took in the past. Whatever is going on we have no complex highlight here so I don't see why we should still stick with the ansi colors. This is turning the source code complicated, longer, dependent and non-customizable in Emacs. Richard Stallman writes: > Is someone working on this problem? Please tell me if you are. > > From: Dan Nicolaescu > Subject: grep fontification problem > To: emacs-pretest-bug@gnu.org > X-Sent: 3 days, 15 hours, 21 minutes, 16 seconds ago > X-Spam-Level: > > > Save the following to /tmp/t > > - ---cut here--- > abc def abc def > def abc def > - ---cut here--- > > and then do M-x grep RET abc /tmp/t RET > > the grep buffer will look like: > > - -*- mode: grep; default-directory: "/tmp/" -*- > grep -nH -e abc /tmp/t > T:1:abc def ^[[01;41mabc^[[00m^[[K def > T:2:def abc def > > Grep finished (matches found) at Mon May 2 18:57:15 > > The escape sequence for the second "abc" string was not eliminated and > replaced with a face. -- Marcelo Toledo marcelo@marcelotoledo.org http://www.marcelotoledo.org Mobile: 55 71 9116-1101