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: Drew Adams
Subject: bug#9159: 24.0.50; `undo' is not as good as it should be wrt property changes
Date: Tue, 2 Aug 2011 14:48:49 -0700

> > 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.

Presumably Stefan agrees (?) but considers that improvement only cosmetic, so
fodder for the wishlist (/dev/null) cannon.






reply via email to

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