emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] trying to automatically refresh inline images after org-babel-execut


From: Stig Brautaset
Subject: [O] trying to automatically refresh inline images after org-babel-execute:ditaa
Date: Tue, 11 Oct 2016 18:01:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin)

Hello!

I'm trying to automatically update inline ditaa images, by adding this
advice:

,----
|   (advice-add 'org-babel-execute:ditaa
|               :after
|               (lambda (a &rest b)
|                 (message "my sage advice")
|                 (org-redisplay-inline-images)))
`----

When hitting =C-c C-c= in a =#+begin_src ditaa= block I *do* get my sage
advice printed to *Messages*, but inline images just blinks out of
existence. Is the image overlay removed at a higher level?

Any advice (hah!) welcome.

Stig

-- 
: Stig Brautaset, GNU Emacs 25.1.1, Org-mode version 8.3.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]