emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stig Brautaset <stig@brautaset.org>
To: emacs-orgmode@gnu.org
Subject: trying to automatically refresh inline images after org-babel-execute:ditaa
Date: Tue, 11 Oct 2016 18:01:10 +0100	[thread overview]
Message-ID: <m04m4iakh5.fsf@laterpay.net> (raw)

Hello!

I'm trying to automatically update inline ditaa images, by adding this
advice:

,----
|   (advice-add 'org-babel-execute:ditaa
|               :after
|               (lambda (a &rest b)
|                 (message "my sage advice")
|                 (org-redisplay-inline-images)))
`----

When hitting =C-c C-c= in a =#+begin_src ditaa= block I *do* get my sage
advice printed to *Messages*, but inline images just blinks out of
existence. Is the image overlay removed at a higher level?

Any advice (hah!) welcome.

Stig

-- 
: Stig Brautaset, GNU Emacs 25.1.1, Org-mode version 8.3.6

             reply	other threads:[~2016-10-11 17:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11 17:01 Stig Brautaset [this message]
2016-10-11 17:42 ` trying to automatically refresh inline images after org-babel-execute:ditaa Grant Rettke

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=m04m4iakh5.fsf@laterpay.net \
    --to=stig@brautaset.org \
    --cc=emacs-orgmode@gnu.org \
    /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).