GNU bug report logs -
#53220
27.2; scroll-up moves point +1 if text has display property
Previous Next
Reported by: awrhygty <at> outlook.com
Date: Wed, 12 Jan 2022 18:09:02 UTC
Severity: normal
Tags: confirmed, wontfix
Found in versions 27.2, 29.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
tags 53220 wontfix
close 53220
thanks
> From: awrhygty <at> 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.
This bug report was last modified 3 years and 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.