Subject: Re: bug#42521: 28.0.50; Can't include an image in a display string

From: Dmitry Gutov <[email-masked]>
Date: Sat, 25 Jul 2020 13:26:19 +0300

On 25.07.2020 08:54, Eli Zaretskii wrote:
>         Recursive display specifications are not supported—STRING’s
>         ‘display’ properties, if any, are not used.

I see, thank you.

But what about other ways to reach the same goal?

Like supporting image spec placed on 'before-string' instead of 'display':

(progn
   (erase-buffer)
   (insert " ")
   (setq o (make-overlay (point-min) (point)))
   (overlay-put o 'display
                (propertize " text after image"
                            'before-string
                            (create-image "splash.svg" nil nil
                                          :max-height
                                          (default-font-height)))))

If this worked, I would actually prefer it.