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 #29 received at 6535 <at> debbugs.gnu.org (full text, mbox):

From: 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 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 <juri <at> jurta.org>
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.




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

Previous Next


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