From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 8155@debbugs.gnu.org, Yuan Fu <casouri@gmail.com>, n.goaziou@gmail.com
Subject: bug#8155: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property
Date: Mon, 07 Sep 2020 13:58:36 +0200 [thread overview]
Message-ID: <871rjd4x3n.fsf@gmx.net> (raw)
In-Reply-To: <83pn73ui00.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Sep 2020 16:06:39 +0300")
On Thu, 03 Sep 2020 16:06:39 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Stephen Berman <stephen.berman@gmx.net>
>> Date: Sun, 30 Aug 2020 23:39:07 +0200
>> Cc: 8155@debbugs.gnu.org
>>
>> On Wed, 02 Mar 2011 16:41:40 +0100 Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>>
>> > From `emacs -Q', C-x b whatever to open a new buffer. Then M-x
>> > visual-line-mode. Now fill a bit more than a screenfull of text without
>> > inserting a newline. Eventually use (put-text-property 1 (point-max)
>> > 'wrap-prefix " ").
>> >
>> > Now, going from (point-min), use C-n to move down. Near the end of that
>> > huge paragraph, C-n will not keep a constant column. In the same area,
>> > C-e and C-a will change line. C-p will go through the same path as C-n,
>> > thus not keeping the first column as well.
>>
>> I can reproduce this in GNU/Linux on current master (at commit 0bbc84630).
>
> I could not. Maybe the recipe needs to be more specific, e.g. to
> specify the text to be inserted.
I guess I was mistaken in thinking what I saw was the same thing Nicolas
described: in trying to reproduce it again I find the column changing
already only a few lines down from the begining (which I assume is due
to the new bug you fixed), not just near the end of the paragraph.
>> - The erratic cursor movement also happens when visual-line-mode is
>> enabled _without_ adding the wrap-prefix property, and with much less
>> than a screenful of text:
>
> This I _could_ reproduce, but only on master. It was introduced by
> the changes that added support for word-wrap-by-category, which had a
> subtle logic error. So this bug is very recent, and almost certainly
> has nothing to do with the one discussed here from the beginning.
> That original bug was either solved long ago, or rears its ugly head
> only in some very subtle situations, which would explain why I cannot
> reproduce it.
Indeed, I had neglected to check with Emacs 27, but now did that and do
not see the problem there.
>> I have also observed that the positions after C-n as reported above
>> may be differen when other commands intervenes (already noted with C-a
>> and C-e, but also e.g. sometimes 'M-: (point)').
>>
>> - Using the mouse is also effected by visual-line-mode:
>
> All of the problems you describe are due to a single incorrect 'if'
> clause deep in the bowels of the display code. It should be fixed
> now.
Indeed, after rebuilding with your change, I confirm that that problems
I described are gone. Thanks! (And I far as I'm concerned this bug can
be closed as fixed.)
Steve Berman
next prev parent reply other threads:[~2020-09-07 11:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 15:41 bug#8155: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property Nicolas Goaziou
2020-08-30 21:39 ` Stephen Berman
2020-09-03 13:06 ` Eli Zaretskii
2020-09-07 11:58 ` Stephen Berman [this message]
2020-09-07 14:36 ` 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=871rjd4x3n.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=8155@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=eliz@gnu.org \
--cc=n.goaziou@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).