From: Tom Gillespie <tgbugs@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [BUG] inline src blocks in caption of not-inline src blocks do not execute
Date: Mon, 14 Aug 2023 00:50:52 -0700 [thread overview]
Message-ID: <CA+G3_PNR3uHZGBMvHKUR23PZT7MF3rU7OgXQT8WC-BUEqZy=RA@mail.gmail.com> (raw)
I've found a bug where inline source blocks cannot be executed and
org-element cannot find/parse them if they are in #+captions: where
the caption is affiliated with a not-inline source block. Example
below. Best,
Tom
Issue present in:
Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)
GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version
1.17.8) of 2023-08-0
This inline src block works with C-c C-c.
#+caption: src_elisp[:results drawer]{"All good!"} {{{results(All good!)}}}
[[file:./images/happy-figure.png]]
This one fails to work with C-c C-c, and org-element-at-point returns
the bash src block below.
#+caption: src_elisp[:results drawer]{"I've made a horrible mistake"}
#+begin_src bash
echo OH NO
#+end_src
next reply other threads:[~2023-08-14 7:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-14 7:50 Tom Gillespie [this message]
2023-08-14 8:01 ` [BUG] inline src blocks in caption of not-inline src blocks do not execute Ihor Radchenko
2023-08-14 8:59 ` Tom Gillespie
2023-08-16 3:31 ` Tom Gillespie
2023-08-16 8:09 ` Ihor Radchenko
2023-08-16 9:01 ` Tom Gillespie
2023-08-16 9:22 ` Ihor Radchenko
2023-08-16 9:36 ` Tom Gillespie
2023-08-16 9:57 ` Ihor Radchenko
2024-05-11 7:49 ` Ihor Radchenko
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+G3_PNR3uHZGBMvHKUR23PZT7MF3rU7OgXQT8WC-BUEqZy=RA@mail.gmail.com' \
--to=tgbugs@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.