help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Text Props and Strings


From: Óscar Fuentes
Subject: Re: Text Props and Strings
Date: Tue, 12 Oct 2010 14:46:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> So the properties on the string are ignored. What I'm missing?
>
> propertize?

(insert (propertize "foo bar" 'face 'bold))

doesn't work either, but it seems that this happen because when the
buffer has font-lock activated, text properties for strings inserted
with `insert' are ignored (or removed just afterwads the insertion, I
don't know for sure.) If the buffer has no font-lock mode activated,
both `propertize' and the #( syntax works.




reply via email to

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