From: Eli Zaretskii <eliz@gnu.org>
To: thierry.volpiatto@gmail.com
Cc: 15973@debbugs.gnu.org
Subject: bug#15973: 24.3.50; Cursor switching brutally several lines at a time with next/previous-line
Date: Tue, 26 Nov 2013 21:08:09 +0200 [thread overview]
Message-ID: <83li0b9e1y.fsf@gnu.org> (raw)
In-Reply-To: <83siuj9jtq.fsf@gnu.org>
Can you try the patch below?
(FWIW, I couldn't reproduce the problem using something similar to
your recipe, but with bzr instead of git.)
=== modified file 'src/fileio.c'
--- src/fileio.c 2013-11-23 11:32:05 +0000
+++ src/fileio.c 2013-11-26 19:04:33 +0000
@@ -3858,6 +3858,9 @@ by calling `format-decode', which see.
beg_offset += same_at_start - BEGV_BYTE;
end_offset -= ZV_BYTE - same_at_end;
+ invalidate_buffer_caches (current_buffer,
+ BYTE_TO_CHAR (same_at_start),
+ BYTE_TO_CHAR (same_at_end));
del_range_byte (same_at_start, same_at_end, 0);
/* Insert from the file at the proper position. */
temp = BYTE_TO_CHAR (same_at_start);
@@ -3968,7 +3971,12 @@ by calling `format-decode', which see.
{
/* Truncate the buffer to the size of the file. */
if (same_at_start != same_at_end)
- del_range_byte (same_at_start, same_at_end, 0);
+ {
+ invalidate_buffer_caches (current_buffer,
+ BYTE_TO_CHAR (same_at_start),
+ BYTE_TO_CHAR (same_at_end));
+ del_range_byte (same_at_start, same_at_end, 0);
+ }
inserted = 0;
unbind_to (this_count, Qnil);
@@ -4016,6 +4024,9 @@ by calling `format-decode', which see.
if (same_at_end != same_at_start)
{
+ invalidate_buffer_caches (current_buffer,
+ BYTE_TO_CHAR (same_at_start),
+ BYTE_TO_CHAR (same_at_end));
del_range_byte (same_at_start, same_at_end, 0);
temp = GPT;
eassert (same_at_start == GPT_BYTE);
next prev parent reply other threads:[~2013-11-26 19:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 14:24 bug#15973: 24.3.50; Cursor switching brutally several lines at a time with next/previous-line Thierry Volpiatto
2013-11-25 17:22 ` Eli Zaretskii
2013-11-26 8:27 ` Thierry Volpiatto
2013-11-26 17:03 ` Eli Zaretskii
2013-11-26 19:08 ` Eli Zaretskii [this message]
2013-11-27 6:04 ` Thierry Volpiatto
2013-11-27 16:10 ` Eli Zaretskii
2013-11-26 19:10 ` Thierry Volpiatto
2013-11-26 10:07 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83li0b9e1y.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=15973@debbugs.gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).