From mboxrd@z Thu Jan 1 00:00:00 1970 From: E Sabof Subject: Re: Auto-refreshing rendered images from org-babel Date: Thu, 06 Feb 2014 09:39:44 +0000 Message-ID: <87ioss1swv.fsf@gmail.com> References: <874n4dh3zn.fsf@gmail.com> <87r47h9lrw.fsf@bzg.ath.cx> <87ob2k23i1.fsf@gmail.com> <87ha8cocic.fsf@bzg.ath.cx> <87mwi41uhl.fsf@gmail.com> <87y51omwsk.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBLR3-0001vH-Vi for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 04:39:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBLQy-0007A0-4i for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 04:39:53 -0500 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:63661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBLQx-00079w-U5 for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 04:39:48 -0500 Received: by mail-wi0-f178.google.com with SMTP id cc10so1379562wib.5 for ; Thu, 06 Feb 2014 01:39:46 -0800 (PST) In-reply-to: <87y51omwsk.fsf@bzg.ath.cx> 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: Bastien Cc: Org-mode Bastien writes: > Ok, thanks. I'd rather have ob-dot.el and friends have their own > hooks (e.g. org-babel-execute:dot-hook). But I'm not yet convince, > as `org-redisplay-inline-images' is already bound to `C-c C-x C-M-v'. I'm not a heavy babel user, but maybe something like this could be run from each time babel evaluates a block. A person wanting to run code for one language, but not another seems reasonable. (let* ((language (the-language-being-executed))) (run-hooks (intern (format "org-babel-execute:%s-hook" language)))) Alternatively a variable similar to org-babel-last-executed-language could be set before the existing hook runs, and customizations could be made from there. Evgeni