unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Paul W. Rankin" <hello@paulwrankin.com>
Cc: 66167@debbugs.gnu.org
Subject: bug#66167: 29.1; wrap-prefix text property with :align-to space keyword broken
Date: Sat, 23 Sep 2023 11:41:29 +0300	[thread overview]
Message-ID: <831qep5lja.fsf@gnu.org> (raw)
In-Reply-To: <2f75e7cbd1ae206a4e3cfbd69d5da87e@purelymail.com> (bug-gnu-emacs@gnu.org)

tags 66167 notabug wontfix
thanks

> Date: Sat, 23 Sep 2023 18:04:27 +1000
> From:  "Paul W. Rankin" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Description:
> 
> The wrap-prefix text property with :align-to space keyword has been 
> broken. (Regression).
> 
> To reproduce:
> 
> 1. emacs -Q
> 2. in *scratch*, ensure visual-line-mode is enabled
> 3. insert enough text to wrap lines
> 4. M-: (put-text-property (point-min) (point-max) 'wrap-prefix '(space 
> :align-to 10))
> 
> Expected results:
> 
> Wrapped text should align to column 10.
> 
> Actual result:
> 
> Wrapped text does not align. (No effect.)

This is not a bug.  The argument of :align-to specifies a column
number, and the column number does not get reset when the line wraps
or the window is hscrolled.  IOW, the column number is measured from
the beginning of the physical line, not from the beginning of the
screen line.

The previous code handled this incorrectly and inconsistently, and was
fixed in Emacs 29 (or was it 28?).





  reply	other threads:[~2023-09-23  8:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-23  8:04 bug#66167: 29.1; wrap-prefix text property with :align-to space keyword broken Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-23  8:41 ` Eli Zaretskii [this message]
2023-09-23  9:24   ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-23  9:38     ` Eli Zaretskii
2023-09-24  4:56       ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-24  5: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=831qep5lja.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=66167@debbugs.gnu.org \
    --cc=hello@paulwrankin.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).