GNU bug report logs - #6535
24.0.50; grep seems not to work

Previous Next

Package: emacs;

Reported by: john ffitch <jpff <at> codemist.co.uk>

Date: Tue, 29 Jun 2010 06:38:02 UTC

Severity: normal

Tags: notabug

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 6535 <at> debbugs.gnu.org (full text, mbox):

From: root <root <at> codemist.co.uk>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 6535 <at> debbugs.gnu.org, john ffitch <jpff <at> codemist.co.uk>
Subject: Re: bug#6535: 24.0.50; grep seems not to work
Date: Tue, 29 Jun 2010 12:03:11 +0100 (BST)
The real problem is that in lisp/grep.el there is
(defun grep-process-setup ()
...
    ;; Any TERM except "dumb" allows GNU grep to use `--color=auto'
    (setenv "TERM" "emacs-grep")
    (setenv "GREP_OPTIONS"
            (concat (getenv "GREP_OPTIONS")
                    " --color=" (if (eq grep-highlight-matches 'always)
                                    "always" "auto")))
...

but there is no terminal type emacs-grep so the process call fails to 
start before it gets to call /bin/grep or set TERM=vt100

So, what is this emacs-grep terminal type and how did it change from when 
it worked.

==John ff






This bug report was last modified 13 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.