unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Sebastian Wålinder" <s.walinder@gmail.com>
Cc: 66942@debbugs.gnu.org
Subject: bug#66942: move-to-column behavior when newlines have a display property
Date: Sun, 05 Nov 2023 07:59:45 +0200	[thread overview]
Message-ID: <83cywo4u5q.fsf@gnu.org> (raw)
In-Reply-To: <87zfztkvyq.fsf@nixos.mail-host-address-is-not-set> (message from Sebastian Wålinder on Sun, 05 Nov 2023 09:14:05 +1100)

unarchive 64988
forcemerge 66942 64988
thanks

> From: Sebastian Wålinder <s.walinder@gmail.com>
> Date: Sun, 05 Nov 2023 09:14:05 +1100
> 
> There was a bug that I encountered in a downstream Emacs package relating to setting line-move-visual to nil and running line-move when the package has created overlays on newlines.
> 
> The maintainer of the package has tracked down the bug to some incorrect behavior in the function move-to-column when overlays are present on newlines.
> 
> Here's a link to the issue that describes the issue with move-to-column:
> https://github.com/jdtsmith/indent-bars/issues/22
> 
> Thoughts?

It's the intended behavior.  It is the best Emacs can do given the
limitations posed by such overlay strings, see the detailed
explanation in bug#64988.

My best recommendation is not to use overlay strings with embedded
newlines, if accurate movement by columns is important.





  reply	other threads:[~2023-11-05  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-04 22:14 bug#66942: move-to-column behavior when newlines have a display property Sebastian Wålinder
2023-11-05  5:59 ` Eli Zaretskii [this message]
2023-11-05 17:18 ` JD Smith
2023-11-05 17:47   ` 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=83cywo4u5q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=66942@debbugs.gnu.org \
    --cc=s.walinder@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).