emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: where to place caption so babel results include caption?
Date: Sat, 09 Nov 2019 23:28:23 +0100	[thread overview]
Message-ID: <87ftiw1y7s.fsf@gmail.com> (raw)
In-Reply-To: <87imnx9cai.fsf@gmail.com>


On 2019-11-06 at 17:53 +01, Ken Mankoff <mankoff@gmail.com> wrote...
> On 2019-11-06 at 17:05 +01, Berry, Charles <ccberry@ucsd.edu> wrote...
>> M-: (org-babel-map-src-blocks nil (org-babel-insert-result ""
>> '("replace"))) RET

An improvement: Don't insert #+results: if they don't already exist:

(org-babel-map-src-blocks nil
    (if (org-babel-where-is-src-block-result)
        (org-babel-insert-result "" '("replace"))))

  -k.

      reply	other threads:[~2019-11-09 22:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06  9:55 where to place caption so babel results include caption? Ken Mankoff
2019-11-06 16:05 ` Berry, Charles
2019-11-06 16:53   ` Ken Mankoff
2019-11-09 22:28     ` Ken Mankoff [this message]

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=87ftiw1y7s.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=ccberry@ucsd.edu \
    --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).