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

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

Re: How to remove a property from an overlay?


From: Fu Yuan
Subject: Re: How to remove a property from an overlay?
Date: Sat, 31 Jul 2021 09:15:02 -0400


> 在 2021年7月31日,上午4:46,Marcin Borkowski <mbork@mbork.pl> 写道:
> 
> 
>> On 2021-07-30, at 22:02, Stefan Monnier via Users list for the GNU Emacs 
>> text editor <help-gnu-emacs@gnu.org> wrote:
>> 
>> Marcin Borkowski [2021-07-30 20:31:35] wrote:
>>> is there any way I can remove property `prop' from overlay `ovl' besides
>>> (overlay-put ovl 'prop nil)
>>> which does not really remove it, only sets it to nil?
>> 
>> The recommendation is to try and make sure you always give semantics to
>> those properties such that nil behaves the same as the absence of
>> the property.
> 
> Could that be put in the manual?

Reminds me of the similar property of plists, we could also add to plist’s 
manual.

Yuan


reply via email to

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