From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to get information of a tip created by x-show-tip Date: Sat, 19 Jan 2019 09:12:57 +0100 Message-ID: <5C42DC09.6040500@gmx.at> References: <87k1j1b782.fsf@163.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1547885477 10407 195.159.176.226 (19 Jan 2019 08:11:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2019 08:11:17 +0000 (UTC) To: Feng Shu , Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 09:11:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gklii-0002bl-Bv for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 09:11:12 +0100 Original-Received: from localhost ([127.0.0.1]:52811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gklko-0003Wz-Rt for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 03:13:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gklkf-0003Wo-CP for emacs-devel@gnu.org; Sat, 19 Jan 2019 03:13:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gklkd-0000HR-C3 for emacs-devel@gnu.org; Sat, 19 Jan 2019 03:13:13 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:32903) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gklkd-0000FQ-3E for emacs-devel@gnu.org; Sat, 19 Jan 2019 03:13:11 -0500 Original-Received: from [192.168.1.101] ([213.162.73.167]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MWSwU-1ghxgm3f7y-00XcMS; Sat, 19 Jan 2019 09:12:58 +0100 In-Reply-To: <87k1j1b782.fsf@163.com> X-Provags-ID: V03:K1:FUH98eGJNh+ZfqQ4dapYa2FIDYZHs9matmivYZeVZp/zJG4kYvX P1KIlk062MUtYsYY5toUgdh5j805nWJQUQtiBUC2MofWP9eertlBrT859RUh+KhWhVmpZIk Q8nryJNQT7st1pfKxS32yvsPE6Tg/ednV6lX8Qr1c+AHzPmph18XSFsCpe9Nb+UJPYbV8ZR oS4oZkEVPKfF2cuB3f/Cw== X-UI-Out-Filterresults: notjunk:1;V03:K0:j3HEBj02Kds=:cC+gxXtX/pXYLMOKP0P5W4 BK/zdfBn7GSpI1/NBet2E/8e1hfW4RFA0X5yRkem9yGGNqgR70ozPDNCtxoK5gFCtDPvokAy0 QIkVexS/I//JE3RZg/cJ37v2QFVZ9Qq2sIYJ3M5XVL+3FW+FJ/WBsD2zzFDgIhOjBXEYWj8SB tjuTO1SSydcFMkb8/jaxkTzvA3p8faoNBbMltNMWpW4/b0/YzNjYI1lBPFEe+8ibZA59dD36p NZYNCSvpQCl+YegvGJw8n9OZPvckRGhYkhH4cyp7w+YEV+xp0BnWGoHM3GWgHBn4XwbpW7BnT erY/1ufpvoCvI99x6FhzlGuVRC+Shr4mRny7pkOYea9qxWjXKmvm0otL1CwlAGJHvqljZp0PW Kj5KKOZJqPCoCnuWrMVyGbKz1ZaF7JxLLHouAeqx/XDTUl1uMVatI5W2pcYUfHnBkHBlm6QpK Hh3udtYCRZaJUiidibUM5lvxLi/sEhRuwRN14+MY1liQ4ZQFFBtB2T023+MrQmPAKoDfVFfHZ eEC3dkZ1gv7Le+pAFWk3CDhRv8kCJu6p/RxgmT+FD/6q4lZfhOlB42Jurs9Qy/l8YKO+lW+Lf 9CZ2qLdyIG+EAePykK0hsmVSKYw+525AOAupTbKT2iluTHTy1n4G64Ca2ZEUjJBD8/+0zjT5J wjvrgMETz34O50VgzUzhL01lOSJN6j97275mX5PqWUj9q2GMxlJ92W5sza6v47ZIU7zcr6QI5 A+elzrL1i6yWc/qPvwxZ5V6FcRdoiOG2CmkVfAflW+395Bbh8nQidiWCIYVu6MW6V8m2Onn5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232473 Archived-At: > I want to get a tip's information created by x-show-tip, for example: width, height, x and y > > but I fail to find the way, anyone can help me? We have invested some efforts to hide information about the tooltip implementation. The major reason was to protect our own routines from operating on tooltip frames and windows. Compare, for example, http://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00694.html From there you can see that the return value of 'visible-frame-list' and the 'tooltip' frame paramter can give you the current tooltip frame if it is visible and native (that is created by Emacs itself). The size and position paramters of that frame should give you the values you cited above. > by the way, is a tip a window or a frame? 'tooltip' (or 'tip') usually refer to the text only. Emacs can put that text into a window, that window into a frame and ask the window system to display that frame in a window-system window. But Emacs can drop that text directly to GTK in which case no frame will be made. For GTK tooltips no information can be retrieved. martin