emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line wrap reconsidered


From: Yuan Fu
Subject: Re: Line wrap reconsidered
Date: Tue, 26 May 2020 08:38:39 -0400


> On May 26, 2020, at 4:02 AM, martin rudalics <address@hidden> wrote:
> 
> > Here is what I come up with: in redisplay code, instead of only checking 
> > for whitespace, check for a ‘no-wrap text-property, if the character has 
> > this property, don’t wrap before[1] this character (or maybe it can be the 
> > opposite, only wrap when the character has a ‘can-wrap property). And this 
> > text property is calculated and applied once.
> >
> > Could this be plausible? Is checking text property is fast enough for 
> > redisplay?
> >
> > [1] There are some complications to this, some characters can’t have line 
> > break before them, some can’t have after; maybe  use ‘before, ‘after and 
> > nil instead of binary value.
> 
> While you're there could you please have a short look at Adam's patch for
> Bug#13399?  For whatever reason he stopped working on this back then.

I had a look, with my proposal the various whitespaces could be wrapped, yes.

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]