emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
@ 2014-07-12  0:14 Grant Rettke
  2014-07-12  0:28 ` Ken Mankoff
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Rettke @ 2014-07-12  0:14 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

The ability to use graphviz in an org document is stellar and makes it
so much more productive to use org.

Combined with inline image display, it is a powerhouse combo.

After evaluating my source block, I would like to refresh the generated image.

Thus far, I just call org-display-inline-image.

What is the best way to automate it so that the images are always up to date?

Kind regards,

Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
  2014-07-12  0:14 How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed? Grant Rettke
@ 2014-07-12  0:28 ` Ken Mankoff
  2014-07-12 15:23   ` Grant Rettke
  2014-07-14 15:26   ` Rick Frankel
  0 siblings, 2 replies; 8+ messages in thread
From: Ken Mankoff @ 2014-07-12  0:28 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode


Try (org-redisplay-inline-images). Note "re".

#+BEGIN_SRC <lang> :post (org-redisplay-inline-images)
#+END_SRC
#+RESULTS:

  -k.

* On 2014-07-11 at 20:14, Grant Rettke wrote:
> Hi,
>
> The ability to use graphviz in an org document is stellar and makes it
> so much more productive to use org.
>
> Combined with inline image display, it is a powerhouse combo.
>
> After evaluating my source block, I would like to refresh the generated image.
>
> Thus far, I just call org-display-inline-image.
>
> What is the best way to automate it so that the images are always up to date?
>
> Kind regards,
>
> Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
> gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
  2014-07-12  0:28 ` Ken Mankoff
@ 2014-07-12 15:23   ` Grant Rettke
  2014-07-14 15:26   ` Rick Frankel
  1 sibling, 0 replies; 8+ messages in thread
From: Grant Rettke @ 2014-07-12 15:23 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode

Perfect!
Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Fri, Jul 11, 2014 at 7:28 PM, Ken Mankoff <mankoff@gmail.com> wrote:
>
> Try (org-redisplay-inline-images). Note "re".
>
> #+BEGIN_SRC <lang> :post (org-redisplay-inline-images)
> #+END_SRC
> #+RESULTS:
>
>   -k.
>
> * On 2014-07-11 at 20:14, Grant Rettke wrote:
>> Hi,
>>
>> The ability to use graphviz in an org document is stellar and makes it
>> so much more productive to use org.
>>
>> Combined with inline image display, it is a powerhouse combo.
>>
>> After evaluating my source block, I would like to refresh the generated image.
>>
>> Thus far, I just call org-display-inline-image.
>>
>> What is the best way to automate it so that the images are always up to date?
>>
>> Kind regards,
>>
>> Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
>> gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
>> “Wisdom begins in wonder.” --Socrates
>> ((λ (x) (x x)) (λ (x) (x x)))
>> “Life has become immeasurably better since I have been forced to stop
>> taking it seriously.” --Thompson
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a  graphviz block is evaluated the image is refreshed?
  2014-07-12  0:28 ` Ken Mankoff
  2014-07-12 15:23   ` Grant Rettke
@ 2014-07-14 15:26   ` Rick Frankel
  2014-07-14 22:10     ` John Kitchin
  2014-07-28 15:11     ` Sebastien Vauban
  1 sibling, 2 replies; 8+ messages in thread
From: Rick Frankel @ 2014-07-14 15:26 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode, Grant Rettke

On 2014-07-11 20:28, Ken Mankoff wrote:
> Try (org-redisplay-inline-images). Note "re".
> 
> #+BEGIN_SRC <lang> :post (org-redisplay-inline-images)
> #+END_SRC
> #+RESULTS:

I believe it is on WORG somewhere:

#+BEGIN_SRC emacs-lisp
(add-hook 'org-babel-after-execute-hook
(lambda () (org-display-inline-images nil t)))
#+END_SRC

rick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
  2014-07-14 15:26   ` Rick Frankel
@ 2014-07-14 22:10     ` John Kitchin
  2014-07-28 15:11     ` Sebastien Vauban
  1 sibling, 0 replies; 8+ messages in thread
From: John Kitchin @ 2014-07-14 22:10 UTC (permalink / raw)
  To: Rick Frankel; +Cc: emacs-orgmode, Ken Mankoff, Grant Rettke

That is a nice tip!
-- 
-----------------------------------
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
  2014-07-14 15:26   ` Rick Frankel
  2014-07-14 22:10     ` John Kitchin
@ 2014-07-28 15:11     ` Sebastien Vauban
  2014-07-28 15:19       ` Bastien
  1 sibling, 1 reply; 8+ messages in thread
From: Sebastien Vauban @ 2014-07-28 15:11 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Rick Frankel wrote:
> (add-hook 'org-babel-after-execute-hook
> (lambda () (org-display-inline-images nil t)))

I simply had:

--8<---------------cut here---------------start------------->8---
    (add-hook 'org-babel-after-execute-hook
              'org-display-inline-images)
--8<---------------cut here---------------end--------------->8---

Anyway, for me, this should clearly be made a *default*, nope?

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
  2014-07-28 15:11     ` Sebastien Vauban
@ 2014-07-28 15:19       ` Bastien
  2014-08-04 14:18         ` Sebastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-07-28 15:19 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Hi Sébastien,

Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:

> Rick Frankel wrote:
>> (add-hook 'org-babel-after-execute-hook
>> (lambda () (org-display-inline-images nil t)))
>
> I simply had:
>
>     (add-hook 'org-babel-after-execute-hook
>               'org-display-inline-images)
>
> Anyway, for me, this should clearly be made a *default*, nope?

I don't think so, displaying inline images can be perceived as
intrusive, it's good as an option.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?
  2014-07-28 15:19       ` Bastien
@ 2014-08-04 14:18         ` Sebastien Vauban
  0 siblings, 0 replies; 8+ messages in thread
From: Sebastien Vauban @ 2014-08-04 14:18 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello Bastien,

Still far from keeping up with missed postings, because of holiday
time... ;-)

Bastien wrote:
> Sebastien Vauban writes:
>> Rick Frankel wrote:
>>> (add-hook 'org-babel-after-execute-hook
>>> (lambda () (org-display-inline-images nil t)))
>>
>> I simply had:
>>
>>     (add-hook 'org-babel-after-execute-hook
>>               'org-display-inline-images)
>>
>> Anyway, for me, this should clearly be made a *default*, nope?
>
> I don't think so, displaying inline images can be perceived as
> intrusive, it's good as an option.

I (can) share your POV regarding having inline images on by default.

But, re-displaying the inline images should still be a default, IMO,
when these are enabled?

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-04 14:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-12  0:14 How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed? Grant Rettke
2014-07-12  0:28 ` Ken Mankoff
2014-07-12 15:23   ` Grant Rettke
2014-07-14 15:26   ` Rick Frankel
2014-07-14 22:10     ` John Kitchin
2014-07-28 15:11     ` Sebastien Vauban
2014-07-28 15:19       ` Bastien
2014-08-04 14:18         ` Sebastien Vauban

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).