From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Live refresh of inline images with org-display-inline-images stopped working Date: Thu, 22 Jan 2015 14:34:49 +0100 Message-ID: <86lhkvuefa.fsf_-_@example.com> References: <87vbqq5mku.fsf@alphaville.bos.redhat.com> <8761ip5rml.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <8761ip5rml.fsf-/Z0n3E7Cx4sTdff2QS34phcY2uh10dtjAL8bYrjMMd8@public.gmane.org> (Nick Dokos's message of "Tue, 22 Jul 2014 11:40:18 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Nick Dokos Cc: emacs-orgmode-mXXj517/zsQ@public.gmane.org Nick Dokos wrote: > Brett Viren writes: >> Nick Dokos writes: >> >>> I think you'd be better off with the tip that Rick Frankel posted in >>> the same thread: >>> >>> #+BEGIN_SRC emacs-lisp >>> (add-hook 'org-babel-after-execute-hook >>> (lambda () (org-display-inline-images nil t))) >>> #+END_SRC >> >> Thanks Nick (and Rick). I changed this to use the "re" version: >> >> #+BEGIN_SRC emacs-lisp >> (add-hook 'org-babel-after-execute-hook >> (lambda () (org-redisplay-inline-images))) >> #+END_SRC >> >> and it works great! > > It should work with the non-"re" version as well (and it is more > efficient that way - particularly if you call it with refresh == t). As experienced by wdkmls [1], I noticed that the non-"re" version stopped working -- preferred as it was the most efficient one. OTOH, the "re" version does work as expected. Best regards, Seb [1] http://emacs.stackexchange.com/questions/3302/live-refresh-of-inline-images-with-org-display-inline-images -- Sebastien Vauban