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: Fri, 12 Jan 2018 09:47:28 +0100 Message-ID: <5A587620.8040201@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> <5A5742E7.3070303@gmx.at> <5A5799A5.1070305@gmx.at> <5A57B302.5090108@gmx.at> 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 1515746797 4523 195.159.176.226 (12 Jan 2018 08:46:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 08:46:37 +0000 (UTC) To: Drew Adams , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 09:46:33 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 1eZuym-0000Qt-8i for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 09:46:24 +0100 Original-Received: from localhost ([::1]:54394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZv0l-00012I-Os for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 03:48:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZuzx-000117-TR for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:47:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZuzu-0001gY-PF for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:47:37 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:53577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZuzu-0001gH-Ez for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:47:34 -0500 Original-Received: from [192.168.1.100] ([46.125.249.101]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LinyL-1f8R0G24y5-00d0qz; Fri, 12 Jan 2018 09:47:29 +0100 In-Reply-To: X-Provags-ID: V03:K0:+Swl/AFeeqJmc+dHNEquuQqz26gYGt7FUaTaCjxCT8WQJG2+yel b3XDlbtdi55XKoPyyDQnB2mIYp3WUFlxPMvYVwJowbKbsmDvlfxGVruELzG9UVJCW4mpl6f VoFN14TgvWfFZBo2+YCrrsuvPHu0muU25kMTJ/GseIzxNToaJrBeBZcjSGZN7dC8e1p5rnq lr6cjf0u3OBxze8LkBnmw== X-UI-Out-Filterresults: notjunk:1;V01:K0:UlIty2e8O9Y=:M1JpFm66EeCWn1nWTC2OjT rFKbGshu5QFx7QcWgpOt3wEa6HDwGiIY3N3A/WwWLWRpboUITwy9VGdDRbH+kfHJGM+K2DrfC 74LOnoa5t7qlNtyflnubvTdFHtThShmHqZqwzuu7thp4AWpvtZwlLiZgc001zVnAIDoCV5ghm qgFTxoJPr1Q1/ipZCeeUNZbGuP+PAvE904pCJ3THrD11/AE8wXU6QA/4l3BstghSCy272tot4 t/OSHvnguSLby1OnshYLloeQgPn1U+ufHHzKNuoYV6lhDLGav7HIEvlgE8vrkpCWM+kmmaQR5 Wsg+soWY5RfI4n9WTeaPROBe27XtWGZsIopIGN48qMjGEEHw96Q1XBU/QzunmuShjlnkmQEPr YHSqb8eZru4j5f7OrCmD6anOcLslAGKbQPJRMJ9C0gaReKUlSUbMVx3qa93JXnDsI4bBEhxnl etinX5MQVlYB/De6Tyhc/vLKTBJ6iiKT/bUqKpbuu+aWpc2M8hfxwBRPk7FeWh+Lxh+9JIfwE lIjvvtfQR3hS3ZJSaYXYo7X/7RiQGBSV5wa+pAbUbCe7RkbZ9ldeETe99PhdvXzMsC3u2AToo oIz5USz49BoNN9X3JZZqACSqbmKy/2FBfJsHnEqqTcXx2lIYm31eKCd+lWxrE49VRFcv47OCb ostKN1A88BW7bFPyj1cBk+Af4eLTcDNmbCfCWtTFxVcg56k5sd8idKEeeU5tlwQ1XPs+PU2na xSeTG4AIjvJ+4/9xuOCuFtheVhi71Nu7a/XEI/vVsxLsaB/2yZp9rmz59RH3qxa8ZROhOa3X X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 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:221876 Archived-At: >> The option `x-gtk-use-system-tooltips' decides whether to use system >> or Emacs tooltips. This is a user option and should never be set by >> Lisp code. > > Then that doesn't satisfy what I requested: > > "being able to choose for any given context which to use" > --------------------- > "Can we let Lisp code (and so users too) decide, here or > there, which kind of tooltip to use (heavyweight "Emacs" > or lightweight "system")?" Right. Such decisions must be left to the user. > And users on gtk-build systems can choose. Choice should > also be available to Lisp functions, as use cases differ. > It's of course possible to let a user option allow for > Lisp control or override/prevent it, au choix. > > Today, does changing the value of that user option change > the behavior dynamically? E.g., if you did change the > value using a given Lisp function would the behavior change? > > If so then some specific contexts could, by default, use > "Emacs" tooltips, while other contexts did not. I'd rather advise to set `x-gtk-use-system-tooltips' once in the init file and never change it during the session. > For example, tooltip-dimming for mode-line mouseover > could be done for non-Windows also, without imposing "Emacs" > tooltips everywhere. And users could prevent that dimming > using option `x-gtk-use-system-tooltips'. > > Since that's apparently possible for more than just Windows, > including for at least some GNU/Linux builds, that's what > we should do by default. I didn't propose it earlier > because I thought you were saying that it is only Windows > that supports faces in tooltips, and I know that we don't > tailor default Emacs behavior for Windows only. Please look into the implementation details of tooltips before suggesting such things. martin