From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Feng Shu" Newsgroups: gmane.emacs.devel Subject: Re: How to get information of a tip created by x-show-tip Date: Sat, 19 Jan 2019 17:54:08 +0800 Message-ID: <87lg3hotvj.fsf@163.com> References: <87k1j1b782.fsf@163.com> <5C42DC09.6040500@gmx.at> <87tvi5ow2r.fsf@163.com> <5C42EE9A.7070201@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547891545 9164 195.159.176.226 (19 Jan 2019 09:52:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2019 09:52:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Emacs-Devel devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 10:52:20 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 1gknIX-0002Cr-SC for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 10:52:17 +0100 Original-Received: from localhost ([127.0.0.1]:53625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gknKf-0007Z4-5Y for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2019 04:54:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gknKY-0007Yl-PJ for emacs-devel@gnu.org; Sat, 19 Jan 2019 04:54:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gknKX-0005I3-UO for emacs-devel@gnu.org; Sat, 19 Jan 2019 04:54:22 -0500 Original-Received: from m12-12.163.com ([220.181.12.12]:43224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gknKV-00051S-JN for emacs-devel@gnu.org; Sat, 19 Jan 2019 04:54:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=0DBon 213gCPOr2O7Jlcnr40sJMY8m4mERd+NmTEo6hQ=; b=FKFrdY08YnyyiuxhhRJVF k4Y47I+EpNGMfVZRUPZq6mOwayNoJEdfbE9Ep0tkXWfmi+aZYPV8h3RNwxByDYqe HapMryJxV8L8H7L7/IX+/109RRB6HEVGImUBgECoHpNM3Rhd4WvyMh3LKAJmUAOW msXJNEq5Yt/Te/PDwL30hk= Original-Received: from tumashu (unknown [112.3.141.143]) by smtp8 (Coremail) with SMTP id DMCowACnIL7A80JcOYJbBw--.13180S2; Sat, 19 Jan 2019 17:54:09 +0800 (CST) In-Reply-To: <5C42EE9A.7070201@gmx.at> (martin rudalics's message of "Sat, 19 Jan 2019 10:32:10 +0100") X-CM-TRANSID: DMCowACnIL7A80JcOYJbBw--.13180S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uFykAFW8trW8AFy7tr1rtFb_yoW8uF47pa yjga9xArnrWr4vyFs8Kw4xGF98W3s8Wa42grWkAr10kw15trnrZrW3K34fA34IkF4DXr1S 9anYqryUWr1vya7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jVFALUUUUU= X-Originating-IP: [112.3.141.143] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiHQFB1FSIc05EGwAAs3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.12 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:232481 Archived-At: martin rudalics writes: >> 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'. > Does this mean: when tooltip-reuse-hiden-frame is t, the return of visible-frame-list will always do not show tooltip frame, no matter tooltip actuly show or hide? >> (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 > --