emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tooltip frame uses (class mono) when processing defface specs


From: Joe Wells
Subject: Re: tooltip frame uses (class mono) when processing defface specs
Date: Thu, 20 Sep 2007 22:31:27 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Johan Bockgård writes:

> Joe Wells 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.
>
> FWIW, (class mono) isn't selected either.
>
> This uses a yellow face:
>
>     (defface bar
>       '((((class color))      (:foreground "red"))
>         (((class mono))       (:foreground "blue"))
>         (((class grayscale))  (:foreground "green"))
>         (t                    (:foreground "yellow")))
>       "")
>
>     (x-show-tip (propertize "hello" 'face 'bar))

Eeek!  That's much worse than I suspected.  I didn't test that because
the documentation says every frame must belong to one of the three
classes color, grayscale, or mono.  It didn't occur to me that tooltip
frames would violate that.

I think this makes the issue more clearly a bug.

-- 
Joe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]