From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hemant Kumar Newsgroups: gmane.emacs.help Subject: Re: Emacs and colors in compilation buffer Date: Sun, 13 Oct 2013 11:31:08 +0530 Message-ID: <9287E292-0CC1-453B-A28A-7E4AE6858460@codemancers.com> References: <28FFC71E-7E47-48DD-B313-38A03B353103@codemancers.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381686675 23132 80.91.229.3 (13 Oct 2013 17:51:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Oct 2013 17:51:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 13 19:51:19 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VVPp0-0001Nx-He for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Oct 2013 19:51:18 +0200 Original-Received: from localhost ([::1]:34044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVPp0-0002T8-6b for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Oct 2013 13:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVEjr-0007JV-Rt for help-gnu-emacs@gnu.org; Sun, 13 Oct 2013 02:01:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVEjm-0005Bv-TV for help-gnu-emacs@gnu.org; Sun, 13 Oct 2013 02:01:15 -0400 Original-Received: from mail-pa0-f41.google.com ([209.85.220.41]:50135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVEjm-0005Bl-Kh for help-gnu-emacs@gnu.org; Sun, 13 Oct 2013 02:01:10 -0400 Original-Received: by mail-pa0-f41.google.com with SMTP id bj1so6231760pad.28 for ; Sat, 12 Oct 2013 23:01:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=V/bquXzAWJrT+s0Z8OeU0OIpJDEuYTtD8wCz1KLgFM8=; b=T6S4moMGeoFaJulay5++zXvCZOQnZwzcKz9D8AiGvNBsKiKtqJ78MCf102Xa2Zr0/7 fv2U9u2vF2YEoNcZ18Bv5cBAvw6Aefpowzs7Y0kiIhW37GLD99+S6j7pWI5mQbqScpet F6+J6eAoPnMeFk2kp7Izq6VRF071EHXVs6QkLSZjZ4x5/gIq67e3pNPmwANRdiEihr+s 4a4Z7ItQFaaRkeRiDcED2RlDr8X6QV4bJ/8eku3z6hzJ7q92Sx+HxLWFQuoa7cf0XHT0 ysCArkEGGYU4QaACybV9hXn+gCRM6X6pt92p38wpenk1trslM2flUqFX8oOCPiV+Q10l 3YAg== X-Gm-Message-State: ALoCoQkHjyIN7EvR/bYpaBVLvXYK1DAHK576ENrhCMSMHWIPhx76WJYQUDrZFURTRxFvDtCjykyp X-Received: by 10.66.188.203 with SMTP id gc11mr30212582pac.63.1381644069834; Sat, 12 Oct 2013 23:01:09 -0700 (PDT) Original-Received: from [10.0.0.9] ([122.178.203.31]) by mx.google.com with ESMTPSA id fa4sm82033894pab.17.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Oct 2013 23:01:09 -0700 (PDT) In-Reply-To: <28FFC71E-7E47-48DD-B313-38A03B353103@codemancers.com> X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.41 X-Mailman-Approved-At: Sun, 13 Oct 2013 13:50:54 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93997 Archived-At: Hello, On 13-Oct-2013, at 11:28 AM, Hemant Kumar = wrote: > Hello folks, >=20 > I am using https://github.com/Wilfred/ag.el for searching in directory = and the with colors enabled in ag it looks like,=20 > http://cl.ly/image/2K35030n1C0T (Please note same problem exists with = various ack modes as well) >=20 > As you can see it doesn't completely break and ansi color sequences = are properly converted (at least some of it). In fact when search output = is small enough, it looks perfect. But lets say when I grepping = something like Rails code and then the result looks like: >=20 > http://cl.ly/image/2x012Y1L0e2T >=20 > As if the the color which was supposed to highlight the match has = taken the background! >=20 > I already have following bit in my configuration file: >=20 > (require 'ansi-color) > (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) > (defun colorize-compilation-buffer () > (interactive) > (toggle-read-only) > (ansi-color-apply-on-region (point-min) (point-max)) > (toggle-read-only)) >=20 > (add-hook 'compilation-filter-hook 'colorize-compilation-buffer) >=20 >=20 > Which should fix this problem but it doesn't completely. =20 Forgot to add, this Emacs running on OSX -10.8.5. Emacs version is, = 24.3.50.1. Basically compiled from git head couple of months back. I do use Color Themes but I have tried switching to vanilla look but = results look all the same. Cheers and thanks again Hemant