On Tue, Oct 11, 2016 at 12:01 PM, Stig Brautaset <s...@brautaset.org> wrote: > 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.
(defun help/org-babel-after-execute-hook () "HELP settings for the `org-babel-after-execute-hook'. This does not interfere with exports. Attribution: URL `https://lists.gnu.org/archive/html/emacs-orgmode/2015-01/msg00534.html'" (interactive) (org-redisplay-inline-images)) (add-hook 'org-babel-after-execute-hook #'help/org-babel-after-execute-hook)