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 <[EMAIL PROTECTED]> writes: > Is someone working on this problem? Please tell me if you are. > > From: Dan Nicolaescu <[EMAIL PROTECTED]> > 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 [EMAIL PROTECTED] http://www.marcelotoledo.org Mobile: 55 71 9116-1101 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel