[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lars Magne Ingebrigtsen
Wed, 24 Oct 2012 20:54:36 +0200
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)
Chong Yidong <address@hidden> writes:
>> + If NOREPLACE, add the text properties instead of replacing any
>> + existing ones. This is mainly useful for faces.
> This is too vague. What does "add the text properties" mean? If the
> current value of a property is nil, and the argument to
> add-text-properties specifies a value `foo', does the new value become
> `foo' or `(foo)'?
The former, but it probably doesn't matter?
> If the current value is `1', does the new value become `(foo 1)' or
> something else?
`(foo 1)' is, I think, the only reasonable way to interpret "add".
> And, specifically for face properties, what if the current value is a
> list specifying an anonymous face, like `(:foreground "black")'?
Oh, it doesn't. Hm. That's a problem... is there any reliable way to
distinguish `(:foreground "black")' from `(bold italic)'?
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
- Re: `add-face',
Lars Magne Ingebrigtsen <=