From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to attach properties to a piece of text?
Date: Thu, 19 Mar 2009 06:11:29 -0700 (PDT) [thread overview]
Message-ID: <ecf72aa9-c6b0-4d6d-9694-3e357755262a@w35g2000prg.googlegroups.com> (raw)
In-Reply-To: 877i2mgwmr.fsf@catnip.gol.com
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/
☄
prev parent reply other threads:[~2009-03-19 13:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 0:20 how to attach properties to a piece of text? Xah Lee
2009-03-19 0:54 ` Miles Bader
2009-03-19 3:19 ` Xah Lee
2009-03-19 15:51 ` Drew Adams
2009-03-19 13:11 ` Xah Lee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ecf72aa9-c6b0-4d6d-9694-3e357755262a@w35g2000prg.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.