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

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

bug#9159: 24.0.50; `undo' is not as good as it should be wrt property ch


From: Lars Magne Ingebrigtsen
Subject: bug#9159: 24.0.50; `undo' is not as good as it should be wrt property changes
Date: Tue, 02 Aug 2011 23:13:10 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> I already said in the OP that "while correct" (N.B.) "it would be
> better for the property `foo' to simply be removed."

I don't think this is a bug (or should be fixed), but I wonder whether
it would make sense for Fput_text_property to just delete the property
instead of adding/setting `prop nil' to the property list in general?

That is, if I say

(put-text-property (point-min) (1+ (point-min)) 'foo nil)

today, `foo nil' is added.  Perhaps it should just be ignored if not
already there, and if it's already set, then it should be removed?

If we have established that there is no semantic difference between nil
properties and missing properties, then this sounds like there could be
(very minor) memory and redisplay efficiencies to be won here.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





reply via email to

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