emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: E Sabof <esabof@gmail.com>, Bastien <bzg@altern.org>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Auto-refreshing rendered images from org-babel
Date: Thu, 06 Feb 2014 10:46:31 +0100	[thread overview]
Message-ID: <52F359F7.10106@krugs.de> (raw)
In-Reply-To: <87ioss1swv.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]



On 02/06/14, 10:39 , E Sabof wrote:
> 
> Bastien <bzg@altern.org> 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.

I would go one step further - the possibility to define
org-babel-after-execute-hook as a header argument. This would make it
possible to refresh the inline images only after certain blocks are
executed and not after others.

Cheers,

Rainer

> 
> Evgeni
> 

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 560 bytes --]

  reply	other threads:[~2014-02-06  9:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 17:19 Auto-refreshing rendered images from org-babel E Sabof
2014-02-05 23:34 ` Bastien
2014-02-06  5:51   ` E Sabof
2014-02-06  8:45     ` Bastien
2014-02-06  9:06       ` E Sabof
2014-02-06  9:10         ` Bastien
2014-02-06  9:39           ` E Sabof
2014-02-06  9:46             ` Rainer M Krug [this message]
2014-02-06  9:52               ` Bastien
2014-02-06 10:09                 ` Rainer M Krug
2014-02-06 10:22                   ` Bastien
2014-02-06 10:26                     ` Rainer M Krug
2014-02-06 12:22               ` Eric S Fraga
2014-02-06 13:24                 ` Rainer M Krug

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52F359F7.10106@krugs.de \
    --to=rainer@krugs.de \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=esabof@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).