From: Joe Wells <jbw@macs.hw.ac.uk>
To: emacs-devel@gnu.org
Subject: Re: tooltip frame uses (class mono) when processing defface specs
Date: Wed, 19 Sep 2007 12:23:08 +0100 [thread overview]
Message-ID: <86y7f2c31f.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: <863axadi7d.fsf@macs.hw.ac.uk> (Joe Wells's message of "Wed\, 19 Sep 2007 12\:10\:14 +0100")
Joe Wells <jbw@macs.hw.ac.uk> writes:
> When processing defface specs, the tooltip frame uses alternatives
> that select the characteristic (class mono). Alternatives that select
> (class color) or (class grayscale) are not used.
Here are some examples that illustrate this point.
The examples assume you are running Emacs on a color display, and that
you have loaded font-lock.el.
If you evaluate the following expression, you get some nicely colored
text in your tooltip:
(x-show-tip (propertize "hello" 'face '(:foreground "red")))
In contrast, if you evaluate the following expression, you get black
text in your tooltip:
(x-show-tip (propertize "hello" 'face 'font-lock-keyword-face))
You can see that font-lock-keyword-face normally has foreground color
"Purple" by evaluating this expression:
(with-output-to-temp-buffer "xyzzy"
(set-buffer standard-output)
(insert (propertize "hello" 'face 'font-lock-keyword-face)))
This illustrates that the tooltip frame is using the mono version of
named faces, even though the tooltip frame is perfectly capable of
displaying colors.
--
Joe
> Can this please be changed, or at least made customizable?
>
> I am trying to get the folding mode of AUCTeX to display nicer
> tooltips. It would be nice if it could effectively use the
> fontification of hidden text in tooltips. Right now, standard faces
> don't show well in the tooltips, because their mono version is used.
> It would be a big help if the standard face definitions showed nicely
> on tooltip frames.
>
> (Yes, there are other issues that also would need to be handled, like
> the way the tooltip-show function replaces the face of the message
> string with the face tooltip. But that is in Emacs Lisp, and hence
> easier to fix, perhaps by making tooltip-show not do that if the
> message has a particular property on it.)
>
> --
> Joe
next prev parent reply other threads:[~2007-09-19 11:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 11:10 tooltip frame uses (class mono) when processing defface specs Joe Wells
2007-09-19 11:23 ` Joe Wells [this message]
2007-09-20 16:35 ` Richard Stallman
2007-09-20 17:32 ` Joe Wells
2007-09-20 18:14 ` Johan Bockgård
2007-09-20 21:31 ` Joe Wells
2007-09-21 22:32 ` Richard Stallman
2007-09-29 16:11 ` Richard Stallman
2007-10-07 13:10 ` Richard Stallman
2007-10-07 16:42 ` John Paul Wallington
2007-10-08 18:10 ` Glenn Morris
2007-10-09 1:14 ` Richard Stallman
2007-10-12 1:26 ` Glenn Morris
2007-10-12 15:59 ` Richard Stallman
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=86y7f2c31f.fsf@macs.hw.ac.uk \
--to=jbw@macs.hw.ac.uk \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).