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 10:32:10 +0100 Message-ID: <5C42EE9A.7070201@gmx.at> References: <87k1j1b782.fsf@163.com> <5C42DC09.6040500@gmx.at> <87tvi5ow2r.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 1547890292 9785 195.159.176.226 (19 Jan 2019 09:31:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2019 09:31:32 +0000 (UTC) Cc: Emacs-Devel devel To: Feng Shu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 10:31:28 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 1gkmyM-0002NM-Nu for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 10:31:27 +0100 Original-Received: from localhost ([127.0.0.1]:53429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkn0T-0001oD-Qg for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 04:33:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkmzc-0001n6-Am for emacs-devel@gnu.org; Sat, 19 Jan 2019 04:32:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkmzV-0003OK-6b for emacs-devel@gnu.org; Sat, 19 Jan 2019 04:32:38 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:33641) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkmzQ-00030D-2d for emacs-devel@gnu.org; Sat, 19 Jan 2019 04:32:34 -0500 Original-Received: from [192.168.1.101] ([213.162.73.167]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MU0pN-1gcAAP0AXx-00Qiex; Sat, 19 Jan 2019 10:32:12 +0100 In-Reply-To: <87tvi5ow2r.fsf@163.com> X-Provags-ID: V03:K1:2ABEU73lptu9cU8n4WT6NAN8yD/D0NsOcc4m4atpE0hwExTyz8B ck+Mn+n6mLlM/l8K072LmJNM9wh6/DFDpY4wBlziB7au/1YARpK8Q/1ybJHT7ECrgW+aeYt sPJiZIIMi3kbICU2slMY1k8qykr5Z6XU+J/A7UR8EyARQlMs7MjuZPpQF908ZZMIOLpP4Rp WsY1TM2A0CZduRP9jRlSQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:4V1Xc+qS7Gc=:ASyQ5gUGaSZAEKS4Zou77t J5QtrybgqzaeYQG1kq+hZdqcgBPLk64WYKS+DhD+ni8LGGukv7SmFjVicv7P0XqNR4UE/GXkU 4up3zPNl8WSnwvZX8P0hrZ0pKVxUhF2krxai0oA801u5GZsWpMBJgZfRT3q3eGHyZNZwOI+cD hkeo0vPYFfzFf0bVmgLpCVnS+eTRmI3ERE/Xq2l81eW2ziCVCEZvTq1smA7x9dD8/CMqxCgls m57DmisN/EyoFC++eaALmudkRraMVFkHku74gHpUvromSyvqZEswjBmMvb4niZ0hLTkzKTOIh nDvj4vjF0ofbIPtulcfnX24EivKGBKvv8vP3NtXTqPTLl/6sScEgaPojRuYR2dDEvmUkR2qs2 iKrNMaRMM8KeBeO+EHGpY6CN/wP9ASZWmobK9R0qi9EHHczqSsev03aDAuweQiD2XWxEDG28P FkJWynv4d2lh+o5G1taMV87Zyzf3r3YtneMKhbgHYbrpcrp3pfSAIo2XKI+7YJztAYfKsPvWy 1Yt8w6OzIQoRTU6uesqLWlyUpQbE/y31L/babMNLgT2SPdOgH3ZfgqbiM7VUO/LwlErrBhkTd zzisQXOzIIh3dCrflKQZDoPC2quwLW11ffkGVDZYl9eRj+nWjXljzi1c4JnMwCwUrR5hr6l+9 5b0Htnkn4qGCxgt8RI1zNYyGrC1uJiY/Wrp8Ri5J/+1wq/tNoxtSK7Wxz+5MpIuV4UWSDgOIv qo5G7Beuj1qwQAmXwiOl0xZPC38L/cFDgv0Rjo3TEG6knsMY2swOGc5YagxA4geJSSd/vMEm X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 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:232477 Archived-At: > I use the following code to test, but failure > 1. width and height parameter do not work > 2. I can find any frame with 'tooltip parameter > > ``` > (setq tooltip-reuse-hidden-frame t) This may hide the frame from 'visible-frame-list'. > (setq x-gtk-use-system-tooltips nil) > > (progn > (x-show-tip "this is a test" > (selected-frame) > '((name . "tooltip1") > (internal-border-width . 2) > (left . 200) > (top . 300) > (width . 200) > (height . 600) > (border-width . 1) > (no-special-glyphs . t)) > 100 0 0) > (dolist (frame (visible-frame-list)) > (princ (frame-parameter frame 'tooltip)))) Evaluating the following here on Windows (progn (x-show-tip "this is a test" (selected-frame) '((name . "tooltip1") (internal-border-width . 2) (left . 200) (top . 300) (width . 200) (height . 600) (border-width . 1) (no-special-glyphs . t)) 100 0 0) (dolist (frame (visible-frame-list)) (when (frame-parameter frame 'tooltip) (princ (frame-parameters frame))))) gets me ((tool-bar-position . top) (parent-id) (explicit-name . t) (display . w32) (visibility . t) (icon-name) (window-id . 1180020) (scroll-bar-height . 0) (scroll-bar-width . 0) (right-fringe . 0) (left-fringe . 0) (bottom-divider-width . 0) (right-divider-width . 0) (top . 300) (left . 200) (buried-buffer-list) (buffer-list *scratch*) (unsplittable . t) (modeline) (width . 80) (height . 36) (name . tooltip1) (tooltip . t) (alpha) (cursor-type . box) (auto-lower) (auto-raise) (no-special-glyphs . t) (border-color . lightyellow) (cursor-color . black) (mouse-color . black) (background-color . lightyellow) (foreground-color . black) (internal-border-width . 2) (border-width . 1) (font . -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1) (font-backend uniscribe gdi)) martin