emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] inline src blocks in caption of not-inline src blocks do not execute
@ 2023-08-14  7:50 Tom Gillespie
  2023-08-14  8:01 ` Ihor Radchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Gillespie @ 2023-08-14  7:50 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-11  7:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14  7:50 [BUG] inline src blocks in caption of not-inline src blocks do not execute Tom Gillespie
2023-08-14  8:01 ` 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

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).