unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Why can't I (message (propertize "hello" ...)) ?
@ 2002-12-18 21:46 Tom
  2002-12-18 22:34 ` John Paul Wallington
  2002-12-18 22:49 ` Jesper Harder
  0 siblings, 2 replies; 3+ messages in thread
From: Tom @ 2002-12-18 21:46 UTC (permalink / raw)


Is there some restriction that prevents me from using text properties
in messages that appear in the minibuffer? If so, does anyone know any
hacks to get around it? I know I can paste text with properties into
the minibuffer, so it can't be too serious...

Thanks a lot!

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why can't I (message (propertize "hello" ...)) ?
  2002-12-18 21:46 Why can't I (message (propertize "hello" ...)) ? Tom
@ 2002-12-18 22:34 ` John Paul Wallington
  2002-12-18 22:49 ` Jesper Harder
  1 sibling, 0 replies; 3+ messages in thread
From: John Paul Wallington @ 2002-12-18 22:34 UTC (permalink / raw)


Tom wrote:

>  FYI, the code I'm trying is:
>  
>  (defun x () "" (interactive)
>  (message (propertize "hello" 'face 'blue)))
>  
>  .. which displays the message hello, but without any properties.

Is there a `blue' face?  You can do M-x list-faces-display to see
which faces are defined.

-- 
John Paul Wallington

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why can't I (message (propertize "hello" ...)) ?
  2002-12-18 21:46 Why can't I (message (propertize "hello" ...)) ? Tom
  2002-12-18 22:34 ` John Paul Wallington
@ 2002-12-18 22:49 ` Jesper Harder
  1 sibling, 0 replies; 3+ messages in thread
From: Jesper Harder @ 2002-12-18 22:49 UTC (permalink / raw)


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")))

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-18 22:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-18 21:46 Why can't I (message (propertize "hello" ...)) ? Tom
2002-12-18 22:34 ` John Paul Wallington
2002-12-18 22:49 ` Jesper Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).