From: "Drew Adams" <drew.adams@oracle.com>
Subject: `message' function with propertized string
Date: Thu, 30 Mar 2006 10:17:22 -0800 [thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBMEDMDAAA.drew.adams@oracle.com> (raw)
The doc of function `message' says that its string argument(s) can have
`face' properties and these will affect the appearance of the message. From
the Emacs 22 ELisp manual:
If STRING, or strings among the ARGUMENTS, have `face' text
properties, these affect the way the message is displayed.
Can someone explain how to do use `message' to display a message with faces
showing on different parts of the string? I tried this:
(message (propertize "foobar toto" 'face 'highlight))
and this:
(setq foo "foobar toto")
(add-text-properties 0 (length foo) '(face highlight) foo)
(message foo)
But the message displayed didn't show the face. It just showed the write
syntax of a propertized string: #("foobar toto" 0 11 (face highlight))
What am I missing? (I've tried with a June 2005 CVS snapshot and also with
Emacs 21.3.1.)
next reply other threads:[~2006-03-30 18:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-30 18:17 Drew Adams [this message]
[not found] <mailman.186.1143742657.2481.help-gnu-emacs@gnu.org>
2006-03-30 18:33 ` `message' function with propertized string Johan Bockgård
2006-03-30 18:42 ` Drew Adams
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=MEEKKIABFKKDFJMPIOEBMEDMDAAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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.