bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Dmitry Gutov
Subject: bug#42521: 28.0.50; Can't include an image in a display string
Date: Sat, 25 Jul 2020 13:26:19 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]