[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: |
Sun, 28 May 2017 15:43:52 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
On 2017-05-28 14:14, Eli Zaretskii wrote:> There's a string there, so those
properties are processed when the
> display engine traverses the string characters.
Thanks. Understood.
>> Could the same thing happen here?
>
> No, because there's no string. There's just buffer text and nothing
> else.
>
> Maybe we could extend the line-prefix property to support left-fringe
> and right-fringe specs.
Hey, it works!
(insert (propertize "AA" 'line-prefix (propertize "_" 'display '(left-fringe
right-arrow))))
:)
Anything bad with this?
>>> Are overlays really so slow that you are prepared to jump through such
>>> hoops?
>>
>> Definitely :) I need these markers for a literate-programming buffer where
>> roughly every other line has a marker. On a 10k lines file, overlays are
>> entirely impractical.
>
> Can you show a simple example where having 5K overlays in a buffer
> cause significant slowdown? I mean, just having 5K overlays, without
> any additional bells and whistles. What exactly is slowed down?
My mode uses overlays for other purposes, and this slows all of it down.
Thanks for your time and answers :)
Clément.
signature.asc
Description: OpenPGP digital signature
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/27
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/27
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/27
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/27
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/27
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?,
Clément Pit--Claudel <=
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Clément Pit--Claudel, 2017/05/28
- bug#27103: Should show-trailing-whitespace highlight specified spaces?, Eli Zaretskii, 2017/05/29