From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: how to attach properties to a piece of text? Date: Thu, 19 Mar 2009 06:11:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <3f3f751a-a93a-4de6-a306-bf5f47bc9fea@v5g2000prm.googlegroups.com> <877i2mgwmr.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237476083 2070 80.91.229.12 (19 Mar 2009 15:21:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 15:21:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 16:22:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkK3I-0002yv-DB for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 16:21:02 +0100 Original-Received: from localhost ([127.0.0.1]:39207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkK1v-0004M3-Md for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 11:19:35 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!postnews.google.com!w35g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1237468289 27571 127.0.0.1 (19 Mar 2009 13:11:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 19 Mar 2009 13:11:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w35g2000prg.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167795 X-Mailman-Approved-At: Thu, 19 Mar 2009 11:00:06 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63093 Archived-At: On Mar 18, 5:54=C2=A0pm, Miles Bader 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: > > =C2=A0 =C2=A0(put-text-property (point) (mark) 'font-lock-face '(:foregro= und "green")) Great advice. That just happened to me after i put the function into the package and tried to test it. Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84