From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: finding the face of a popup Date: Thu, 30 Aug 2007 08:26:50 -0700 Message-ID: References: <878x7tig1j.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188487734 21960 80.91.229.12 (30 Aug 2007 15:28:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2007 15:28:54 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 17:28:51 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IQlww-0002xX-9H for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 17:28:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQlwv-00029W-Tv for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2007 11:28:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IQlw5-0001nb-44 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 11:27:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IQlw3-0001n7-Q6 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 11:27:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQlw3-0001mx-G3 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 11:27:55 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IQlw3-0008JH-05 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2007 11:27:55 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l7UFRSKo019308 for ; Thu, 30 Aug 2007 09:27:28 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l7U7nxDn000658 for ; Thu, 30 Aug 2007 09:27:28 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-203.us.oracle.com by acsmt351.oracle.com with ESMTP id 3172118871188487606; Thu, 30 Aug 2007 08:26:46 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <878x7tig1j.fsf@lion.rapttech.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46983 Archived-At: > > I believe that the description of a face given by placing point > > over a field and typing C-u C-x = should tell you > > the face of a popup that is triggered when the mouse is over that > > field. > > I think the problem with that is that you are mixing up two different > levels of the application. The popup/tooltip is a function of the mouse > location. The C-u C-x = describes what is around point and the > tool tip is not really around point 1. See library facemenu+.el, which enhances standard library facemenu.el in various ways. In particular, it uses the mouse pointer position when Text Properties > Describe Properties is accessed from the mouse popup menu ('C-mouse-2'). So, instead of using `C-x =', you can just point the mouse where you want, use `C-mouse-2' to bring up the Text Properties menu, and choose menu item Describe Properties. You'll see a description of the text properties at the mouse pointer position (not the text cursor position). http://www.emacswiki.org/cgi-bin/wiki/FaceMenuPlus#TextPropertiesMenu 2. However, this won't help with the problem raised by the OP, because Emacs never lets the mouse pointer point to a tooltip: as soon as you move the mouse toward the tooltip, the tooltip disappears. That's TRT. I really think that there is no great solution to this, which I also don't think is a big problem. If you know that a tooltip is called a "tooltip" (and many users do nowadays), then you can use `apropos', as suggested. If you don't know that, then you can use `list-faces-display', as suggested, and check each face that looks like what is used for tooltips - there are probably not 36 such faces.