From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-redisplay-inline-images and export to HTML Date: Tue, 22 Jul 2014 11:40:18 -0400 Message-ID: <8761ip5rml.fsf@alphaville.bos.redhat.com> References: <87vbqq5mku.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9cBI-00016o-5y for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 11:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9cBB-0000b8-3u for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 11:40:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:56164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9cBA-0000aj-Qw for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 11:40:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X9cB8-0002mt-R8 for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 17:40:34 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Jul 2014 17:40:34 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Jul 2014 17:40:34 +0200 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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). Nick