[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8684: 24.0.50; Grep mode trips up on Entering directory lines
From: |
Stefan Monnier |
Subject: |
bug#8684: 24.0.50; Grep mode trips up on Entering directory lines |
Date: |
Tue, 17 May 2011 15:15:25 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 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)