bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27103: Should show-trailing-whitespace highlight specified spaces?


From: Clément Pit--Claudel
Subject: bug#27103: Should show-trailing-whitespace highlight specified spaces?
Date: Sat, 27 May 2017 15:14:00 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 2017-05-27 14:26, Eli Zaretskii wrote:> I think you are hitting on undefined 
behavior: mixing different
> replacing specs in the same display property is not generally
> supported.

Thanks for clarifying.

>> Is there a way to disable the trailing whitespace highlighting here?
> 
> You could swap the order of 'space' and 'left-fringe' specs, but the
> fact that this works is sheer luck, and I wouldn't recommend relying
> on that.

It doesn't work here: the fringe remains empty.

> The rule is to use at most one replacing spec in a display property.

Makes sense, thanks. Would it be a reasonable feature request to ask for a 
non-replacing version of left-fringe and right-fringe?  I've seen other code 
work around this by putting the left-fringe property on the before-string of an 
overlay, but I can't do this with pure text properties.

Cheers,
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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