GNU bug report logs - #8684
24.0.50; Grep mode trips up on Entering directory lines

Previous Next

Package: emacs;

Reported by: Brent Goodrick <bgoodr <at> gmail.com>

Date: Tue, 17 May 2011 15:53:02 UTC

Severity: normal

Found in version 24.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Brent Goodrick <bgoodr <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 8684 <at> debbugs.gnu.org
Subject: bug#8684: 24.0.50; Grep mode trips up on Entering directory lines
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
<monnier <at> iro.umontreal.ca> 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)
>
>




This bug report was last modified 14 years and 7 days ago.

Previous Next


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