Recently I've noticed the function I had been using to do refresh had stopped working and I had to change to a simpler call.

I used to have:

(defun k/org-babel-refresh-inline-images ()
  (org-display-inline-images nil t))

(add-hook 'org-babel-after-execute-hook 'k/org-babel-refresh-inline-images)

which had been recommended on the mailing list.

However, that stopped working and I've found:

 (add-hook 'org-babel-after-execute-hook 'org-display-inline-images)

to work, but I'm not sure why the original stopped working. Presumably, the original version might be more efficient if it worked. Why doesn't it, and why was the original preferred?


This works for me on Emacs 24.4.1 with OS X using the included org-mode (note the use of redisplay vs. display).

(defun shk-fix-inline-images ()
  (when org-inline-image-overlays

(after-loading 'org
  (add-hook 'org-babel-after-execute-hook 'shk-fix-inline-images))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.