On 25 November 2022, Ihor Radchenko wrote:

1. cd /path/to/org/repo
2. git checkout main
3. make repro
4. M-: (require 'ob-shell)
5. Open the following org file

#+begin_src sh :results graphics file :file /tmp/colour.png
convert -size 300x300 xc:#002b36 /tmp/colour.png
#+end_src

6. Move point to the source block and C-c C-c yes
7. C-c C-x C-v
8. Observe the 300x300 image appearing
9. Edit the source code to 500x300
10. C-c C-c yes
11. Image disappears
12. C-c C-x C-v
13. Observe what appears to be the old 300x300 image
14. Move the cursor to the image
15. Observe the correct 500x300 appearing while the cursor is on it!!

Could you please confirm?

Confirmed! Just as Jeremie did also. I'd seen this image-switching behaviour before and hadn't been able to recreate it with a simple example, but there it is. "This is very strange," indeed.

I don't know if this is useful, but:

16.  Edit source code back to 300x300
17.  C-c C-c yes
18.  Image disappears
19.  C-c C-x C-v
20.  300x300 image appears (a new one?  or the first one?)
21.  Move the cursor to the image
22.  The now incorrect 500x300 appears while the cursor is on it, same as 15

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada

Reply via email to