GNU bug report logs -
#10707
24.0.93; next-error jumps to wrong location for rgrep buffers
Previous Next
Reported by: Helmut Eller <eller.helmut <at> gmail.com>
Date: Fri, 3 Feb 2012 09:36:02 UTC
Severity: normal
Tags: unreproducible
Found in version 24.0.93
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10707 in the body.
You can then email your comments to 10707 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10707
; Package
emacs
.
(Fri, 03 Feb 2012 09:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 03 Feb 2012 09:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
1. create a file /tmp/test.txt with this text attach below.
2. execute rgrep: (rgrep "struct" "test.txt" "/tmp/")
3. M-x next-error jumps to the line with "data structures". That's OK.
4. M-x next-error a second time jumps to the line with "STRING_MARKED_P"
which is wrong.
Here the file test.txt:
--- start ---
/* This file is part of the core Lisp implementation, and thus must
deal with the real data structures. If the Lisp implementation is
replaced, this file likely will not be used. */
#include "termhooks.h" /* For struct terminal. */
#define MARK_STRING(S) ((S)->size |= ARRAY_MARK_FLAG)
#define UNMARK_STRING(S) ((S)->size &= ~ARRAY_MARK_FLAG)
#define STRING_MARKED_P(S) (((S)->size & ARRAY_MARK_FLAG) != 0)
#define VECTOR_MARK(V) ((V)->header.size |= ARRAY_MARK_FLAG)
#define VECTOR_UNMARK(V) ((V)->header.size &= ~ARRAY_MARK_FLAG)
#define VECTOR_MARKED_P(V) (((V)->header.size & ARRAY_MARK_FLAG) != 0)
--- end ---
The output in my *grep* buffer looks so
-*- mode: grep; default-directory: "/tmp/" -*-
Grep started at Fri Feb 3 10:29:04
find . -type d \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.o -o -name \*\~ -o -name \*.bin -o -name \*.lbin -o -name \*.so -o -name \*.a -o -name \*.ln -o -name \*.blg -o -name \*.bbl -o -name \*.elc -o -name \*.lof -o -name \*.glo -o -name \*.idx -o -name \*.lot -o -name \*.fmt -o -name \*.tfm -o -name \*.class -o -name \*.fas -o -name \*.lib -o -name \*.mem -o -name \*.x86f -o -name \*.sparcf -o -name \*.dfsl -o -name \*.pfsl -o -name \*.d64fsl -o -name \*.p64fsl -o -name \*.lx64fsl -o -name \*.lx32fsl -o -name \*.dx64fsl -o -name \*.dx32fsl -o -name \*.fx64fsl -o -name \*.fx32fsl -o -name \*.sx64fsl -o -name \*.sx32fsl -o -name \*.wx64fsl -o -name \*.wx32fsl -o -name \*.fasl -o -name \*.ufsl -o -name \*.fsl -o -name \*.dxl -o -name \*.lo -o -name \*.la -o -name \*.gmo -o -name \*.mo -o -name \*.toc -o -name \*.aux -o -name \*.cp -o -name \*.fn -o -name \*.ky -o -name \*.pg -o -name \*.tp -o -name \*.vr -o -name \*.cps -o -name \*.fns -o -name \*.kys -o -name \*.pgs -o -name \*.tps -o -name \*.vrs -o -name \*.pyc -o -name \*.pyo \) -prune -o -type f \( -name test.txt \) -exec grep -i -nH -e struct {} +
./test.txt:3: deal with the real data structures. If the Lisp implementation is
./test.txt:6:#include "termhooks.h" /* For struct terminal. */
Grep finished (matches found) at Fri Feb 3 10:29:04
In GNU Emacs 24.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
of 2012-01-30 on ix
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Configured using:
`configure '--with-gif=no''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10707
; Package
emacs
.
(Fri, 03 Feb 2012 13:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 10707 <at> debbugs.gnu.org (full text, mbox):
Helmut Eller <eller.helmut <at> gmail.com> writes:
> Here the file test.txt:
>
> --- start ---
> /* This file is part of the core Lisp implementation, and thus must
> deal with the real data structures. If the Lisp implementation is
> replaced, this file likely will not be used. */
>
> #include "termhooks.h" /* For struct terminal. */
> #define MARK_STRING(S) ((S)->size |= ARRAY_MARK_FLAG)
> #define UNMARK_STRING(S) ((S)->size &= ~ARRAY_MARK_FLAG)
> #define STRING_MARKED_P(S) (((S)->size & ARRAY_MARK_FLAG) != 0)
>
> #define VECTOR_MARK(V) ((V)->header.size |= ARRAY_MARK_FLAG)
> #define VECTOR_UNMARK(V) ((V)->header.size &= ~ARRAY_MARK_FLAG)
> #define VECTOR_MARKED_P(V) (((V)->header.size & ARRAY_MARK_FLAG) != 0)
> --- end ---
>
> The output in my *grep* buffer looks so
>
> -*- mode: grep; default-directory: "/tmp/" -*-
> Grep started at Fri Feb 3 10:29:04
>
> find . -type d \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.o -o -name \*\~ -o -name \*.bin -o -name \*.lbin -o -name \*.so -o -name \*.a -o -name \*.ln -o -name \*.blg -o -name \*.bbl -o -name \*.elc -o -name \*.lof -o -name \*.glo -o -name \*.idx -o -name \*.lot -o -name \*.fmt -o -name \*.tfm -o -name \*.class -o -name \*.fas -o -name \*.lib -o -name \*.mem -o -name \*.x86f -o -name \*.sparcf -o -name \*.dfsl -o -name \*.pfsl -o -name \*.d64fsl -o -name \*.p64fsl -o -name \*.lx64fsl -o -name \*.lx32fsl -o -name \*.dx64fsl -o -name \*.dx32fsl -o -name \*.fx64fsl -o -name \*.fx32fsl -o -name \*.sx64fsl -o -name \*.sx32fsl -o -name \*.wx64fsl -o -name \*.wx32fsl -o -name \*.fasl -o -name \*.ufsl -o -name \*.fsl -o -name \*.dxl -o -name \*.lo -o -name \*.la -o -name \*.gmo -o -name \*.mo -o -name \*.toc -o -name \*.aux -o -name \*.cp -o -name \*.fn -o -name \*.ky -o -name \*.pg -o -name \*.tp -o -name \*.vr -o -name \*.cps -o -name \*.fns -o -name \*.kys -o -name \*.pgs -o -name \*.tps -o -name \*.vrs -o -name \*.pyc -o -name \*.pyo \) -prune -o -type f \( -name test.txt \) -exec grep -i -nH -e struct {} +
> ./test.txt:3: deal with the real data structures. If the Lisp implementation is
Why line 3? The text is on line 2.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10707
; Package
emacs
.
(Fri, 03 Feb 2012 14:27:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 10707 <at> debbugs.gnu.org (full text, mbox):
* Andreas Schwab [2012-02-03 13:08] writes:
> Helmut Eller <eller.helmut <at> gmail.com> writes:
>
>> Here the file test.txt:
>>
>> --- start ---
>> /* This file is part of the core Lisp implementation, and thus must
>> deal with the real data structures. If the Lisp implementation is
>> replaced, this file likely will not be used. */
>>
>> #include "termhooks.h" /* For struct terminal. */
>> #define MARK_STRING(S) ((S)->size |= ARRAY_MARK_FLAG)
>> #define UNMARK_STRING(S) ((S)->size &= ~ARRAY_MARK_FLAG)
>> #define STRING_MARKED_P(S) (((S)->size & ARRAY_MARK_FLAG) != 0)
>>
>> #define VECTOR_MARK(V) ((V)->header.size |= ARRAY_MARK_FLAG)
>> #define VECTOR_UNMARK(V) ((V)->header.size &= ~ARRAY_MARK_FLAG)
>> #define VECTOR_MARKED_P(V) (((V)->header.size & ARRAY_MARK_FLAG) != 0)
>> --- end ---
>>
>> The output in my *grep* buffer looks so
>>
>> -*- mode: grep; default-directory: "/tmp/" -*-
>> Grep started at Fri Feb 3 10:29:04
>>
>> find . -type d \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o
>> -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o
>> -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path
>> \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.o -o -name \*\~
>> -o -name \*.bin -o -name \*.lbin -o -name \*.so -o -name \*.a -o
>> -name \*.ln -o -name \*.blg -o -name \*.bbl -o -name \*.elc -o -name
>> \*.lof -o -name \*.glo -o -name \*.idx -o -name \*.lot -o -name
>> \*.fmt -o -name \*.tfm -o -name \*.class -o -name \*.fas -o -name
>> \*.lib -o -name \*.mem -o -name \*.x86f -o -name \*.sparcf -o -name
>> \*.dfsl -o -name \*.pfsl -o -name \*.d64fsl -o -name \*.p64fsl -o
>> -name \*.lx64fsl -o -name \*.lx32fsl -o -name \*.dx64fsl -o -name
>> \*.dx32fsl -o -name \*.fx64fsl -o -name \*.fx32fsl -o -name
>> \*.sx64fsl -o -name \*.sx32fsl -o -name \*.wx64fsl -o -name
>> \*.wx32fsl -o -name \*.fasl -o -name \*.ufsl -o -name \*.fsl -o
>> -name \*.dxl -o -name \*.lo -o -name \*.la -o -name \*.gmo -o -name
>> \*.mo -o -name \*.toc -o -name \*.aux -o -name \*.cp -o -name \*.fn
>> -o -name \*.ky -o -name \*.pg -o -name \*.tp -o -name \*.vr -o -name
>> \*.cps -o -name \*.fns -o -name \*.kys -o -name \*.pgs -o -name
>> \*.tps -o -name \*.vrs -o -name \*.pyc -o -name \*.pyo \) -prune -o
>> -type f \( -name test.txt \) -exec grep -i -nH -e struct {} +
>> ./test.txt:3: deal with the real data structures. If the Lisp
>> implementation is
>
> Why line 3? The text is on line 2.
Probably because I forgot to paste a newline in the first line.
Without the newline in the first line the output is
./test.txt:2: deal with the real data structures. If the Lisp implementation is
./test.txt:5:#include "termhooks.h" /* For struct terminal. */
Still jumping to the with "STRING_MARKED_P" in the step 4 is wrong.
Helmut
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10707
; Package
emacs
.
(Thu, 11 Aug 2016 00:20:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 10707 <at> debbugs.gnu.org (full text, mbox):
tags 10707 unreproducible
quit
Helmut Eller <eller.helmut <at> gmail.com> writes:
> 1. create a file /tmp/test.txt with this text attach below.
>
> 2. execute rgrep: (rgrep "struct" "test.txt" "/tmp/")
I used M-: (progn (grep-compute-defaults) (rgrep "struct" "test.txt" "/tmp/"))
>
> 3. M-x next-error jumps to the line with "data structures". That's OK.
>
> 4. M-x next-error a second time jumps to the line with "STRING_MARKED_P"
> which is wrong.
For all of 23.4, 24.1, and 25.1-rc1 it jumps to the "struct" in "For
struct terminal". Perhaps this was fixed.
Added tag(s) unreproducible.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Thu, 11 Aug 2016 00:20:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10707
; Package
emacs
.
(Sun, 02 Apr 2017 00:34:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 10707 <at> debbugs.gnu.org (full text, mbox):
close 10707
quit
npostavs <at> users.sourceforge.net writes:
>
>> 1. create a file /tmp/test.txt with this text attach below.
>>
>> 2. execute rgrep: (rgrep "struct" "test.txt" "/tmp/")
>
> I used M-: (progn (grep-compute-defaults) (rgrep "struct" "test.txt" "/tmp/"))
>
>>
>> 3. M-x next-error jumps to the line with "data structures". That's OK.
>>
>> 4. M-x next-error a second time jumps to the line with "STRING_MARKED_P"
>> which is wrong.
>
> For all of 23.4, 24.1, and 25.1-rc1 it jumps to the "struct" in "For
> struct terminal". Perhaps this was fixed.
bug closed, send any further explanations to
10707 <at> debbugs.gnu.org and Helmut Eller <eller.helmut <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Sun, 02 Apr 2017 00:34:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 30 Apr 2017 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.