[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5620: 23.1.92.1; next-error no longer takes into account buffer modi
From: |
Paul Pogonyshev |
Subject: |
bug#5620: 23.1.92.1; next-error no longer takes into account buffer modifications |
Date: |
Mon, 22 Feb 2010 17:48:38 +0200 |
User-agent: |
KMail/1.12.4 (Linux/2.6.29-2-686; KDE/4.3.4; i686; ; ) |
When hitting C-x ` (next-error) the point is positioned correctly only
if the buffer is not modified. If number of lines before the target
position is changed, point is positioned wrongly.
For instance, say 'test.txt' contains these lines:
foo
bar
baz
I then run 'grep' from Emacs like this:
grep -nH -e ba test.txt
Results:
-*- mode: grep; default-directory: "/home/paul/test/" -*-
Grep started at Mon Feb 22 17:41:30
grep -nH -e ba test.txt
test.txt:2:bar
test.txt:3:baz
Grep finished (matches found) at Mon Feb 22 17:41:30
Then I insert a few more lines in 'test.txt' buffer:
foo
bar
spam
ham
baz
Now if I hit C-x ` the first time point is moved to line 2 --
correctly. The second time, however, the point is moved to line 3,
i.e. the original location of 'baz'. However, 'baz' is now at line 5
and that's where I expect C-x ` to move point to. Note that at no
point I closed the buffer, so Emacs should be able to track changes
between 'grep' run and current buffer/file contents.
This is especially unhelpful with compilation errors. Often, you'd go
through errors fixing them in process, sometimes adding or removing
lines. However, any such change makes finding subsequent errors
difficult as C-x ` will no longer locate errors correctly.
I believe this used to work fine in past.
Paul
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#5620: 23.1.92.1; next-error no longer takes into account buffer modifications,
Paul Pogonyshev <=