[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to remove a property from an overlay?
From: |
Marcin Borkowski |
Subject: |
Re: How to remove a property from an overlay? |
Date: |
Sat, 31 Jul 2021 10:45:16 +0200 |
User-agent: |
mu4e 1.1.0; emacs 28.0.50 |
On 2021-07-30, at 21:47, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Marcin Borkowski <mbork@mbork.pl>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Fri, 30 Jul 2021 21:12:26 +0200
>>
>> >> (overlay-put ovl 'prop nil)
>> >>
>> >> which does not really remove it, only sets it to nil?
>> >
>> > What's the difference?
>>
>> When I say `(overlay-properties ovl)', I can see `prop' set to nil.
>> Before setting it, I couldn't.
>
> And why is that difference important?
Because of my OCD, perhaps?
> Overlay properties exist to search for them with the likes of
> next-single-char-property-change, and those don't distinguish between
> the two.
I see.
> But if you must remove the property, I think the only way is to make
> another overlay with all the properties except the one you want to
> remove.
I see. Not worth it, of course.
Thanks!
--
Marcin Borkowski
http://mbork.pl