Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-08-04 Thread Sebastien Vauban
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




Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-28 Thread Sebastien Vauban
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




Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-28 Thread Bastien


Hi Sébastien,

Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@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




Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-14 Thread Rick Frankel

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



Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-14 Thread John Kitchin
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



Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-12 Thread Grant Rettke
Perfect!
Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
g...@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 mank...@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
 g...@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




[O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-11 Thread Grant Rettke
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
g...@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



Re: [O] How to call org-display-inline-images so that after a graphviz block is evaluated the image is refreshed?

2014-07-11 Thread Ken Mankoff

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
 g...@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