[Top][All Lists]

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

Re: buffer-substring vs. buffer-substring-no-properties

From: Eli Zaretskii
Subject: Re: buffer-substring vs. buffer-substring-no-properties
Date: Thu, 15 Nov 2001 10:07:10 +0200

On 14 Nov 2001, Kevin Layer wrote:

> Even though this is documented as an incompatible change, I don't
> think it was a good decision.

It was done because it made sense in many uses of format.  Evidently,
some of them don't, but please note that your code didn't use format
to reformat something, it used it for its side effects (removing the
properties).  It turns out that in many _real_ uses of format,
removing properties is a bad misfeature.

> Also, note I couldn't get copy-sequence to remove properties.  It
> always preserves them for me:

Sorry, it was a bad wording on my part: you need to use _both_
copy-sequence and set-text-properties.  That is, copy the object, then
remove the properties from the copy.

reply via email to

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