From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Paul W. Rankin" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66167: 29.1; wrap-prefix text property with :align-to space keyword broken Date: Sat, 23 Sep 2023 19:24:25 +1000 Message-ID: References: <2f75e7cbd1ae206a4e3cfbd69d5da87e@purelymail.com> <831qep5lja.fsf@gnu.org> Reply-To: "Paul W. Rankin" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21503"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Purely Mail via Roundcube/1.6.3 Cc: 66167@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 23 11:26:13 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 1qjytv-0005KC-Tq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Sep 2023 11:26:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjytc-0007Ta-07; Sat, 23 Sep 2023 05:25: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 1qjytb-0007TC-5M for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 05:25: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 1qjyta-0006C1-Ta for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 05:25:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjytl-000231-VB for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Paul W. Rankin" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2023 09:26:01 +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.16954611027782 (code B ref 66167); Sat, 23 Sep 2023 09:26:01 +0000 Original-Received: (at 66167) by debbugs.gnu.org; 23 Sep 2023 09:25:02 +0000 Original-Received: from localhost ([127.0.0.1]:37800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjyso-00021R-CN for submit@debbugs.gnu.org; Sat, 23 Sep 2023 05:25:02 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:49684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjysm-00020t-97 for 66167@debbugs.gnu.org; Sat, 23 Sep 2023 05:25:00 -0400 DKIM-Signature: a=rsa-sha256; b=FdXTYZqU1v0HckstsJeEKTM16niusShaX5A5cfRgvKCZnhfB9PavmHH7/u8x4uoDd6D3KU/jDV74YtntHpSKaHUtDZ0j6miu/PFWoqq0DptgJ2CTdKqc0o9gFNdzGQuLVln4Ma+r79aW4CyLgSEyIiI20+S87B9r8fe1Dn61a2S4DsRRtlkd4nGR+C6fKza6f6eJnI+Z2B70U6dpbwMIjsx18KcGflG1SgZxFuxxqD1E83Pypkm7EZE4vW/SZvGCIuI2uuTn5KpdRINkrTIizDBZR+ngUfUo0+SqPo8A70UO0aliVQFkti68Vn4uB5xj5zLKUGOidlsWkhJFhtVIWg==; s=purelymail2; d=paulwrankin.com; v=1; bh=9jNXRkZzA2ysC4lZBDCO9+8sh3aK+XwS0mJHDXBdZtI=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=BaMWMyB0WGXlmPZE+fTaVdERD/5RalR4AODqRcnI6KagynScQ3zxl+jvPSidEc0UBkxLd9uE9EMG78I/Zqe0hQWTXJ7ij/xnlAzVFyGPJtCMKOclTbkuFJ+fM3Ve7TREaBwGzZkH8Pc2EoDo7pmicNdrepbB4E0E9qfVtkzg+UJa/gfN39kXyiZ70feRcuj727uv/j7rMK1sbDAbvr9ojb4E6+kzM+cmym+nz4YUrg46TAdEG3UZ1nXHuTUIq0sfG1FRxQemRz1QQr3Kv2BjwNHpxH5bfJkBirjVgTbu41yRUl/4LavsGDrzrrcbH/LdeIzyt2cYuoakbyDz0fetaw==; s=purelymail2; d=purelymail.com; v=1; bh=9jNXRkZzA2ysC4lZBDCO9+8sh3aK+XwS0mJHDXBdZtI=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: 66167@debbugs.gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPA id -391731229; Sat, 23 Sep 2023 09:24:25 +0000 (UTC) In-Reply-To: <831qep5lja.fsf@gnu.org> X-Sender: 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:271150 Archived-At: On 2023-09-23 18:41, Eli Zaretskii wrote: > 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?). You're suggesting that the wrap-prefix should not be applied to wrapped lines..??