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 11:41:29 +0300 Message-ID: <831qep5lja.fsf@gnu.org> References: <2f75e7cbd1ae206a4e3cfbd69d5da87e@purelymail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13562"; 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 10:42:04 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 1qjyDD-0003I9-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Sep 2023 10:42:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjyD2-000126-Rb; Sat, 23 Sep 2023 04:41:53 -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 1qjyD1-00011o-R2 for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 04:41: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 1qjyD1-0006nZ-D8 for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 04:41:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjyDC-0006X2-FG for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 04:42: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 08:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66167 X-GNU-PR-Package: emacs Original-Received: via spool by 66167-submit@debbugs.gnu.org id=B66167.169545849625066 (code B ref 66167); Sat, 23 Sep 2023 08:42:02 +0000 Original-Received: (at 66167) by debbugs.gnu.org; 23 Sep 2023 08:41:36 +0000 Original-Received: from localhost ([127.0.0.1]:37742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjyCl-0006WD-Ma for submit@debbugs.gnu.org; Sat, 23 Sep 2023 04:41:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjyCj-0006Vw-OA; Sat, 23 Sep 2023 04:41:34 -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 1qjyCS-0006kZ-Rx; Sat, 23 Sep 2023 04:41:17 -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=+JQ5ntDEWAZ3a4N6vUHeqAnQZP/YMF/sJGlVl7Bh73o=; b=YCQmR2BlUe6V mW+o752dW0QZ4RiaiJKCkIL2o/TUmtjP49GkEHFZObGLbqL1LaKn8DLr0iXUE8zJ24qFtdYA/YEhQ X6mGPBI63+s+bvVewqddFncqZ0dbrnZx0QCI88mrxfQjiJNTlwKFbM32JUUPFXRRca1jEwWm/pgye yukXCE+ONZcBf6UVo0tBor18gW0IRrXHL4xeIBU1UWYoi4zCnPJVHaJQOK2R/xmp/Zx+cjtEpKEKL s63JqctLIRSrcFfKgQJI4rXRX1viUhgeGrDcWQhA5ccp7zqVY1fpdDNNxgldKQyIoJWSFBekwRx0Y eSCCz0t+R1nU2DpVEKwDhw==; In-Reply-To: <2f75e7cbd1ae206a4e3cfbd69d5da87e@purelymail.com> (bug-gnu-emacs@gnu.org) 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:271145 Archived-At: 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" > > 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?).