From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: recenter and visual-line-mode
Date: Thu, 09 Apr 2015 11:30:52 +0300 [thread overview]
Message-ID: <83bnixg0ub.fsf@gnu.org> (raw)
In-Reply-To: <CAKR7PS9o_FyCQKb8zUhdh_9ztjpkTrQuQUZE7n4r3dfFB7+WeA@mail.gmail.com>
> From: Milan Stanojević <milanst@gmail.com>
> Date: Wed, 8 Apr 2015 15:59:16 -0400
> Cc: help-gnu-emacs@gnu.org
>
> Here is the elisp code illustrating the issue.
Thanks.
For the future, please try to produce test cases that leave the
offending contents on display, instead of doing everything in a
temporary buffer that is killed when the code completes. That's
because one cannot debug display problems without having the stuff
displayed.
> This shows that running (recenter 0) at different points of the same
> screen line leads to different behavior and it seems that the
> difference comes from where the point would be without
> visual-line-mode. I think in all cases the point should be at the top
> of the line, but that is not the case for ABCD.
What was missing from your original report was that the first visual
line must be _shorter_ than what the window can display on a single
screen line. IOW, there should be a whitespace character on which
visual-line-mode can break the line _before_ the last (rightmost)
column in the window. If that whitespace character is exactly at the
last column, the problem doesn't happen (which is what I tried here,
and thus didn't see the problem).
And yes, it's a (very old) bug. Shouldn't be hard to fix, I think.
Thanks.
next prev parent reply other threads:[~2015-04-09 8:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-07 20:14 recenter and visual-line-mode Milan Stanojević
2015-04-08 6:43 ` Eli Zaretskii
2015-04-08 19:59 ` Milan Stanojević
2015-04-08 23:29 ` Milan Stanojević
2015-04-09 8:30 ` Eli Zaretskii [this message]
2015-04-10 10:13 ` Eli Zaretskii
2015-04-10 15:38 ` Milan Stanojević
2015-04-10 17:37 ` 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=83bnixg0ub.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@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.