From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.devel Subject: Re: tooltip frame uses (class mono) when processing defface specs Date: Wed, 19 Sep 2007 12:23:08 +0100 Message-ID: <86y7f2c31f.fsf@macs.hw.ac.uk> References: <863axadi7d.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190201009 14870 80.91.229.12 (19 Sep 2007 11:23:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2007 11:23:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 19 13:23:24 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXxeG-0002L7-TL for ged-emacs-devel@m.gmane.org; Wed, 19 Sep 2007 13:23:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXxeF-0001Dx-6g for ged-emacs-devel@m.gmane.org; Wed, 19 Sep 2007 07:23:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXxeC-0001DU-0f for emacs-devel@gnu.org; Wed, 19 Sep 2007 07:23:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXxeA-0001Cs-I1 for emacs-devel@gnu.org; Wed, 19 Sep 2007 07:23:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXxeA-0001Cp-Co for emacs-devel@gnu.org; Wed, 19 Sep 2007 07:23:10 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IXxe9-0001QO-OQ for emacs-devel@gnu.org; Wed, 19 Sep 2007 07:23:10 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:43905 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IXxe8-0000qq-Hd for emacs-devel@gnu.org; Wed, 19 Sep 2007 12:23:08 +0100 Original-Received: (nullmailer pid 695 invoked by uid 1001); Wed, 19 Sep 2007 11:23:08 -0000 In-Reply-To: <863axadi7d.fsf@macs.hw.ac.uk> (Joe Wells's message of "Wed\, 19 Sep 2007 12\:10\:14 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79298 Archived-At: 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. 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