From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render Date: Thu, 7 May 2015 19:44:45 +0200 Message-ID: <2DA4923E-4C05-45C4-99BE-3DCE73479094@swipnet.se> References: <554A6420.8090109@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1431020730 25194 80.91.229.3 (7 May 2015 17:45:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2015 17:45:30 +0000 (UTC) Cc: 20518-done@debbugs.gnu.org To: Xiaolong Zhang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 19:45:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YqPrK-0001jR-1u for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2015 19:45:18 +0200 Original-Received: from localhost ([::1]:52342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqPrJ-0006Km-2u for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2015 13:45:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqPrA-0006J0-9t for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 13:45:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqPr6-0001D2-U7 for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 13:45:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqPr6-0001CC-RN for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 13:45:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YqPr6-0002dW-CE for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 13:45:04 -0400 Resent-From: "Jan D." Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 May 2015 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20518@debbugs.gnu.org, jan.h.d@swipnet.se, xlzhang921@gmail.com Original-Received: via spool by 20518-done@debbugs.gnu.org id=D20518.143102069910103 (code D ref 20518); Thu, 07 May 2015 17:45:02 +0000 Original-Received: (at 20518-done) by debbugs.gnu.org; 7 May 2015 17:44:59 +0000 Original-Received: from localhost ([127.0.0.1]:38029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqPr0-0002cs-Iw for submit@debbugs.gnu.org; Thu, 07 May 2015 13:44:59 -0400 Original-Received: from mailfe09.swip.net ([212.247.155.1]:43623 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqPqw-0002cb-Kc for 20518-done@debbugs.gnu.org; Thu, 07 May 2015 13:44:56 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 421725929; Thu, 07 May 2015 19:44:46 +0200 In-Reply-To: <554A6420.8090109@gmail.com> X-Mailer: Apple Mail (2.2098) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102577 Archived-At: Hi. C-h f x-gtk-use-system-tooltips x-gtk-use-system-tooltips is a variable defined in `C source code'. Its value is t Documentation: If non-nil with a Gtk+ built Emacs, the Gtk+ tooltip is used. Otherwise use Emacs own tooltip implementation. When using Gtk+ tooltips, the tooltip face is not used. You can customize this variable. System tooltips only support text. Showing images in tooltips is = perverse IMHO. Jan D. > 6 maj 2015 kl. 20:57 skrev Xiaolong Zhang : >=20 >=20 > Hi list, >=20 > The Dired+ package has a feature that with on a image filename, it = will > display a thumbnail of that image. However, it seems that emacs does = not > render tooltip correctly on my machine. >=20 > Here is a code snippet I used for testing. >=20 >=20 > = -----------8<---------------8<--------------------------------------------= ---=20 > ;; text in buffer can show image correctly > (insert (propertize "text" 'display (create-image = "~/Dropbox/images/1.jpg"))) >=20 > ;; tooltip can't render image correctly > (defun get-tooltip(window object pos) > (propertize "tooltip" 'display (create-image = "~/Dropbox/images/1.jpg"))) > (insert (propertize "text" 'mouse-face 'highlight 'help-echo = 'get-tooltip)) >=20 > = -----------8<---------------8<--------------------------------------------= >=20 > This file line can insert an image rendered in the buffer > correctly. However, the second inserted text only show tooltip text, = but > not the image. >=20 > I have tested the same code with the same image file on Ubuntu > 12.04/14.04 with Emacs (24.5.1) -Q option. Both failed. >=20 > I have also tested the code on a Windows 8.1 machine with pre-build > Emacs 24.5. It render the tooltip image correctly. >=20 > I'm wondering if this is a bug of Emacs or Ubuntu? >=20 > Following is some auto-generated message for bug-report, so I keep it = FYI. >=20 > Thank you guys! >=20 > Best, > Xiaolong >=20 > In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) > of 2015-05-07 on xlzhang-HP-EliteBook-Folio-9470m > Windowing system distributor `The X.Org Foundation', version = 11.0.11501000 > System Description: Ubuntu 12.04.5 LTS >=20 > Important settings: > value of $LANG: en_HK.UTF-8 > value of $XMODIFIERS: @im=3Dfcitx > locale-coding-system: utf-8-unix >=20 > Major mode: Emacs-Lisp >=20 > Minor modes in effect: > tooltip-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t >=20 > Recent messages: > Mark set > Undo! > get-tooltip > nil > Undo! > nil > Undo! > Saving file /home/xlzhang/code/emacs-bug/emacs-bug.el... > Wrote /home/xlzhang/code/emacs-bug/emacs-bug.el > Making completion list... >=20 > Load-path shadows: > None found. >=20 > Features: > (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 = mml > mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev > gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util > help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip > electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win = x-dnd > tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment > lisp-mode prog-mode register page menu-bar rfn-eshadow timer select > scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame = cham > georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese hebrew greek romanian slovak czech european ethiopic > indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple > abbrev minibuffer nadvice loaddefs button faces cus-face macroexp = files > text-properties overlay sha1 md5 base64 format env code-pages mule > custom widget hashtable-print-readable backquote make-network-process > gfilenotify dynamic-setting system-font-setting font-render-setting > move-toolbar gtk x-toolkit x multi-tty emacs) >=20 > Memory information: > ((conses 16 72398 9042) > (symbols 48 17485 0) > (miscs 40 40 138) > (strings 32 9263 4439) > (string-bytes 1 254881) > (vectors 16 8985) > (vector-slots 8 383624 17310) > (floats 8 63 253) > (intervals 56 202 11) > (buffers 960 13) > (heap 1024 11163 546)) >=20 >=20 >=20