From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30432: 26.0.91; freeze when text wrap-prefix exceeds window text width Date: Mon, 12 Feb 2018 21:51:32 +0200 Message-ID: <837eriyojf.fsf@gnu.org> References: <94B0ABFC-0319-4CB5-944C-14E3B43310C6@paulwrankin.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1518465128 9177 195.159.176.226 (12 Feb 2018 19:52:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 19:52:08 +0000 (UTC) Cc: 30432@debbugs.gnu.org To: Paul Rankin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 20:52:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elK8v-0001ze-Rw for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 20:52:01 +0100 Original-Received: from localhost ([::1]:45805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elKAx-0002m5-DR for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 14:54:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elK9z-0002EC-4a for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 14:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elK9u-0004yP-B4 for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 14:53:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elK9u-0004y7-75 for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 14:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1elK9t-0007UL-U1 for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2018 14:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Feb 2018 19:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30432-submit@debbugs.gnu.org id=B30432.151846512228707 (code B ref 30432); Mon, 12 Feb 2018 19:53:01 +0000 Original-Received: (at 30432) by debbugs.gnu.org; 12 Feb 2018 19:52:02 +0000 Original-Received: from localhost ([127.0.0.1]:40063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elK8v-0007Sw-Te for submit@debbugs.gnu.org; Mon, 12 Feb 2018 14:52:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elK8u-0007SR-Ic for 30432@debbugs.gnu.org; Mon, 12 Feb 2018 14:52:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elK8k-0003s0-89 for 30432@debbugs.gnu.org; Mon, 12 Feb 2018 14:51:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elK8k-0003rs-0b; Mon, 12 Feb 2018 14:51:50 -0500 Original-Received: from [176.228.60.248] (port=3047 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elK8i-00086C-Dq; Mon, 12 Feb 2018 14:51:49 -0500 In-reply-to: <94B0ABFC-0319-4CB5-944C-14E3B43310C6@paulwrankin.com> (message from Paul Rankin on Mon, 12 Feb 2018 16:49:39 +1000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143221 Archived-At: > From: Paul Rankin > Date: Mon, 12 Feb 2018 16:49:39 +1000 > > 1. emacs -Q > 2. make sure window is 80 columns wide > 3. insert a block of text that exceeds the window text width and causes wrapping > 4. set region over this text > 5. (put-text-property (region-beginning) (region-end) 'wrap-prefix '(space :align-to 81)) > 6. move point to or past this text > > Expected result: > > I'm not sure, but I guess window should scroll horizontally to display point. It can't. (And anyway, horizontal scrolling only happens when lines are truncated.) What the above wrap-prefix does is ask for 81 columns of whitespace each time we need to continue a line on the next screen line, before the text of that continuation line. But 81 columns is more than the window can show, so the wrap prefix itself causes another continuation line to appear, which then needs another wrap prefix, etc. etc., ad nauseam. IOW, asking for a 81-column wrap-prefix in a 80-column wide window makes no sense, and leaves redisplay no way of showing point -- or even showing more than one screen line of text. > Actual results: > > Emacs freezes and needs to be killed. I don't think I see a freeze here. What I see is that the cursor disappears, and Emacs repeatedly enters redisplay (because point is not visible) -- which is why you might think Emacs freezes. But if you type C-b enough times, or even just type M-<, cursor will eventually reappear, the "freezing" will stop, and Emacs will start behaving normally again. Although you sometimes need to wait for that to happen for a few dozen seconds. Is that what you see? Or do you see something different? (For the record, I inserted a 90-character line into *scratch*, then marked it, and typed the put-text-property form.) > In Emacs versions prior to 26, this use to just wrap the transition text, but something has changed with 26 to cause the freezing. What do you mean by "just wrap the transition text"? Can you tell what you see in previous versions with the recipe above? What I see in previous versions of Emacs is something similar to Emacs 26, except that the cursor instead of disappearing jumps to the end of the first screen line (which is a clearly bogus location), and stays there until you type C-b enough times to get point into the visible portion of the text line inserted at the beginning of the recipe. Do you see something different? Thanks.