[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6535: 24.0.50; grep seems not to work

From: Jan Djärv
Subject: bug#6535: 24.0.50; grep seems not to work
Date: Tue, 29 Jun 2010 14:24:54 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv: Gecko/20100608 Thunderbird/3.1

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

emacs-grep was introduced in late 2007:

revno: 82277
committer: Juri Linkov <address@hidden>
timestamp: Fri 2007-11-23 00:32:05 +0000
  (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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]