From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8I5xBCeVuV+7cwAA0tVLHw (envelope-from ) for ; Sat, 21 Nov 2020 22:31:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yAxFOyaVuV89RAAAbx9fmQ (envelope-from ) for ; Sat, 21 Nov 2020 22:31:02 +0000 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 46F929402D6 for ; Sat, 21 Nov 2020 22:31:02 +0000 (UTC) Received: from localhost ([::1]:33266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgbPJ-00030N-5M for larch@yhetil.org; Sat, 21 Nov 2020 17:31:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgbOs-0002zH-Sh for emacs-orgmode@gnu.org; Sat, 21 Nov 2020 17:30:34 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:36125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgbOq-0004VZ-DJ for emacs-orgmode@gnu.org; Sat, 21 Nov 2020 17:30:34 -0500 Received: by mail-lj1-x230.google.com with SMTP id i17so13933778ljd.3 for ; Sat, 21 Nov 2020 14:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=therning-org.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:message-id:date:mime-version; bh=jYjrqpSmG3gCKwcuvvXy60A6kBECaY9cP4KPWo6QLwo=; b=SLI5PShz4QTTuzAf8DhZ8YrLULcGThuxh6/EElLWds4hY5MOAcSraTfbXYd0ChR2IP DW+KeXRDpyLKAUKRTYjCb+fpS9yLtXlQeoFFtAUJxGsnGeG9b4KUPtlm/pN5fGxSW6Sv ywcKskSu2ClqRthnHea5oL7NsKYUeyqB3Lc4pLBsONDWMcp1w9JY2Cpi3oH2Q5qN++Xa 2tlrjv/DFXNHC+NZ6F/kOYNoFN9/51Mzt6xW33eN4ygNDyWEa8/DozxeQ8hnBoclOEej U9Ive1zV1lZ2qJoOWxEsS2CAhTlgDupX48hWrqPhG0hI6L/yRhs1YK4mWFFk4N/1HVee KUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=jYjrqpSmG3gCKwcuvvXy60A6kBECaY9cP4KPWo6QLwo=; b=fu/OnDOPaJRCzLLOHKWVZFoKBsx5WrrtXvXrKvKM76JiN0uX9PRMcVX/44oQAC6dgB km8j0dmQRyh+/bzokLWyKYINbQPWlc8tHf7H2UhLgF6I8hQhMfujKHYePPiq1mquYQ21 PjF8tTUh0bmExcnM++oasOnWOyJ84LmLAtXNx2IDX3UDm0D9OJdzso9/jDhs27oupPKa w844EAj4LQWw292awT3Mu01X6OyybSNDimSCUe1I+5k0RAsdaC1ka8br25VD0/MPZdVi HUt4Oo4AmHcqNrHiymcm1065FVq4C+bcIzRkurM5kWyrHLaVoebUlTpbWDQfndVK7YeW aFRw== X-Gm-Message-State: AOAM530mknrA3IgDYMEfQQpV1Ckr6h9OMLY8fWOWsBxFcFhisLsU5avi /K/4kURX1wSVZQqi5bc4wrtRg+7ArrpDy8qS X-Google-Smtp-Source: ABdhPJw2CHYubYgtVxbUe47xBEbwOBknb8msVoiSDcI6A+FWbgWj4pkcBNBpD+zAs92h0kQ+B2fQYQ== X-Received: by 2002:a2e:b8d4:: with SMTP id s20mr10874485ljp.226.1605997829859; Sat, 21 Nov 2020 14:30:29 -0800 (PST) Received: from magthecomp (c83-252-53-114.bredband.comhem.se. [83.252.53.114]) by smtp.gmail.com with ESMTPSA id w11sm762203lji.135.2020.11.21.14.30.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2020 14:30:29 -0800 (PST) User-agent: mu4e 1.4.13; emacs 27.1 From: Magnus Therning To: Emacs Org Mode mailing list Subject: Using a code block as input to another code block Message-ID: <87d006z6kl.fsf@therning.org> Date: Sat, 21 Nov 2020 23:30:19 +0100 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2a00:1450:4864:20::230; envelope-from=magnus@therning.org; helo=mail-lj1-x230.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=therning-org.20150623.gappssmtp.com header.s=20150623 header.b=SLI5PShz; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -3.31 X-TUID: ofvbU+dmOROy --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I know I can use an example block (literal example) as input to a code block, but I haven't found a way to fontify examples. Since my input is code (JSON, and various programming languages) I would really like to have that, as well as the language's mode when editing by using ~org-edit-source-code~. A code block gives me fontification, but I haven't found a way to pass a code block as is to another code block. For instance, something like this: #+name: code-input #+begin_src C #include #+end_src #+begin_src bash :var input=3Dinput :results verbatim cat <