Subject: Re: bug#4359: 23.1.50; ^G in M-x grep mode with git grep

From: Sven Joachim <[email-masked]>
Date: Sun, 06 Sep 2009 19:37:20 +0200

On 2009-09-06 19:05 +0200, Ulrich Neumerkel wrote:

> Andreas Schwab <[email-masked]>
>>> git grep -n -e git.describe
>>> WARNING: terminal is not fully functional
>>> ^Glisp/org/org.el:112:      (if (eql 0 (shell-command "git describe --abbrev=4 HEAD"))
>>
>>The WARNING line and the ^G is written by less.  You can work around
>>that by disabling the pager or setting it to cat.
>
> This would be an ad-hoc workaround that does not work for the next
> tool.  What is needed is that the command is called such that git or
> the pager doesn't think they are in an interactive environment.

I set the pager in my .emacs:

(setenv "PAGER" "/bin/cat")

Works fine in all programs.

Sven