[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#4359: 23.1.50; ^G in M-x grep mode with git grep
From: |
Dan Nicolaescu |
Subject: |
bug#4359: 23.1.50; ^G in M-x grep mode with git grep |
Date: |
Fri, 01 Jul 2011 12:48:53 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Jan Djärv <jan.h.d@swipnet.se> writes:
>
>> grep --color=always
>
> Hm. But I guess people don't want to have that explicitly on the
> command line they're editing when doing `M-x grep'?
>
> The original problem was that the user had used a command that has
> "less" as part of its pipeline, if running under a PTY. Many other
> commands react to the PTY in different ways (some that we want, like the
> GREP_COLOR thing), and some that we don't want (like running less).
>
> I'm not sure there's a fix here that will satisfy all use cases.
Does setting
GREP_OPTIONS to --color=always
work?