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

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

Re: how to attach properties to a piece of text?


From: Xah Lee
Subject: Re: how to attach properties to a piece of text?
Date: Thu, 19 Mar 2009 06:11:29 -0700 (PDT)
User-agent: G2/1.0

On Mar 18, 5:54 pm, Miles Bader <mi...@gnu.org> wrote:

> However, note that if the buffer's mode uses font-lock, font-lock will
> _override_ any `face' property you set (to be its own); in a font-lock'd
> buffer, you can use the `font-lock-face' property instead:
>
>    (put-text-property (point) (mark) 'font-lock-face '(:foreground "green"))

Great advice. That just happened to me after i put the function into
the package and tried to test it. Thanks.

  Xah
∑ http://xahlee.org/

reply via email to

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