From unknown Mon Jun 23 04:14:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render Resent-From: Xiaolong Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 May 2015 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20518@debbugs.gnu.org Cc: xlzhang921@gmail.com X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143093934614341 (code B ref -1); Wed, 06 May 2015 19:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 May 2015 19:09:06 +0000 Received: from localhost ([127.0.0.1]:36539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4gq-0003jC-VX for submit@debbugs.gnu.org; Wed, 06 May 2015 15:09:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58239) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4WD-0001yK-OL for submit@debbugs.gnu.org; Wed, 06 May 2015 14:58:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq4W7-0000U1-5r for submit@debbugs.gnu.org; Wed, 06 May 2015 14:58:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq4W7-0000Tx-2R for submit@debbugs.gnu.org; Wed, 06 May 2015 14:57:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq4Vu-00051a-Ow for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 14:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq4Vr-00007h-Ia for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 14:57:46 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:35131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq4Vr-00007Q-Bf for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 14:57:43 -0400 Received: by pabtp1 with SMTP id tp1so17234639pab.2 for ; Wed, 06 May 2015 11:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=V3jM8U20SvnSeqByNZ+m9BZ8WHsCiSI8cj/PchdVXns=; b=WG7KxSX+s+DvfbiBj6q8R5PiR38iw9ORpc6hRR55/ocC1DZvNm/DeVgEsNSRNuFMg4 q5+D3APd7kYLjjIc1dMmUsXW0fmkSCM9c28R2/LypMHFfSb0uNPinL7bWv5Gm5oagbDO SqJbIVATe1xK2G8jP2qUR2xujpLZCFveLz3eGeLe+TdOiUAeRISJxjmKpH0xj+sQz3sq HoliULR+RyWCFnHrV57pSpiYB3JzUaeLeAKpNF5VCrJl1SILwzzl02fSulSsRKUhnVQA BrYLUCKZGdZgjVHzSCLgnAKZUIPow4jF736gwEPA/8Gu791TmHFj+EgT+s48T4I4tYsg jLkA== X-Received: by 10.68.57.143 with SMTP id i15mr257745pbq.9.1430938661912; Wed, 06 May 2015 11:57:41 -0700 (PDT) Received: from [147.8.179.238] (host-179-238.cs.hku.hk. [147.8.179.238]) by mx.google.com with ESMTPSA id p1sm2586120pdl.60.2015.05.06.11.57.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 11:57:41 -0700 (PDT) Message-ID: <554A6420.8090109@gmail.com> Date: Thu, 07 May 2015 02:57:36 +0800 From: Xiaolong Zhang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Wed, 06 May 2015 15:09:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) Hi list, 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. Here is a code snippet I used for testing. -----------8<---------------8<----------------------------------------------- ;; text in buffer can show image correctly (insert (propertize "text" 'display (create-image "~/Dropbox/images/1.jpg"))) ;; 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)) -----------8<---------------8<-------------------------------------------- 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. 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. I have also tested the code on a Windows 8.1 machine with pre-build Emacs 24.5. It render the tooltip image correctly. I'm wondering if this is a bug of Emacs or Ubuntu? Following is some auto-generated message for bug-report, so I keep it FYI. Thank you guys! Best, Xiaolong 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 Important settings: value of $LANG: en_HK.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Emacs-Lisp 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 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... Load-path shadows: None found. 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) 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)) From unknown Mon Jun 23 04:14:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Xiaolong Zhang Subject: bug#20518: closed (Re: bug#20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render) Message-ID: References: <2DA4923E-4C05-45C4-99BE-3DCE73479094@swipnet.se> <554A6420.8090109@gmail.com> X-Gnu-PR-Message: they-closed 20518 X-Gnu-PR-Package: emacs Reply-To: 20518@debbugs.gnu.org Date: Thu, 07 May 2015 17:45:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1431020704-10119-1" This is a multi-part message in MIME format... ------------=_1431020704-10119-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20518@debbugs.gnu.org. --=20 20518: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20518 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1431020704-10119-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20518-done) by debbugs.gnu.org; 7 May 2015 17:44:59 +0000 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 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 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 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: bug#20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render From: "Jan D." In-Reply-To: <554A6420.8090109@gmail.com> Date: Thu, 7 May 2015 19:44:45 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2DA4923E-4C05-45C4-99BE-3DCE73479094@swipnet.se> References: <554A6420.8090109@gmail.com> To: Xiaolong Zhang X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 20518-done Cc: 20518-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 ------------=_1431020704-10119-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 May 2015 19:09:06 +0000 Received: from localhost ([127.0.0.1]:36539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4gq-0003jC-VX for submit@debbugs.gnu.org; Wed, 06 May 2015 15:09:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58239) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq4WD-0001yK-OL for submit@debbugs.gnu.org; Wed, 06 May 2015 14:58:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq4W7-0000U1-5r for submit@debbugs.gnu.org; Wed, 06 May 2015 14:58:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq4W7-0000Tx-2R for submit@debbugs.gnu.org; Wed, 06 May 2015 14:57:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq4Vu-00051a-Ow for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 14:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq4Vr-00007h-Ia for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 14:57:46 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:35131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq4Vr-00007Q-Bf for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 14:57:43 -0400 Received: by pabtp1 with SMTP id tp1so17234639pab.2 for ; Wed, 06 May 2015 11:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=V3jM8U20SvnSeqByNZ+m9BZ8WHsCiSI8cj/PchdVXns=; b=WG7KxSX+s+DvfbiBj6q8R5PiR38iw9ORpc6hRR55/ocC1DZvNm/DeVgEsNSRNuFMg4 q5+D3APd7kYLjjIc1dMmUsXW0fmkSCM9c28R2/LypMHFfSb0uNPinL7bWv5Gm5oagbDO SqJbIVATe1xK2G8jP2qUR2xujpLZCFveLz3eGeLe+TdOiUAeRISJxjmKpH0xj+sQz3sq HoliULR+RyWCFnHrV57pSpiYB3JzUaeLeAKpNF5VCrJl1SILwzzl02fSulSsRKUhnVQA BrYLUCKZGdZgjVHzSCLgnAKZUIPow4jF736gwEPA/8Gu791TmHFj+EgT+s48T4I4tYsg jLkA== X-Received: by 10.68.57.143 with SMTP id i15mr257745pbq.9.1430938661912; Wed, 06 May 2015 11:57:41 -0700 (PDT) Received: from [147.8.179.238] (host-179-238.cs.hku.hk. [147.8.179.238]) by mx.google.com with ESMTPSA id p1sm2586120pdl.60.2015.05.06.11.57.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 11:57:41 -0700 (PDT) Message-ID: <554A6420.8090109@gmail.com> Date: Thu, 07 May 2015 02:57:36 +0800 From: Xiaolong Zhang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 06 May 2015 15:09:03 -0400 Cc: xlzhang921@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) Hi list, 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. Here is a code snippet I used for testing. -----------8<---------------8<----------------------------------------------- ;; text in buffer can show image correctly (insert (propertize "text" 'display (create-image "~/Dropbox/images/1.jpg"))) ;; 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)) -----------8<---------------8<-------------------------------------------- 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. 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. I have also tested the code on a Windows 8.1 machine with pre-build Emacs 24.5. It render the tooltip image correctly. I'm wondering if this is a bug of Emacs or Ubuntu? Following is some auto-generated message for bug-report, so I keep it FYI. Thank you guys! Best, Xiaolong 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 Important settings: value of $LANG: en_HK.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Emacs-Lisp 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 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... Load-path shadows: None found. 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) 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)) ------------=_1431020704-10119-1-- From unknown Mon Jun 23 04:14:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render Resent-From: Xiaolong Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 May 2015 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Jan D." Cc: 20518-done@debbugs.gnu.org Received: via spool by 20518-done@debbugs.gnu.org id=D20518.143102330419865 (code D ref 20518); Thu, 07 May 2015 18:29:02 +0000 Received: (at 20518-done) by debbugs.gnu.org; 7 May 2015 18:28:24 +0000 Received: from localhost ([127.0.0.1]:38064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqQX1-0005AJ-2s for submit@debbugs.gnu.org; Thu, 07 May 2015 14:28:24 -0400 Received: from mail-ie0-f170.google.com ([209.85.223.170]:36705) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqQWx-0005A5-Di for 20518-done@debbugs.gnu.org; Thu, 07 May 2015 14:28:20 -0400 Received: by iecnq11 with SMTP id nq11so46473447iec.3 for <20518-done@debbugs.gnu.org>; Thu, 07 May 2015 11:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sQ5y4flc9lSqwKLqzp872uFC2FV2NMveOOKxgC4SjEM=; b=B7xCjaPz/QVOZl4DVBw9tFzYAtQv3GXn5QBg6LoDvhz1+wl7L9xlmnkM83KkLZ2bPR 7IRnO0upnIqdI/CNg56jIpJRf+SETcMlcJLrLaEzEsDmPni/SVhnc8tWEmy2txS0g5uy rGQkAzXh44bmsfM3NEpTOGHOy0nfFktICXlYBe4lwGz7nZ7hzc+1464BoV8izcWYFsSg 02pKWN6DkHUwXSr5o0uFvXBWtcr2DzdzrPAYUeIav0zdc9H6Ae0dVeYru7YISGIptmI3 QDVSnlgmoRLHjY1F90hBCaIZK4nzOvYtlHb3KQsK/+E2s+gHbMvAeYUHTPGiVzy9lZjM 13+w== MIME-Version: 1.0 X-Received: by 10.50.13.5 with SMTP id d5mr6323214igc.4.1431023293867; Thu, 07 May 2015 11:28:13 -0700 (PDT) Received: by 10.64.79.33 with HTTP; Thu, 7 May 2015 11:28:13 -0700 (PDT) In-Reply-To: <2DA4923E-4C05-45C4-99BE-3DCE73479094@swipnet.se> References: <554A6420.8090109@gmail.com> <2DA4923E-4C05-45C4-99BE-3DCE73479094@swipnet.se> Date: Fri, 8 May 2015 02:28:13 +0800 Message-ID: From: Xiaolong Zhang Content-Type: multipart/alternative; boundary=089e0122a25e18ad8b0515821387 X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --089e0122a25e18ad8b0515821387 Content-Type: text/plain; charset=UTF-8 Hi Jan D, Thank you very much! It worked. Best regards, Xiaolong On Fri, May 8, 2015 at 1:44 AM, Jan D. wrote: > 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 : > > > > > > Hi list, > > > > 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. > > > > Here is a code snippet I used for testing. > > > > > > > -----------8<---------------8<----------------------------------------------- > > ;; text in buffer can show image correctly > > (insert (propertize "text" 'display (create-image > "~/Dropbox/images/1.jpg"))) > > > > ;; 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)) > > > > > -----------8<---------------8<-------------------------------------------- > > > > 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. > > > > 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. > > > > I have also tested the code on a Windows 8.1 machine with pre-build > > Emacs 24.5. It render the tooltip image correctly. > > > > I'm wondering if this is a bug of Emacs or Ubuntu? > > > > Following is some auto-generated message for bug-report, so I keep it > FYI. > > > > Thank you guys! > > > > Best, > > Xiaolong > > > > 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 > > > > Important settings: > > value of $LANG: en_HK.UTF-8 > > value of $XMODIFIERS: @im=fcitx > > locale-coding-system: utf-8-unix > > > > Major mode: Emacs-Lisp > > > > 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 > > > > 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... > > > > Load-path shadows: > > None found. > > > > 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) > > > > 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)) > > > > > > > > --089e0122a25e18ad8b0515821387 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jan D,

Thank you very much! It worked.
Best regards,
Xiaolong

On Fri, May 8, 2015 at 1:44 AM, = Jan D. <jan.h.d@swipnet.se> wrote:
Hi.

C-h f x-gtk-use-system-tooltips <RET>

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.=C2=A0 Showing images in tooltips is perv= erse IMHO.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Jan D.


> 6 maj 2015 kl. 20:57 skrev Xiaolong Zhang <xlzhang921@gmail.com>:
>
>
> Hi list,
>
> The Dired+ package has a feature that with on a image filename, it wil= l
> display a thumbnail of that image. However, it seems that emacs does n= ot
> render tooltip correctly on my machine.
>
> Here is a code snippet I used for testing.
>
>
> -----------8<---------------8<----------------------------------= -------------
> ;; text in buffer can show image correctly
> (insert (propertize "text" 'display (create-image "= ~/Dropbox/images/1.jpg")))
>
> ;; tooltip can't render image correctly
> (defun get-tooltip(window object pos)
> (propertize "tooltip" 'display (create-image "~/Dro= pbox/images/1.jpg")))
> (insert (propertize "text" 'mouse-face 'highlight &#= 39;help-echo 'get-tooltip))
>
> -----------8<---------------8<----------------------------------= ----------
>
> This file line can insert an image rendered in the buffer
> correctly. However, the second inserted text only show tooltip text, b= ut
> not the image.
>
> 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.
>
> I have also tested the code on a Windows 8.1 machine with pre-build > Emacs 24.5. It render the tooltip image correctly.
>
> I'm wondering if this is a bug of Emacs or Ubuntu?
>
> Following is some auto-generated message for bug-report, so I keep it = FYI.
>
> Thank you guys!
>
> Best,
> Xiaolong
>
> 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
>
> Important settings:
> value of $LANG: en_HK.UTF-8
> value of $XMODIFIERS: @im=3Dfcitx
> locale-coding-system: utf-8-unix
>
> Major mode: Emacs-Lisp
>
> 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
>
> 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...
>
> Load-path shadows:
> None found.
>
> Features:
> (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 m= ml
> 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-d= nd
> 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 ch= am
> 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<= br> > abbrev minibuffer nadvice loaddefs button faces cus-face macroexp file= s
> text-properties overlay sha1 md5 base64 format env code-pages mule
> custom widget hashtable-print-readable backquote make-network-process<= br> > gfilenotify dynamic-setting system-font-setting font-render-setting > move-toolbar gtk x-toolkit x multi-tty emacs)
>
> 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))
>
>
>


--089e0122a25e18ad8b0515821387--