GNU bug report logs -
#24074
25.1.50; c-before-after-change-digit-quote: Invalid search bound (wrong side of point)
Previous Next
Reported by: Óscar Fuentes <ofv <at> wanadoo.es>
Date: Tue, 26 Jul 2016 15:51:02 UTC
Severity: normal
Merged with 24094
Found in version 25.1.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
Message #19 received at 24074 <at> debbugs.gnu.org (full text, mbox):
On 29 July 2016 at 19:29, Óscar Fuentes <ofv <at> wanadoo.es> wrote:
> Alan Mackenzie <acm <at> muc.de> writes:
>
>> Could you be a bit more descriptive about the "chunks" that are missing,
>> please? Are we talking about lots of isolated 2-character chunks, or
>> just one or two larger chunks, or what? Are the chunks at the end of a
>> buffer, or in the "middle" of it?
>
> It just happened again here. The missing chunk is everything below the
> first 9 lines (the file has ~400 lines). Those preserved lines are
> simply #include's. The final preserved line was truncated to
>
> #include <
>
> The original was
>
> #include <string.h>
>
> Prior the revert, the point was much below that 9nth line.
>
> The reported failure is not always the same. In this case was:
>
> c-determine-+ve-limit: Args out of range: #<buffer rawmem.cpp>, -7246, -6746
>
>
> Or course, now that I'm trying to cause the error for obtaining an stack
> trace, it doesn't happen :-( As mentioned on my bug report, it seems
> that the problem is triggered when the point falls on certain places
> on the reverted file's contents, but that's just my guess.
Here is a recipe.
Prepare a file "test0.cpp" as follows: (<<END)
int main () {
int a = 0;
int b = 1;
int c = 2;
int d = 3;
}
END
In a shell: cp test0.cpp test.cpp
In Emacs: visit test.cpp, transpose "line b" and "line c", save the
buffer, and put point between the transposed lines (i.e., at the
beginning of "line b").
In the shell: cp test0.cpp test.cpp
In Emacs: revisit test.cpp (C-x f M-n RET).
I hope that helps.
This bug report was last modified 8 years and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.