Can you (or someone) help me test one thing: how do I hook my own image into Emacs image? Say that I have code that gives me back an XImage, how do I hook that image directly from memory into text property so it gets displayed in a buffer? Either XImage or Xpixmap, does not matter. I was looking in image.c long time but I didn't figured it out at the time. -------- Originalmeddelande -------- Från: Stefan Monnier Datum: 2020-10-15 04:08 (GMT+01:00) Till: Akira Kyle Kopia: Eli Zaretskii , qhong@mit.edu, emacs-devel@gnu.org Ämne: Re: Rethinking the design of xwidgets > I didn't mean the code that actually draws the plot the, but rather the > computation that was run to generate the data that the plot is displaying as > in principle that could be very expensive, which is why I was talking about > having to cache the data that the plot is working from. Sometimes, people who have worked on the code for a long time (like myself) get "stuck in a rut" and fail to see how a different approach could come with all kinds of strong advantages which makes it worthwhile (despite the many downsides that we can foresee and which you luckily can't see as clearly). So I encourage you to try the approach you imagine, and see where it leads you. It will have significant shortcomings, most likely, but that doesn't mean it can't be tremendously useful and successful. Just be aware of the fact that it may also turn out to be just not very satisfactory. Stefan