From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 42521@debbugs.gnu.org
Subject: bug#42521: 28.0.50; Can't include an image in a display string
Date: Sat, 25 Jul 2020 08:54:48 +0300 [thread overview]
Message-ID: <83blk4dtqv.fsf@gnu.org> (raw)
In-Reply-To: <0ee06a27-b6e9-e381-64e4-51806c403509@yandex.ru> (message from Dmitry Gutov on Fri, 24 Jul 2020 22:40:02 +0300)
severity 42521 wishlist
thanks
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Fri, 24 Jul 2020 22:40:02 +0300
>
> (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.
This is a documented limitation of the current design and
implementation of the 'display' property. The ELisp manual says:
‘STRING’
Display STRING instead of the text that has this property.
Recursive display specifications are not supported—STRING’s
‘display’ properties, if any, are not used.
I never looked into lifting this restriction, so I don't know what
would that entail. There are probably some complications with faces,
at least. If someone wants to study the issue, that'd be welcome, I
think.
next prev parent reply other threads:[~2020-07-25 5:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-24 19:40 bug#42521: 28.0.50; Can't include an image in a display string Dmitry Gutov
2020-07-25 5:54 ` Eli Zaretskii [this message]
2020-07-25 10:26 ` Dmitry Gutov
2020-07-25 10:56 ` Eli Zaretskii
2020-07-25 11:34 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83blk4dtqv.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=42521@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).