From: Joost Diepenmaat <joost@zeekat.nl>
To: help-gnu-emacs@gnu.org
Subject: properties in recursive mode-lines - what am I doing wrong?
Date: Sat, 06 Dec 2008 17:32:36 +0100 [thread overview]
Message-ID: <87ej0l8cw8.fsf@zeekat.nl> (raw)
I just can't get properties to work on "indirect" modelines. I want to
add a modeline string to global-mode-string, using a symbol (like
display-time-mode does), but it seems I'm doing it wrong.
Example code:
;; a simple modeline string with properties
(setq my-test (propertize "a bold modeline string" 'help-echo
"a helptext" 'face 'bold))
;; this shows the help text property and bold text
(setq global-mode-string
my-test)
;; but neither of the following constructs seem to do the same
(setq global-mode-string
'my-test)
(setq global-mode-string
'("" my-test))
I'm running today's emacs CVS (tested both with today's version and one
from early august)
Any help would be appreciated,
Joost.
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
next reply other threads:[~2008-12-06 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-06 16:32 Joost Diepenmaat [this message]
2008-12-06 17:56 ` properties in recursive mode-lines - what am I doing wrong? Andy Stewart
[not found] ` <mailman.2073.1228586432.26697.help-gnu-emacs@gnu.org>
2008-12-06 18:06 ` Joost Diepenmaat
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej0l8cw8.fsf@zeekat.nl \
--to=joost@zeekat.nl \
--cc=help-gnu-emacs@gnu.org \
/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.
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).