From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#42521: 28.0.50; Can't include an image in a display string Date: Fri, 24 Jul 2020 22:40:02 +0300 Message-ID: <0ee06a27-b6e9-e381-64e4-51806c403509@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23261"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: 42521@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 24 21:41:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jz3Z9-0005yK-1O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jul 2020 21:41:11 +0200 Original-Received: from localhost ([::1]:39330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jz3Z7-00058u-M2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Jul 2020 15:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jz3Z0-00058m-MZ for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 15:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jz3Z0-0003yR-Dn for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 15:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jz3Z0-000503-C3 for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 15:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jul 2020 19:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42521 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159561961419151 (code B ref -1); Fri, 24 Jul 2020 19:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jul 2020 19:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:48774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jz3YD-0004yp-N2 for submit@debbugs.gnu.org; Fri, 24 Jul 2020 15:40:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jz3YA-0004yg-CU for submit@debbugs.gnu.org; Fri, 24 Jul 2020 15:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jz3YA-00050D-5L for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 15:40:10 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:50816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jz3Y7-0003jQ-Dx for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2020 15:40:09 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id c80so8890705wme.0 for ; Fri, 24 Jul 2020 12:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:subject:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=hs80iRjASgnIi7v86INh9x4CFsw+7IVFPVQ0dNSEPwU=; b=uwDt4fEE3Gyjysp/GC2ma2LqYL5/M08yCqB2dTokf8YpByEiV9qR5zugJyd1rGuhSG FcKOnf3YOalAleIIg9bXXCggD9Y5KGyK6Dzjo/Pmn8nvvi0SYs+8pmv8wSfwcCZCYyWY e+LZmKd25hdAKpBWLpRwOfp7308mYCm9DK++XT9/yrlPWw9Nl+bY5s92RwlOiNLjKOtU QoMFEI2VUG5xh0MKoAc48SHhvevL6R0bLdfC5RAdELf/LMmROassB5zu0qdqu2Ye8ioK MgmyfTt0NlyciH2kuRmcbfKxDuF+4u4DBzZqCtKI094oTUSyBSYaVnnjcOX9NG0v/amL LBzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:subject:from:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=hs80iRjASgnIi7v86INh9x4CFsw+7IVFPVQ0dNSEPwU=; b=GWn+nK5hmOFmnl12XfDYq82PqzUiuYWX4xDmpOxPMuVPVVwj3ZsymVA1GMlEa8sdbP +13f5furlkFDvnsMSZOhjRuKLgC93mDVKnaFzKCCnwS2+Qxo5AGFzoYwQaVXo5PuQqNF U7+Z1EolOTx6Iguxaq4rj/VXhPxefU69EycR336ZCZmpHiCXYBNZp5G2b4lh1ywIHXFz BSBQGgnc9bqfVS+gWCjho+9WYhaS0nPrYfAVtTpcfa8+Oy1p431fMQsuv4dV0CJ9CwwV l2oglKulBJk4B78+UJWFUhNEmvv6PtPd80S7nBB3I+iaGz6c6ptYos0YoYQyiQojNP0s ygbg== X-Gm-Message-State: AOAM533rVdG5gsqesQ+2eBVPIEkWNQRZn/08t//lqcdq5ol1ECDKKvY3 rDfym03mqDDx0rCYVLaA5MUxbjIL X-Google-Smtp-Source: ABdhPJz1xujQ5kRYA2qmKKDJlimWtkhPEvdPgM/7nnuxs7EWrWgn1bOeXaAHjvfZ2hLuTPJ8M+W60g== X-Received: by 2002:a05:600c:2949:: with SMTP id n9mr9905108wmd.69.1595619605160; Fri, 24 Jul 2020 12:40:05 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id j6sm2519023wro.25.2020.07.24.12.40.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jul 2020 12:40:04 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183505 Archived-At: (progn (erase-buffer) (insert " ") (setq o (make-overlay (point-min) (point))) (overlay-put o 'display (concat (propertize " " 'display (create-image "splash.svg" nil nil :max-height (default-font-height))) " text after image"))) The script above will end with a blank space instead of an image being displayed. To compare: replace the first 'display symbol with 'after-string, and the image is displayed. Why do we need this: if this worked, we would implement icons display in the default completion popup in company-mode. It's a feature that has been requested for a while. See the discussion here: https://github.com/company-mode/company-mode/pull/996#issuecomment-662743347 Unfortunately, as we seem to have concluded in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18285 and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20847, I have to use the `display' overlay property in most of the cases. P.S. This is not a regression, Emacs 26.3 is the same. In GNU Emacs 28.0.50 (build 25, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-07-20 built on potemkin Repository revision: 4c08c2f45b9bb0265f6d7c3529011dee1b18e843 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 20.04 LTS