unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: awrhygty@outlook.com
Cc: 53220@debbugs.gnu.org
Subject: bug#53220: 27.2; scroll-up moves point +1 if text has display property
Date: Thu, 13 Jan 2022 14:26:19 +0200	[thread overview]
Message-ID: <83pmov3jpw.fsf@gnu.org> (raw)
In-Reply-To: <TYZPR01MB392047E5A9EF3C4BACB29CB4C3529@TYZPR01MB3920.apcprd01.prod.exchangelabs.com> (awrhygty@outlook.com)

tags 53220 wontfix
close 53220
thanks

> From: awrhygty@outlook.com
> Date: Thu, 13 Jan 2022 03:07:51 +0900
> 
> 
> Evaluate the form below and type 'C-v', the current point moves next to
> the beginning of line.
> Similarly, if the current point is at the window-start and type 'M-v',
> the buffer scrolls down and the point moves next to the original position.
> 
> (let ((buf (generate-new-buffer "tmp"))
>       (line (propertize "A" 'display "B")))
>   (switch-to-buffer buf)
>   (dotimes (i 100)
>     (insert line ?\n))
>   (goto-char (point-min)))

Preserving the column by scrolling commands is tricky in the presence
of display properties.  I fixed the C-v case (at least partially),
because it was a low-hanging fruit.  But the general solution, if it's
at all possible, is too complicated, and I see no reason to jump
through hoops for such obscure use cases.  We try very hard to
preserve the column during C-n/C-p, and that should be enough.

So I'm closing this bug report.





      parent reply	other threads:[~2022-01-13 12:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 18:07 bug#53220: 27.2; scroll-up moves point +1 if text has display property awrhygty
2022-01-13  6:08 ` Lars Ingebrigtsen
2022-01-13 12:26 ` Eli Zaretskii [this message]

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=83pmov3jpw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=53220@debbugs.gnu.org \
    --cc=awrhygty@outlook.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).