From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xiaolong Zhang Newsgroups: gmane.emacs.bugs Subject: bug#20518: 24.5; Tooltip on Ubuntu 12.04/14.04 can't render Date: Thu, 07 May 2015 02:57:36 +0800 Message-ID: <554A6420.8090109@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1430940617 9794 80.91.229.3 (6 May 2015 19:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2015 19:30:17 +0000 (UTC) Cc: xlzhang921@gmail.com To: 20518@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 06 21:30:05 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 1Yq518-0003hm-TS for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 May 2015 21:30:03 +0200 Original-Received: from localhost ([::1]:46879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq518-00065R-0Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 May 2015 15:30:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq512-00062O-4v for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 15:29:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq50y-0004HT-ND for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 15:29:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq50y-0004Gg-JQ for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 15:29:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yq4hn-0003l2-5s for bug-gnu-emacs@gnu.org; Wed, 06 May 2015 15:10:03 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143093934614341 (code B ref -1); Wed, 06 May 2015 19:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 May 2015 19:09:06 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 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-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 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:102550 Archived-At: 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))