GNU bug report logs -
#9679
24.0.90; After rgrep, next-error goes to the wrong line
Previous Next
Reported by: Ari Roponen <ari.roponen <at> gmail.com>
Date: Thu, 6 Oct 2011 06:15:02 UTC
Severity: important
Found in version 24.0.90
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 9679 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> jurta.org> writes:
> I don't understand how `t' is possible. It looks like
> `compilation-next-error-function' is not in `grep-mode' at that time.
>
> Could you please add the following `message' to `compilation-next-error-function':
>
> (defun compilation-next-error-function (n &optional reset)
> "Advance to the next error message and visit the file where the error was.
> This is the value of `next-error-function' in Compilation buffers."
> (interactive "p")
> (when reset
> (setq compilation-current-error nil))
> (message "mode: %S, buffer: %S" major-mode (current-buffer))
> ...
>
> I get the following output:
>
> mode: grep-mode, buffer: #<buffer *grep*>
> col: 13, screen nil
> col: 7, screen nil
> col: 13, screen nil
> col: 7, screen nil
> mode: grep-mode, buffer: #<buffer *grep*>
Grep finished (matches found)
mode: grep-mode, buffer: #<buffer *grep*>
col: 13, screen nil
col: 7, screen nil
col: 13, screen t
col: 7, screen t
mode: grep-mode, buffer: #<buffer *grep*>
--
Ari Roponen
This bug report was last modified 13 years and 9 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.