emacs-devel
[Top][All Lists]
Advanced

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

Re: Combining face and map stuff


From: Stefan Monnier
Subject: Re: Combining face and map stuff
Date: Thu, 07 Oct 2010 20:08:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> Here are some problems that this protocol solves:
>> - there can currently only be one owner of a text-property, which
>> creates conflicts.
> What do you mean by "owner" in this context?

Package foo wants to add `face' stuff and package bar also wants to add
`face' stuff.  If both add it to the same piece of text, we have
a problem, and if they want to update it later they have to know who
"owns" the particular value (i.e. who it comes from) to know whether it
should be updated or not.

>> - there is no way currently to combine various property values (the OP's
>> question).
> What's wrong with add-text-properties?

It never combines values of a single property, just overwrites an old
value with a new one.


        Stefan



reply via email to

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