From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66167: 29.1; wrap-prefix text property with :align-to space keyword broken Date: Sat, 23 Sep 2023 12:38:34 +0300 Message-ID: <83v8c144bp.fsf@gnu.org> References: <2f75e7cbd1ae206a4e3cfbd69d5da87e@purelymail.com> <831qep5lja.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66167@debbugs.gnu.org To: "Paul W. Rankin" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 23 11:39:14 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qjz6Y-0000sO-5v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Sep 2023 11:39:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjz6C-0001dz-EJ; Sat, 23 Sep 2023 05:38:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjz6B-0001dc-FB for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 05:38:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjz6B-0008RO-71 for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 05:38:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjz6M-0002NF-9t for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 05:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2023 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66167 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 66167-submit@debbugs.gnu.org id=B66167.16954619219093 (code B ref 66167); Sat, 23 Sep 2023 09:39:02 +0000 Original-Received: (at 66167) by debbugs.gnu.org; 23 Sep 2023 09:38:41 +0000 Original-Received: from localhost ([127.0.0.1]:37818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjz60-0002Ma-Vn for submit@debbugs.gnu.org; Sat, 23 Sep 2023 05:38:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjz5y-0002MN-Mv for 66167@debbugs.gnu.org; Sat, 23 Sep 2023 05:38:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjz5h-0008Ot-Rx; Sat, 23 Sep 2023 05:38:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0HK5UED/Rx9nr3N+I2e0WyL3YIA1JPv0ozkBEZko1c0=; b=UltVCC9tLBH6 F67nPgZmheDV1e+gGSRcWHvmELE4pRzJWgtoLHpVgtaYTvTawiDhWsBLzV3fWLEo9mMJnJBzCf1wc Vf7ix34u9Y8XheJlBHIbRweI0CR1bM1L6oh/WtOD+BWW498NnJlM3nisg8SuMl9Vf16PYqhI+FFvz De4Govjn8CxCAwDzu5NRXVPlgGHs0jisp9RVnHr8EuWRhXXuSiPoMI+m2LNkMBeJeGMZCkHfKEToS yPhEl5XSOSuMZ2wsAFlTobq+0ewZmeZ1WyCIBi4T5H0KPYM96U4gHQclG6nhaPIvuYIJJnEzpJjmQ IscWHJ35RE2nwVsAlwe7Dg==; In-Reply-To: (hello@paulwrankin.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271152 Archived-At: > Date: Sat, 23 Sep 2023 19:24:25 +1000 > From: "Paul W. Rankin" > Cc: 66167@debbugs.gnu.org > > On 2023-09-23 18:41, Eli Zaretskii wrote: > >> 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?). > > You're suggesting that the wrap-prefix should not be applied to wrapped > lines..?? It _is_ applied. Try giving wrap-prefix a value that is a string, and you will see that it is applied. The problem is not with wrap-prefix, the problem is with the (space :align-to 10) form, and specifically with the value 10. The value 10 is too small for wrapped lines (in most cases).