From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Nr8OLZ1Cq19MIQAA0tVLHw (envelope-from ) for ; Wed, 11 Nov 2020 01:47:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oIheKJ1Cq18GHwAA1q6Kng (envelope-from ) for ; Wed, 11 Nov 2020 01:47:09 +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 0AEC89401BD for ; Wed, 11 Nov 2020 01:47:08 +0000 (UTC) Received: from localhost ([::1]:46540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcfE2-0007Cd-Lc for larch@yhetil.org; Tue, 10 Nov 2020 20:47:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcfCl-0007CG-HX for emacs-orgmode@gnu.org; Tue, 10 Nov 2020 20:45:47 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:33912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcfCj-00040Z-PK for emacs-orgmode@gnu.org; Tue, 10 Nov 2020 20:45:47 -0500 Received: by mail-pf1-x42c.google.com with SMTP id w6so600546pfu.1 for ; Tue, 10 Nov 2020 17:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=TW7rvZq0F5qupAYDhOlIK3c/IPyuSeDjXjcfb7HEQl4=; b=tdQQjRHUNQHHkoyyPeuQM1Ruo/RI2XGxxObkWAWA6OBcGR6ZUL+Ph4IfDz8/05gcQy Qp9a2i57S9K5J1iDg/3qgh2mfCf01pUOqcYoAntxupMswU+FbQGt3XXEehACUYjsES+Q CTFEOOs8IYXFC2oSSI7DHPoqKOvmyPWXCIadmcgavnBX3KmI3fdp+Qu0dXm8Nn6OMhch jbE71PW2925MN41yCOXImB/y+6koOb+OGL2AG+D3cDejWauDw1+/aQlfJ83vU3PmXm/9 ySfEQcRsAi+VlCYxcFek3R5swM/dPCcxSbUT7IdHTSKkX8igQdfFDMK6YOjBcmcaScYf OK4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=TW7rvZq0F5qupAYDhOlIK3c/IPyuSeDjXjcfb7HEQl4=; b=LRVii9wGulinuWkzMrEfvK2STnTCFK/cJ5GE8VBQhP9wJU7l8L7Pfvrcrc4iGpQ+g1 qc++LNXYwwDLluqme0xC2BvdeWAeJVe5ebBK8gcgNoaqR4H+qd8yZhO71Kya/iTg2k5c +kBTww6tsISGDWDaopxzJpzfxe0ZCVYrHS94Milgp/fAHL/dvi9ujkNRntXbvqb6eY1S 8MU3oNCtdYvKG3BKT8frSrWD3Aox70oA63eQX9tmUH1kX+lrwCiydaIlib4j/tNy4FOo Q1v6Bb2xpyG9uIwjsm0r8Ijw2l8lkL2aSoRbbRkJLEDhzxH7YiXyrX5C6rV5AIn/nVKT BQBQ== X-Gm-Message-State: AOAM530TlZ8kPzThspAuJ3WDjceWMl4cU00Hp4GO1HtvUmFiJzQ63ruV 6DKgtjmFBh4JzR3k1wH+Hgg= X-Google-Smtp-Source: ABdhPJx8f2P32WC3HmNZQLNbO4R0CZuHtmsq5V+k5FQYlmGcIznma2WZF+esxwHc0UNic5IibiHOTA== X-Received: by 2002:aa7:8c4f:0:b029:18b:f361:4aa3 with SMTP id e15-20020aa78c4f0000b029018bf3614aa3mr3526239pfd.73.1605059143939; Tue, 10 Nov 2020 17:45:43 -0800 (PST) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id j8sm244249pgb.55.2020.11.10.17.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 17:45:42 -0800 (PST) From: Ihor Radchenko To: Diego Zamboni , "Berry, Charles" Subject: Re: How to wrap Org code generated by a source block? In-Reply-To: References: <43B88A5C-E21D-42B5-9AC7-F33908FB4EEC@health.ucsd.edu> Date: Wed, 11 Nov 2020 09:44:41 +0800 Message-ID: <87k0usvf92.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode 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=gmail.com header.s=20161025 header.b=tdQQjRHU; dmarc=pass (policy=none) header.from=gmail.com; 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: 1.29 X-TUID: pGLbwoO0oqjN > I tried also with =:wrap src org=, but then upon export it's exported > literally as Org src code, instead of interpreted as such. An alternative might also be =:wrap export org=. Diego Zamboni writes: > Hi Chuck, > > Thanks! =:results drawer= is exactly what I was looking for :) > > I tried also with =:wrap src org=, but then upon export it's exported > literally as Org src code, instead of interpreted as such. The drawer was > exactly what I needed, and allows reevaluation of the block, replacing all > the results correctly. > > Cheers, > --Diego > > > On Tue, Nov 10, 2020 at 6:41 PM Berry, Charles > wrote: > >> >> >> > On Nov 10, 2020, at 6:13 AM, Diego Zamboni wrote: >> > >> > I want to generate some parts of my document programmatically from an >> emacs-lisp src block - i.e. the code produces Org markup which I want to >> then export. Is there a way to wrap the #+RESULTS block in an environment >> that still gets evaluated as Org text (e.g. when exporting)? >> > >> > >> >> >> Try `:results drawer' >> >> You can also do fancy stuff using `:wrap "src ..."' where `...' is a >> language and additional header args. One language choice is `org', but I >> don't think this approach is what you need. >> >> HTH, >> Chuck >>