Subject: Re: bug#8684: 24.0.50; Grep mode trips up on Entering directory lines

From: Brent Goodrick <[email-masked]>
Date: Tue, 17 May 2011 12:33:47 -0700

Hi Stefan,

Yes, that does fix the issue and seems like an acceptable fix IMO.

Thanks,
bg

On Tue, May 17, 2011 at 11:15 AM, Stefan Monnier
<[email-masked]> wrote:
>> When you are searching build logs for matches using M-x grep, and the
>> resulting grep matches lines of the form:
>
>>   Entering directory `/some/bogus/directory/here'
>
>> And if you then click on lines _after_ the line such as the "Entering
>> directory" line, then you get a prompt asking about "Find this grep
>> hit in" which is not correct grep mode like it probably is correct in
>> compile mode.
>
> Does the patch below help?
>
>
>        Stefan
>
>
> === modified file 'lisp/progmodes/grep.el'
> --- lisp/progmodes/grep.el      2011-05-12 15:10:17 +0000
> +++ lisp/progmodes/grep.el      2011-05-17 18:07:41 +0000
> @@ -698,6 +698,7 @@
>        grep-hit-face)
>   (set (make-local-variable 'compilation-error-regexp-alist)
>        grep-regexp-alist)
> +  (set (make-local-variable 'compilation-directory-matcher) nil)
>   (set (make-local-variable 'compilation-process-setup-function)
>        'grep-process-setup)
>   (set (make-local-variable 'compilation-disable-input) t)
>
>