From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0OoAEoGful/pNAAA0tVLHw (envelope-from ) for ; Sun, 22 Nov 2020 17:27:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oFreDYGful/4VQAAB5/wlQ (envelope-from ) for ; Sun, 22 Nov 2020 17:27:29 +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 2FC2C94051E for ; Sun, 22 Nov 2020 17:27:28 +0000 (UTC) Received: from localhost ([::1]:48442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgt94-0007Az-Q1 for larch@yhetil.org; Sun, 22 Nov 2020 12:27:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgt81-0007Ad-T7 for emacs-orgmode@gnu.org; Sun, 22 Nov 2020 12:26:21 -0500 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:57370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgt7v-0002yX-7b for emacs-orgmode@gnu.org; Sun, 22 Nov 2020 12:26:21 -0500 Received: from pps.filterd (m0173172.ppops.net [127.0.0.1]) by mx0b-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AMHLIC9014568; Sun, 22 Nov 2020 09:26:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=DB/xghQ17Q5DNZtSrDeDDaGyfGapSetUx6rmDExZz24=; b=MNIq1debk8QKHpQSyivZL9KrV1LF8hESOqtezpK0iRaR0Kf+ATzbZbXfP8iCAKQaUPTh gixw3/HUnS+UnZKJmi7Xm6HOH2R9H+tO8zqEa8NE1/o0fNG2zFGyUhi36kSxBWg0LJIV F5ZDGDdADy298hzFvcxWLw3rYMwLIkoUE3DBchUGJgNjHEGxC0kuveDmJeE6j2Z1Y45E hwWa7qslGf97Xp9YXzK64EbTxNBmVkqElrmVFwmUFf3ESSkXijUZ+v9G3ksvxsntWwB4 LiWL38Q+JLbGNSUwCtQhSrxHlsLOm+vMYVPlVOfpfBVRFMtMiPH/B2ATxwDlpQ0U2ZFs Gg== Received: from secdlpezp04.ucsd.edu ([40.112.251.180]) by mx0b-00395d01.pphosted.com with ESMTP id 34y02420ab-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 22 Nov 2020 09:26:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sz0F2RcA+3QZW+42+qXAPVMEfyBd2JvqDzOi+BiehCVANDfKw8SDwwaRr85Kv0bbBQh1akkyXOA8Xe1i3wnXnSMnrKaLkZBl6OB0KEXJCMzX3r71V0K3DGYwZGX5c4bSU9R6d73xQI9ZHQTYL5y2g5mF6FxmLziLvkeeInXP/AwazCzG1fYwVhbVp9tN145sNJA925npY5CZvEqIdW8CUmJ0JTAxhk4mBCno97LvfnGL52psXb7JxAcz9fuqCQ0qBIl4SLBieRVy7GJr4P+9FWXxSFZwBSsqio9AIRWxIV+3G8hSkEO8fPNyKBViOH1IqQxra73IMoPHahrcFBdltg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DB/xghQ17Q5DNZtSrDeDDaGyfGapSetUx6rmDExZz24=; b=ZuNlHefh7L0jptqZpeumS88vHp4DUxanCuonLbM2/UZfOzqIOF6bJ2NW2nzzlcFuIQCCN5kYbTXCuL8sJP8PvpG7bTOaCdczjgBm85rYEY0fx1N+S/Ed1o1PVjWxmHoU9Ix73tuu11JMFi9izfnqkwLq5RqnKnQ7lG0Vb6qUa5ZDRD2cNRwh6eXzEkQGf1u7phMQ7b484ZG/J777t1YZh5CP+VqhGN+EVSBr0tXxXSU5sr69+GLO5eSueH4x6P8fHb79FW7XrzQzUC2XrFdqO3S7jqpa/VVOamenr+Mneom5DHPireItHCOFcLZzgzetxmmRx0ZRdvr4kBvB4x4+8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DB/xghQ17Q5DNZtSrDeDDaGyfGapSetUx6rmDExZz24=; b=H4cNkYVa82rvHY9g/dptbSxF+Si8Hlp8QIQG+yQIx3W3XSykf/lkvQeQvNZIz/rp0aJye9tijfQmr4scM38jDEgN6ujWFwf67s8zXaIAz4a5thxoCYuLdTS1U1z3S3HfAWZmN6bwrm8ToEwpvEx6S0aKBKnYTlThYSdampHFnpM= To: Magnus Therning Subject: Re: Using a code block as input to another code block Thread-Topic: Using a code block as input to another code block Thread-Index: AQHWwPSPnnALUQ8G2E6lFwKvPzIMtA== Date: Sun, 22 Nov 2020 17:26:08 +0000 Message-ID: <6DE39B70-57CF-48E7-BD22-39D7140A2EA2@health.ucsd.edu> References: <87d006z6kl.fsf@therning.org> In-Reply-To: <87d006z6kl.fsf@therning.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:14e4:ee32:2cbf:3a5c] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8b8a881d-689a-4e1e-c156-08d88f0bb310 x-ms-traffictypediagnostic: SJ0PR19MB4780: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9pMjc71DdiES7ngB5nVrl8H97z4YQi1aq9QWxHlWAQX2cM4y/slzod6VzFzyFjBmALR4zerCqUggWE+4BsaTz1VdSPZNwlZaqZO8UxAqRZLrlh7Ip22U5LUATYQBCo4ePmYgd38Dowlvy5cGnfMQ2hFnS0nqJN4823nyQmIen4kgw6JE2TZ6o7prmsYbkJDjVBcKGe7pWjyl2gAUpMoEKiW3rv1wzROMgD/9976mCjU3aNF2bf187xGanoPFOHsd5hcsNfsz1A4vDU0wq/ML58okQVkIOTivBBxyK2OXi7nzUszgn1tpnXElNfARtzvJo1YA2OcU/IrB/zI9XZDjdw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2581.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(376002)(136003)(396003)(39850400004)(316002)(6506007)(4326008)(66946007)(76116006)(75432002)(66446008)(64756008)(66556008)(2906002)(5660300002)(66476007)(83380400001)(186003)(4744005)(86362001)(6486002)(71200400001)(2616005)(8676002)(478600001)(33656002)(786003)(53546011)(6916009)(8936002)(6512007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?gV7VVVD+0HCY1gjxmsEpFRYQUudTf94C9LVUZ1pCuD7OodKsZERiSnyAJ3Hy?= =?us-ascii?Q?Vvg6NePuX1CQ/uncQ4/c10O5w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?us-ascii?Q?Wpg2XPy3//qHBfGqyQ2IQw=3D=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <98F0A815DEC3B146BE734474D72204C4@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2581.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b8a881d-689a-4e1e-c156-08d88f0bb310 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2020 17:26:08.3507 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: neLKUIwEO5N98rcrkwbYXakbTYchDBOCj9feg/w8oOZoJW9XPlMXSDqVldmk/8t6ju1EuCDFsj7r2qLb5gpBVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR19MB4780 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-22_09:2020-11-20, 2020-11-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=846 mlxscore=0 priorityscore=1501 bulkscore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011220125 Received-SPF: pass client-ip=148.163.137.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0b-00395d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emacs Org Mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=ucsd.edu header.s=campus header.b=MNIq1deb; dkim=fail (headers rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=H4cNkYVa; arc=reject (signature check failed: fail, {[1] = sig:microsoft.com:reject}); dmarc=pass (policy=none) header.from=gnu.org; 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: 0.49 X-TUID: N8J6IQcNFipA Inline. > On Nov 21, 2020, at 2:30 PM, Magnus Therning wrote: >=20 > 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~. >=20 > A code block gives me fontification, but I haven't found a way to pass a > code block as is to another code block. >=20 > For instance, something like this: >=20 > #+name: code-input > #+begin_src C > #include > #+end_src >=20 > #+begin_src bash :var input=3Dinput :results verbatim > cat < ${input} > EOF > #+end_src Sounds like you want the :noweb header and code chunks, viz. =20 #+begin_src bash :noweb yes :results verbatim cat <> EOF #+end_src HTH, Chuck [deleted]