all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.