Q: how do I change text properties conditional on other properties?
I have text between region
end. Each character has
text properties. I know I can change those text properties in an
unconditional way with something like:
(add-text-properties beg end '(some-property t))
How can I change the text properties of characters conditional on their existing properties?
Here's an example. Each character in the region has two text
prop2, that take on
values. I want to set the value of
t for only those
prop2 value is
t. How do I do that?