all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Dunn <dunni@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22098@debbugs.gnu.org
Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump
Date: Tue, 08 Dec 2015 20:33:39 -0500	[thread overview]
Message-ID: <87wpsos8wc.fsf@gnu.org> (raw)
In-Reply-To: <83poyjeb1q.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Dec 2015 19:34:09 +0200")

[-- Attachment #1: Type: text/plain, Size: 2572 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> 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 did not know that.  Thanks for the tip.

> 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.

Thanks once again for the quick response, and my apologies for my
sluggish response.

That fixed the problem in that sample I gave to you, but I noticed a
similar problem that I just figured out how to replicate:

  emacs -Q output.txt
  visual-line-mode
  global-hl-line-mode
  M-g M-g 19
  C-p
  C-M-: (add-text-properties (point) (1+ (point)) '(invisible t))
  C-p
  C-l C-l
  C-n C-n
  C-p

What I see happen is point jump to exactly half-way down the window.
This only seems to happen when the invisible text is on the second
visual line of the window, but the start of the line isn't the first.

To demonstrate this, here is what I see when I encounter the bug:

words are formatted and printed--emacs outshines all other editing software in approximately the same
way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes
everything else vanish.

I make the 'w' in "way" invisible (since making the 'e' in "everything"
invisible causes that word to jump to the previous visual line), and
re-position the window such that "words" is the first visible word in
the window (So those three lines are the first three visual lines of the
window).  Then, I move point down two visual lines, and then try to move
it back up so it is over the word "ay" (way with an invisible "w").
When I do, the cursor (and I assume point) immediately jumps to one line
above the middle of the window.  I verified this last bit by moving the
cursor in an adjacent window to the exact center, and comparing.  The
cursor in the first window appears to be exactly one line above center.

Also, it only happens when global-hl-line-mode is also active.

If the involvement of global-hl-line-mode in this constitutes a separate
bug, then just let me know so I can file another report.

I updated output.txt with with additional (actual) text, so to verify
that we are in fact using the same file, I've attached it again.

Once again, thank you for your help.

Ian Dunn


[-- Attachment #2: output.txt --]
[-- Type: text/plain, Size: 479 bytes --]

Insert a bunch of text right here







a bunch more right here


maybe some here





  If you are a professional writer--i.e., if someone else is getting paid to worry about how your words are formatted and printed--emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish.


More text here





More text here





Some text here for good measure

  reply	other threads:[~2015-12-09  1:33 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
2015-12-09  1:33       ` Ian Dunn [this message]
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpsos8wc.fsf@gnu.org \
    --to=dunni@gnu.org \
    --cc=22098@debbugs.gnu.org \
    --cc=eliz@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.