From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OE6SLRHd2WSeoAAASxT56A (envelope-from ) for ; Mon, 14 Aug 2023 09:51:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UEmnLRHd2WQqAQAA9RJhRA (envelope-from ) for ; Mon, 14 Aug 2023 09:51:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 943EA35DD5 for ; Mon, 14 Aug 2023 09:51:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="XiT89/L1"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691999505; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jqF5/o25pWzhVtEloAd1IcKwqF6nUH9YtX95CNxKoIY=; b=gqhzoglwUu1+U8XAs80UqmP5nL99l/2r/U6wHn3fSv83wp7Pn326noFMh4R2B/hXMW7QpG 2on9sDozmyyvv7f+U96R7RH0egPbstX977ac46igxKIQJgUJTfnit3ionNJ42+mUD5pCy/ COgRqdF87wXS8P+jyxAn8Ht9WGcAeyr1OfmFcdfEl79pJl9hx7DPOjSopHOA/vsSbuwT1b DWwRCY2nnrQf3CdZHex8Q+EQBZ+cqZr2vWBJ7+8Y2z6KlUYutnZ+cF9ZNmxJL0nL92xbdW k52QhNoi+ciXAENoioG2o+SukKSKSEQBYhFttBGF9JqXNy1LFN4Ro5k6zNz5HA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="XiT89/L1"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691999505; a=rsa-sha256; cv=none; b=ja6CuYmtcTW4EHnVhBTxtTYM9YL3RGXW+VQAf2J7aF9uBiA9sOjHA3fvRu1twXIJVktLsp X2mGDSj7lnNHqMN6DGxV1YMwdfEqvN2Loz7Tmttewebejd+cGJrlJvv/q4pct9Jw+zDX1M mcUicaGjDcrLHqPH90zOkE2z2dfcpJmHJ0+ZxtJdOBoM7dwkMaLnR8nD0jGQtUYYRLCzDv SLPTnCNPuHvO1WHhO5GqOVUHuELjuvV3hQdRdEZuu84qbn7ZLkwl4CeJG2iL5Ot2K9kSjm cQDRVn8Mk3MZ0nVNNopy5/acQqwGkv2bgwj739z96e9qcmWtj2NlSGdUc9eqWA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVSMK-00032w-My; Mon, 14 Aug 2023 03:51:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVSM2-00030A-IJ for emacs-orgmode@gnu.org; Mon, 14 Aug 2023 03:51:12 -0400 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVSLx-0008Jh-8b for emacs-orgmode@gnu.org; Mon, 14 Aug 2023 03:51:06 -0400 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1bbdddd3c94so3265033fac.0 for ; Mon, 14 Aug 2023 00:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691999463; x=1692604263; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jqF5/o25pWzhVtEloAd1IcKwqF6nUH9YtX95CNxKoIY=; b=XiT89/L1On/I3YEoAFdHDuDdb2k/oUnpR75u8DhVizNhXXu0Un6sxhn/f0586dpLb7 BWxNB9P7JZAXliHiep3m35IrbJHPrAHS+/dnDjfTFbwWhH1H9dPogzaTgEAYgwXCjhNF FICYwYO8zZQWpQ58cLIZtOJ62VVWnY+Umktn8dfQZEQaWs2aayMHCpITQTS8/hYO6LVY aty3mCpeqMtcNohnsZgnvQtsT/nhyYvjFUuKpSL+wVIwgN7sQ6shZ/pm+DBP/hTrZGmA BdxbvYZC9C+b2RnRH0ZdAaBWzVHSYvyra0VRe48GDie4HIbb0yXn0MTKGUcd2zzN1HxE Q+0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691999463; x=1692604263; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jqF5/o25pWzhVtEloAd1IcKwqF6nUH9YtX95CNxKoIY=; b=YNRzxKwUKtkUIht10kB4JE2a/vfvZMoSDF1lW9FaDe7w1LTHbqz5ryUtXkuJ3lHfCp 1QoMQCAVvJ54h2Kmp9WV9wv1cfvg/LCq/RGh3V72DMerP1zwu+WWu842quBvH3gbw/7L DVOd/vnMS8y+QYPiO8NbF3gsX3wxRJimAy9xysw7c9gdqbIzsLoCImseGCYAA4yXz7oN SNedZRAWQ6GxPFrmmspN3k1H0EFXdH3w0e/Mhjs6Bauz5cB7NlfJa3uEXyvfGuQo4hzk ROvdcn6pruSLS++k03Hlh6us8VJiBmEtSj8SjK/qsjRLUXmQos2qyDibvORSmDPxinXP UPag== X-Gm-Message-State: AOJu0YyS+Is/DCsjOLxVq4binyWYlNLBvJWaEBIvpDM4RpzMsimyNZQN 9vj3sZDkZKhvT+vZ8ERw8qlTeXJ5XBInSCM8oRSEVDTiL2k= X-Google-Smtp-Source: AGHT+IGrHgCix1CRPzDm7D4DWP8C5GJZzl8zKhZXVLFK4HMJWVhl63gs7kslZssARPoUCc0xRSr+90lnUf0UQMglnAs= X-Received: by 2002:a05:6870:5614:b0:1ba:3ff0:493c with SMTP id m20-20020a056870561400b001ba3ff0493cmr9923870oao.19.1691999463583; Mon, 14 Aug 2023 00:51:03 -0700 (PDT) MIME-Version: 1.0 From: Tom Gillespie Date: Mon, 14 Aug 2023 00:50:52 -0700 Message-ID: Subject: [BUG] inline src blocks in caption of not-inline src blocks do not execute To: emacs-orgmode Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2001:4860:4864:20::2c; envelope-from=tgbugs@gmail.com; helo=mail-oa1-x2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.61 X-Spam-Score: -8.61 X-Migadu-Queue-Id: 943EA35DD5 X-Migadu-Scanner: mx2.migadu.com X-TUID: vBGbDS9e0S/o 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