Re: Images generated by R code blocks do not display

2022-12-11 Thread William Denton
On 10 December 2022, Ihor Radchenko wrote: Ihor Radchenko writes: I now reported this to Emacs upstream. I do not see anything wrong on Org side in this case. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59902 Since the bug will affect older Emacs versions, I pushed a workaround to bugfix.

Re: Images generated by R code blocks do not display

2022-12-10 Thread Ihor Radchenko
Ihor Radchenko writes: > I now reported this to Emacs upstream. > I do not see anything wrong on Org side in this case. > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59902 Since the bug will affect older Emacs versions, I pushed a workaround to bugfix. https://git.savannah.gnu.org/cgit/emacs/o

Re: Images generated by R code blocks do not display

2022-12-08 Thread William Denton
On 8 December 2022, Ihor Radchenko wrote: I now reported this to Emacs upstream. I do not see anything wrong on Org side in this case. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59902 Thanks for reporting this there. I like how you simplified the bug example with the two images, so nothin

Re: Images generated by R code blocks do not display

2022-12-08 Thread Ihor Radchenko
William Denton writes: >> Could you please confirm? > > Confirmed! I now reported this to Emacs upstream. I do not see anything wrong on Org side in this case. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59902 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: Images generated by R code blocks do not display

2022-11-28 Thread William Denton
I tried git bisect and, if I did it right, the problem may have started here: commit 46b71f910844c14d8db1feb54c07de26d101cc05 Author: stardiviner Date: Tue Oct 4 12:36:32 2022 +0800 org.el: Support auto display inline images when cycling * lisp/org.el (org-toggle-inline-images): Supp

Re: Images generated by R code blocks do not display

2022-11-28 Thread William Denton
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 t

Re: Images generated by R code blocks do not display

2022-11-27 Thread Jeremie Juste
Hello Ihor, On Sunday, 27 Nov 2022 at 13:21, Ihor Radchenko wrote: > Jeremie Juste writes: > >> I tried to reproduce your steps on Org mode version 9.6-pre >> (release_9.5.5-1096-gf83e45.dirty @ /home/djj/src/org-mode/lisp/). >> >> and I get stuck at step 12, Inline display image cannot be switc

Re: Images generated by R code blocks do not display

2022-11-27 Thread Ihor Radchenko
Jeremie Juste writes: > I tried to reproduce your steps on Org mode version 9.6-pre > (release_9.5.5-1096-gf83e45.dirty @ /home/djj/src/org-mode/lisp/). > > and I get stuck at step 12, Inline display image cannot be switched on > again. Not switching on again has been fixed in https://git.savann

Re: Images generated by R code blocks do not display

2022-11-27 Thread Jeremie Juste
Hello Ihor, On Friday, 25 Nov 2022 at 02:03, Ihor Radchenko wrote: > > What I did is > > 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 3

Re: Images generated by R code blocks do not display

2022-11-24 Thread Ihor Radchenko
William Denton writes: > I refreshed the source just now, and it's at commit 183c66be97c: > > GNU Emacs 29.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo > version 1.16.0) of 2022-11-23 > > I reran the convert image command, and the (clear-image-cache) problem is > still > the

Re: Images generated by R code blocks do not display

2022-11-23 Thread William Denton
On 24 November 2022, Ihor Radchenko wrote: William Denton writes: What if you run M-: (clear-image-cache) before C-c C-x C-v? That does it! Strange. I am unable to reproduce the issue on my side (using the earlier bash code block you provided). What is your Emacs version? I refreshed t

Re: Images generated by R code blocks do not display

2022-11-23 Thread Ihor Radchenko
William Denton writes: >> What if you run M-: (clear-image-cache) before C-c C-x C-v? > > That does it! Strange. I am unable to reproduce the issue on my side (using the earlier bash code block you provided). What is your Emacs version? -- Ihor Radchenko // yantar92, Org mode contributor, Lea

Re: Images generated by R code blocks do not display

2022-11-23 Thread William Denton
On 24 November 2022, Ihor Radchenko wrote: William Denton writes: + C-c C-c (execute R block again) + answer yes to "Evaluate this?" question + image disappears + C-c C-x C-v (to see image) + image is still 300 pixels square! What if you run M-: (clear-image-cache) before C-c C-x C-v? Tha

Re: Images generated by R code blocks do not display

2022-11-23 Thread Ihor Radchenko
William Denton writes: > + C-c C-c (execute R block again) > + answer yes to "Evaluate this?" question > + image disappears > + C-c C-x C-v (to see image) > + image is still 300 pixels square! What if you run M-: (clear-image-cache) before C-c C-x C-v? -- Ihor Radchenko // yantar92, Org mode

Re: Images generated by R code blocks do not display

2022-11-23 Thread William Denton
On 24 November 2022, Ihor Radchenko wrote: The image should appear immediately in the buffer, shouldn't it? No, it should not. Though it is often requested. Huh, strange. It's always done it for me, at least with R code blocks, as far as I can remember. But back to my original problem!

Re: Images generated by R code blocks do not display

2022-11-23 Thread Ihor Radchenko
William Denton writes: > #+begin_src sh :results graphics file :file /tmp/colour.png > convert -size 300x300 xc:#002b36 /tmp/colour.png > #+end_src > > # - > > But the image doesn't appear right away: > > + C-x C-f (load this file) > + C-c C-c (to execute) > + Say yes to "Evalute this sh code

Re: Images generated by R code blocks do not display

2022-11-23 Thread William Denton
Thanks for looking at this. You've fixed the org-toggle-inline-images problem, but the image generation and display problem is still there for me. Here's a one-liner shell block that generates an image with Imagemagick, so no extra Emacs packages necessary: # - #+begin_src sh :results g

Re: Images generated by R code blocks do not display

2022-11-23 Thread Ihor Radchenko
William Denton writes: > In Emacs: > > + C-x C-f (load r.org wherever it is) > + C-c C-c (to execute the R code) > + Say yes to "Evaluate this R code block on your system?" > + #RESULTS block appears (good) but image does not show > + C-c C-x C-v (to toggle image display) > + image appears > + C-