From: Eli Zaretskii <eliz@gnu.org>
To: Ian Dunn <dunni@gnu.org>
Cc: 22098@debbugs.gnu.org
Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump
Date: Sun, 06 Dec 2015 19:34:09 +0200 [thread overview]
Message-ID: <83poyjeb1q.fsf@gnu.org> (raw)
In-Reply-To: <87fuzg87s6.fsf@gnu.org>
> From: Ian Dunn <dunni@gnu.org>
> Cc: 22098@debbugs.gnu.org
> Date: Sun, 06 Dec 2015 00:28:57 -0500
>
> M-g M-g 19
> C-p
> C-M-: (add-text-properties (point) (1+ (point)) '(invisible t))
> C-n
> C-l C-l
> C-p
Thanks. With this recipe, I do see some unusual behavior of the
cursor, but not the one you described. On my system, the cursor stays
at its position before the final C-p, then, a fraction of second
later, jumps to its correct position. It doesn't stay at the top line
of the window.
> > Also, is it really necessary to invoke the commands via M-x, or do you
> > see the same problem when you use C-n, C-l, and C-p instead?
>
> I try not to assume that everyone has the same key-bindings as me, so I
> thought it might help to use the actual command names.
Yes, but you should be aware that this might make a difference for
redisplay problems: typing M-x causes a mildly thorough redisplay, so
it might obscure some problems and cause some others. That's why I
asked.
> I forgot to mention in my original report that this seems similar to
> bug #17047
> (https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-03/msg00804.html).
> It looks like the old bug addressed the problem with forward-char
> and backward-char. I've checked with next-line, but I've never seen
> it happen before. I only ever see this problem with previous-line.
No, that's a different problem. The problem discussed here happens
because point moves outside the window to the place that's invisible.
By contrast, bug #17047 was about a situation where the goal position
was visible in the window at all times.
Anyway, I fixed the problem I see here in commit cca5629 on the
emacs-25 branch. Please see if your problem is solved by that change.
Thanks.
next prev parent reply other threads:[~2015-12-06 17:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-05 20:47 bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump dunni
2015-12-06 3:42 ` Eli Zaretskii
2015-12-06 5:28 ` Ian Dunn
2015-12-06 17:34 ` Eli Zaretskii [this message]
2015-12-09 1:33 ` Ian Dunn
[not found] ` <83fuzbbimh.fsf@gnu.org>
2015-12-10 1:13 ` Ian Dunn
2015-12-10 16:40 ` Eli Zaretskii
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=83poyjeb1q.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=22098@debbugs.gnu.org \
--cc=dunni@gnu.org \
/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).