Subject: Re: bug#6535: 24.0.50; grep seems not to work

From: Jan Djärv <[email-masked]>
Date: Tue, 29 Jun 2010 14:24:54 +0200

root skrev 2010-06-29 13.03:
> 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.
>

emacs-grep was introduced in late 2007:

revno: 82277
committer: Juri Linkov <[email-masked]>
timestamp: Fri 2007-11-23 00:32:05 +0000
message:
   (grep-process-setup): Set envvar "TERM" to "emacs-grep".
   Set envvar "GREP_OPTIONS" to "--color=auto" instead of "--color=always".

My guess is that Suse changed if this worked for you on an Emacs newer than 
this change.

	Jan D.