From: Eli Zaretskii <eliz@gnu.org>
To: Yikai Zhao <yikai@z1k.dev>
Cc: 54946@debbugs.gnu.org
Subject: bug#54946: 28.1; next-line skip one line when overlay is added in newline
Date: Fri, 15 Apr 2022 12:08:07 +0300 [thread overview]
Message-ID: <837d7q3ea0.fsf@gnu.org> (raw)
In-Reply-To: <m2k0brgk0h.fsf@z1k.dev> (message from Yikai Zhao on Fri, 15 Apr 2022 10:25:50 +0800)
> From: Yikai Zhao <yikai@z1k.dev>
> Date: Fri, 15 Apr 2022 10:25:50 +0800
>
> I encountered this issue when I'm editing some code using flycheck-mode
> and evil-mode: after flycheck-mode added an error region at the end of
> the line, press <down> on this line should forward two lines instead of
> one.
>
> Here's the recipe to reproduce it using 'emacs -Q':
>
>
> (with-current-buffer (get-buffer-create "test")
> (setq truncate-lines t
> line-move-visual nil)
> (erase-buffer)
> (insert (make-string 1000 ?x) "\nHELLO\nWORLD\n")
> (let ((ov (make-overlay 1001 1002)))
> (overlay-put ov 'before-string
> (propertize "!" 'display '(left-fringe right-arrow error))))
> (beginning-of-buffer)
> (switch-to-buffer (current-buffer)))
>
> After executing the code, press <down>, the cursor would move to line 3;
> but I think the expected behavior is that the cursor would move to line 2.
Thanks. This is a very old bug, and rears its ugly head only of
line-move-visual is disabled.
Should be fixed now on the emacs-28 branch.
next prev parent reply other threads:[~2022-04-15 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-15 2:25 bug#54946: 28.1; next-line skip one line when overlay is added in newline Yikai Zhao
2022-04-15 9:08 ` Eli Zaretskii [this message]
2022-04-16 7:09 ` Yikai Zhao
2022-04-16 7:10 ` Yikai Zhao
2022-04-16 8:09 ` 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=837d7q3ea0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=54946@debbugs.gnu.org \
--cc=yikai@z1k.dev \
/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.