unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30432: 26.0.91; freeze when text wrap-prefix exceeds window text width
@ 2018-02-12  6:49 Paul Rankin
  2018-02-12 19:51 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Rankin @ 2018-02-12  6:49 UTC (permalink / raw)
  To: 30432

So this took me a while to track down because it seemed so unpredictable, but I can now reliably freeze Emacs when some text has a wrap-prefix that exceeds the window text width.

To reproduce:

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.

Actual results:

Emacs freezes and needs to be killed.

Real-world use case:

In Fountain Mode (a major mode for screenwriting) text needs to aligned using line-prefix and wrap-prefix. Text for scene transitions uses a space of 45 columns. When the font size is increased, it's very easy for the 45-column space plus the transition text to exceed the current window text width.

In Emacs versions prior to 26, this use to just wrap the transition text, but something has changed with 26 to cause the freezing.

** Please do not reply asking me to change Fountain Mode to use auto-fill. The existing syntax doesn't work this way. **

-- 
https://www.paulwrankin.com






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-05-08 17:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12  6:49 bug#30432: 26.0.91; freeze when text wrap-prefix exceeds window text width Paul Rankin
2018-02-12 19:51 ` Eli Zaretskii
2018-02-13  2:15   ` Paul Rankin
2018-02-13  2:18     ` Paul Rankin
2018-02-13  2:30       ` Paul Rankin
2018-02-13  5:15     ` Eli Zaretskii
2018-02-13  5:57       ` Paul Rankin
2018-03-20 17:10         ` Eli Zaretskii
2018-03-29  5:00           ` Paul W. Rankin
2018-03-30 12:59             ` Eli Zaretskii
2018-05-07 18:38               ` Eli Zaretskii
     [not found]                 ` <0C03687D-D0D4-46CE-B409-6A2E55C8A5FA@paulwrankin.com>
     [not found]                   ` <2F164141-0F75-45C9-8211-ADAF2B005C16@paulwrankin.com>
2018-05-08 17:16                     ` Eli Zaretskii

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).