From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#2397: 23.0.90; grep no longer highlights the match Date: Sun, 22 Feb 2009 21:01:36 +0200 Organization: JURTA Message-ID: <874oymnvx3.fsf@jurta.org> References: <011f01c992e9$854a3cc0$c2b22382@us.oracle.com> <000f01c99516$f20a9a10$0200a8c0@us.oracle.com> Reply-To: Juri Linkov , 2397@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235330635 5912 80.91.229.12 (22 Feb 2009 19:23:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2009 19:23:55 +0000 (UTC) Cc: 2397@emacsbugs.donarmstrong.com To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 20:25:09 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LbJwq-0002dp-UT for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 20:25:09 +0100 Original-Received: from localhost ([127.0.0.1]:57995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbJvW-000194-Bk for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 14:23:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbJvR-00017T-Hr for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbJvP-000157-J4 for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:40 -0500 Original-Received: from [199.232.76.173] (port=33915 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbJvP-00014l-Dg for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51250) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbJvO-0007mv-Us for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:39 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MJNaGJ006231; Sun, 22 Feb 2009 11:23:37 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1MJF3RG003924; Sun, 22 Feb 2009 11:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 22 Feb 2009 19:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2397 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2397-submit@emacsbugs.donarmstrong.com id=B2397.12353296762637 (code B ref 2397); Sun, 22 Feb 2009 19:15:03 +0000 Original-Received: (at 2397) by emacsbugs.donarmstrong.com; 22 Feb 2009 19:07:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MJ7qd8002628 for <2397@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 11:07:54 -0800 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LbJg7-000EQs-FO; Sun, 22 Feb 2009 21:07:51 +0200 In-Reply-To: <000f01c99516$f20a9a10$0200a8c0@us.oracle.com> (Drew Adams's message of "Sun, 22 Feb 2009 09:56:52 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (x86_64-pc-linux-gnu) X-Scanner-Signature: 7ffaa6bc246e67c9b1a22e0c753f4a43 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 22 Feb 2009 14:23:40 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25601 Archived-At: > Even more specifically, it is the change from > (setenv "GREP_OPTIONS" (concat (getenv "GREP_OPTIONS") " --color=always")) > to > (setenv "GREP_OPTIONS" (concat (getenv "GREP_OPTIONS") " --color=auto")) > that introduces the bug. Putting back `always' in place of `auto' restores the > highlighting. > > Why `auto' doesn't work, I don't know. This change was the result of the following discussion: http://thread.gmane.org/gmane.emacs.bugs/16956 http://thread.gmane.org/gmane.emacs.devel/83316 As you can see grep source code emits highlighting sequences only when TERM is not "dumb". So we set it to "emacs-grep". if(isatty(STDOUT_FILENO) && getenv("TERM") && strcmp(getenv("TERM"), "dumb")) color_option = 1; else color_option = 0; Could you please post the value of `process-connection-type'. Also please eval `M-x grep RET set RET' and show the value of the environment variable `TERM'. If it is "emacs-grep" then I'm afraid it is the line "isatty(STDOUT_FILENO)" in grep source code that fails in your environment. -- Juri Linkov http://www.jurta.org/emacs/