From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Why can't I (message (propertize "hello" ...)) ? Date: Wed, 18 Dec 2002 23:49:41 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <9c13f318.0212181346.57d66546@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040252213 3363 80.91.224.249 (18 Dec 2002 22:56:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2002 22:56:53 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18On7T-0000s4-00 for ; Wed, 18 Dec 2002 23:56:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18On6B-0001bI-03 for gnu-help-gnu-emacs@m.gmane.org; Wed, 18 Dec 2002 17:55:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4802 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4802 functorx@yahoo.com (Tom) writes: > FYI, the code I'm trying is: > > (defun x () "" (interactive) > (message (propertize "hello" 'face 'blue))) > > .. which displays the message hello, but without any properties. I've > also tried imperatively updating the string with add-text-properties, > which also doesn't work. Note that there's no predefined face with the name `blue'. What you want is something like this: (message (propertize "hello" 'face '(foreground-color . "blue")))