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: Fix some tooltip related problems Date: Thu, 11 Jan 2018 11:56:39 +0100 Message-ID: <5A5742E7.3070303@gmx.at> References: <5A533FA4.4030507@gmx.at> <9384bae5-cbb9-4b4d-ac5c-1d01f01c8117@default> <5A53B633.5020706@gmx.at> <41d40db5-15d8-4b2c-a058-fb6dabc8bfd3@default> <5A548E7E.2040601@gmx.at> <5A55E8ED.1010602@gmx.at> <475d480b-3885-4779-ae46-09cf7fbbcee7@default> 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 1515668239 18884 195.159.176.226 (11 Jan 2018 10:57:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 10:57:19 +0000 (UTC) To: Drew Adams , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 11 11:57:15 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZaXl-0004Bh-T6 for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2018 11:57:10 +0100 Original-Received: from localhost ([::1]:34258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZaZj-0003pd-T4 for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2018 05:59:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZaXc-00029c-3M for emacs-devel@gnu.org; Thu, 11 Jan 2018 05:57:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZaXX-00015P-0Z for emacs-devel@gnu.org; Thu, 11 Jan 2018 05:57:00 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:49515) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZaXW-00013j-Nz for emacs-devel@gnu.org; Thu, 11 Jan 2018 05:56:54 -0500 Original-Received: from [192.168.1.100] ([213.162.73.239]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MN748-1eXPk92aVM-006j09; Thu, 11 Jan 2018 11:56:49 +0100 In-Reply-To: <475d480b-3885-4779-ae46-09cf7fbbcee7@default> X-Provags-ID: V03:K0:OINiYWJnCBRQHGDYEIYYJmzoYOQ7ttknlJCbq9KQZdctbetIUW8 foUn92PQYn7pkjjLEy4TUjx9Ec7Jsv3wo35WDKLtYoXH+gmGpbqRWxHUTeKHOFWXXywe+ls zStdJVEOJs37JJk22o6zjEqFHEBTMgmiFB/gY/CfoE2mxLdTF6Ei2Zr7LS6kYm9hCMn5G+S 8W47i+8MzTMqQunJEcMqw== X-UI-Out-Filterresults: notjunk:1;V01:K0:nFc4AHb0uj0=:t4VOoBx0jJDrjGUzEHUhrw dKpYArYVEGGH3bHT8UvwU4B5aZXHWWoCSYLHoT2+550TizxDouyimPAvIFJX85XKasdbI+pw1 NFeVBympMCCURIyvnSP1Z2B/BR7a+dalq5Ny+IH3Tn7uxtweo8M4oCtZT+jMtE5qRUE+4m4Kx aWthlfVzxJ3msfq/OfGNgKzP0/dJAROGVOnIpi0e8BHrw9eDXuTB9tOuneH+Q9kFrvZ7MN0ch ApQ0T99AQYfVMe28anKOFHcyhYOXt8cl1Mf5TXXd1J87f/53n7t0hawX3IP9tlyRMPo8eB/J1 GW+X8BDcRRQ5ym83PZfI2cVpbIeVRaVBxL1WoPonaAxfqfKnatDr6hamIGrhUNJ8Fc6DMtWfv q35AdQdD7Yc9MeUVjtQknSyF9UbqxC2AwQRkbsOf2QUbiU0fF2SLCpUe7dWeKdLOLWJmtqlDF sl4U/BSxAEZc9BS2KLmT04uuhC4jcFMXlhQd9b6jDK4tWRvyko7FhGCi42mJp6O4rxtABMH0D w9D7gPUNu8N+JuRsJSMqFmul6jkM6DxkpyTgT/blGDceiVubGBrWTHNEPLMNebAsC59/lajoA G4fGQ74ltb12Lu2XuKQaSWhFKHEJsE0F88HSNRTA5qZP/iouz2Sr5hLI+n69V57GIvKyNdZkk aW8lzhs2lgm+Qk3SEoXTz8IxWhPPlNG98gdNAmta5xs7ndYRaRl9PVDQu3FNlwh7xZ37BBl0+ 0GCY3T/Dq8MY4JP4zrG91neO4YTNcK2JG0f/OUsItlvuADVdMpaaXD71wD2JBnUU1pPV+54S X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 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:221829 Archived-At: > I thought that Emacs tooltips were Emacs frames. What > prevents Emacs from doing what it wants in such a frame? > This works for me, for example: > > (x-show-tip (propertize "abc" 'face '(:foreground "gray"))) > > What's different here from what you are talking about? > > OK, I'm using MS Windows. But does this not work also > on GNU/Linux and Mac? > > And if that doesn't work on such platforms, can't we use > a ("normal") Emacs frame where such things do work? Just > what is it that makes it impossible for Emacs to dim the > text in a tooltip? Sorry, but this is not clear to me. System tooltips are lightweight objects with restricted abilities. They have uniform appearance and the single tooltip window is usually shared among all running programs and the operating system. Emacs tooltips are merely an emulation of system tooltips. Most restrictions of system tooltips have been retrofit artificially, like uniform faces which are built into `tooltip-show' (but can be avoided by using `x-show-tip' as you mention above) or the fact that only one tooltip can be present at any time. The great disadvantage of Emacs tooltips is that they are heavyweight precisely due to their versatility. Showing an Emacs tooltip here on Windows with -Q incurs an entire GC cycle. Also, there are some minor annoyances like the one that showing Emacs tooltips for menu items depends on the presence of a blinking cursor. martin