From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qAoFDMRuw2FChQEAgWs5BA (envelope-from ) for ; Wed, 22 Dec 2021 19:30:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SMPsB8Ruw2FlUAAA1q6Kng (envelope-from ) for ; Wed, 22 Dec 2021 18:30:28 +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 C278026E13 for ; Wed, 22 Dec 2021 19:30:27 +0100 (CET) Received: from localhost ([::1]:57696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n06Ne-00067W-SV for larch@yhetil.org; Wed, 22 Dec 2021 13:30:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n06Fy-0004LG-Ts for emacs-orgmode@gnu.org; Wed, 22 Dec 2021 13:22:31 -0500 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:8584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n06Fw-0003DY-8w for emacs-orgmode@gnu.org; Wed, 22 Dec 2021 13:22:30 -0500 Received: from pps.filterd (m0173173.ppops.net [127.0.0.1]) by mx0b-00395d01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BMGcWIX007390; Wed, 22 Dec 2021 18:22:24 GMT 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=fDPUgP9JIwSLsImNt17A0g3jtNWDkDVT2mxZcE9EHUo=; b=E+h2HgA0NsLF9NScOJg/bDXeRpPHo5kzb4dhq9sWGrBue3AbWPRvRyBz4yDlZBnuiuF4 aIhQ5HkIW/W0XafQ79Y9W1Liu10psrsFHF90wUMxVy4vufx/CDGqrdyuy/f8n/heYiqN L1bGJVGQEWdTp3kLXqIIOqCuCxMr8aRdZqo/wtsUY08A5aaTQ0kXVlO/l8qTmUp3m/qV FT0dGo59/JCaedSEmyBiTjVcqCju5ndVnrtVFkc8zLmlZ2vyrVa4mcbYEJu67YtRNuEw 9pl14HoQ6qfQ47y512PHs8KZYHTkkRfoyiEFNwQ5W5OXbVd9Bk38RkusWiuXwzlP3mCQ fQ== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0b-00395d01.pphosted.com (PPS) with ESMTPS id 3d47qe0b8f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Dec 2021 18:22:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CHmgqf8q55XiNjz/uYDBYIBKZ8V+d++4qgqi7Y40rUIuVjqASJtN+DgrsGQ6JsxiGJil1XEf025Sj+1+fn3E+UbHu63lhvNkotOC88cy70CaKmPsOw15kPgbyqjrw9UCJU1sG5XKo6SHgGNkeF5hIaghr39WJVmfvrgvoTGmWCkRcV119e0g8oNKLQlX5Cei3nNSriO6EQ7N78nGqwSLEE0TOeS8cmPFo4PHOsyje8T2g6JdzfTcEbx3s6/ef0QIfRBPubxfAqjsq4H0BpNgMmMVn8ts4Z+TY4rTIMIFXV4LBi+YpCfTR3rTZwuL68TKsN1L+Z+10dDm9mOTDpQtFw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fDPUgP9JIwSLsImNt17A0g3jtNWDkDVT2mxZcE9EHUo=; b=DHb8YcTiW5wi111WZDeutp065jiRNLz1waJpgNXWRYUCRHC/66UmBGPlAedkAnJIUjkXD7f5TCfzGVL8gyhWOlWVRwKGRpx2I50zW8ZNvqxjsp0qUCQ3dVKHS4CQQSu5rzbGd57i75Zq9JSM1mUqB3UI3HkS/Ii2e02wiuGdD9yZ+E3nHyw/0EGbLJt4p4WR2FPyFane2jI8QE02vzR1Nlv//Xj3jaMgFqj/HjCrSYcOZJ3OqX0luFdhfwLwij2rqtkqSp/HQYXgTPbbl6MysU9Zva/oj1+rW3563kijueegRoC08DDwM1CumjP2eYzXM7zb0nAU+NxCIib4R54tcA== 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=fDPUgP9JIwSLsImNt17A0g3jtNWDkDVT2mxZcE9EHUo=; b=H0xjwHMvCP6qpBYTN6iXogPrzx7ysVEScRQV1CXv99uzgbkI30QqxNq3FX4HcN7cO8mP4KCpgvLttqGhjsTj7m2w3YvTOruOsbpBwRkOom3DCRMelceBhRnZylUlP4m4L7IBq5ov0zE35lxoZkrNjDb4I+4PsjrH096mCExBDI8= From: "Berry, Charles" To: Yasushi SHOJI Subject: Re: exporter: How to get :file property on a src block in an exporter Thread-Topic: exporter: How to get :file property on a src block in an exporter Thread-Index: AQHX92DbC+fSNChwCUefNu5yr9X6Sw== Date: Wed, 22 Dec 2021 18:22:20 +0000 Message-ID: References: <87wnjwso7p.fsf@localhost> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5753dd42-8965-4df4-78ad-08d9c577fe18 x-ms-traffictypediagnostic: BY5PR19MB3192:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wd6ekyx0B5MVZ3/nsyfpdba9t/ldcjo8pfstQl+Y5AyoekIgt7Y4Cl4bycIR5sPVYdO4MsVM732pWUeAaVX/ZfapN0QrZSJa/Bu/Bq9hnDiT3R2OGcLWi7U9JlWLGl5v0WWNiyfDrcLW2jv84e2OFvLCxGWs/1w6XNPIz10J52Px7LIxr0TbRhSvuDaPHA4+XiL31GEHgkw/OrHLyHsdInXY5EKZ+xjdW8R7lKaVDzfU/Eox8AMRIwACb0YXvrNxBH6YXhOP/CnJrkdlaHEAaq/QOL6b6CZsY3VB9WG1+dwPlazG2CTa/Na/hulfbZH+HjH0M+ODichMnTc2iXH0yRZprjYYwLWQ/jacptp/VIFmbNjQta5lAevh0ZAp15LSt/uGb0YyfCim9/QaMlGzhVHT4p3VJRRNN0I3aufn7iR8MLyqAILZjzSMC1ZqGuLOC8FenBxE+D37mEhSCqb8CAPqIl87th201j26NWUP9zfCDC+sWqAFQYEpQhLBp0ttNmU35DVbPW5S5AMOsgzTFJ2t0X9mcmV1QYFzdLvNazBB56U1J0bMY8TRRF60JK/B4ANJbFopPfGf6sD10AleGV/kDIDVYq8WdqJO72Z1ik+qldRbKxfBt6O13cLv1Mx+dE+iowerDtHaOugjDdQeO3ZLVx+goXIpBzX3zWN00tVmUcaCtWw3NEY6BWx05AWkDVOxNbIN9rUAMaMc39HjnMZrPZ2QsaaK++ZBrG8b51A= 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)(366004)(64756008)(2906002)(66946007)(66476007)(66446008)(66556008)(4744005)(8936002)(8676002)(122000001)(33656002)(186003)(76116006)(6486002)(86362001)(6506007)(786003)(38100700002)(5660300002)(2616005)(83380400001)(316002)(71200400001)(53546011)(75432002)(508600001)(6512007)(6916009)(38070700005)(4326008)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ROzkHa+DpQbGBOf56Emin6ALmOZRboteEXyjA5h9Mr/laOgem1dgJte9tvT9?= =?us-ascii?Q?wqIdAGIoCubiFkDnTPzb2VEqL+w24BLI/QwH7pS1++9ruOIHqUhxP5HETwij?= =?us-ascii?Q?Avn7VGZBi+7ZP3/zb23DY1NnlXo3NQzqudQmg01Tx3fBKqHhzY9/0f4EU5HT?= =?us-ascii?Q?uDLlLnen9qfc04KBHdXKZdpGl4RA/QbVqLHqpWbFBYhfhz8YfkCJkXjrIuCg?= =?us-ascii?Q?nJd8SUln222Xu/hAjK3YBTxmAiO9BQfns+m+8V6AcV+nWTcE6XUx3OtjXmbp?= =?us-ascii?Q?p+Bjm41wVbxLk9dHF/+7m0O9rkoEk+JRonx/Yl7WNI4kPrvjOKDD3BM+9sN2?= =?us-ascii?Q?zCG1HkKIWURGlHDE9lZ895Am+rl431JN9IaZJYwUw+3ygOTc4FWQnF7cDVwu?= =?us-ascii?Q?6A4gvZxE44mKDDkDhkbFr9zDO7TfunmuTA2BEOknPFmFqYx0vKMQgcEJKVFf?= =?us-ascii?Q?JAYFarOEPQ4uUf/YFz22YKivfLkYS7r6wj4hALPVd5ieL92nVRkNhPY6C05s?= =?us-ascii?Q?gpV5v+6aUsW9k76Crvx0sod/vyz0DGDUbZo+oEC3u3uzg5tmiF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Gq0Vue61FM5lSIUZs1rsk2HxWPJ5gzsDGBUdmm?= =?us-ascii?Q?5l5IOy9oql1me6H4IpE2CTO7w3bIqidyvqtTiRDMnLUgQKwiVJYaWm8ae4n+?= =?us-ascii?Q?fWn/4E8WAAL2e7AVeyXliCxwdg+H9DcPBmHbF2i+0Ai+zR/lOlzzC0PFyuEp?= =?us-ascii?Q?mdXiMxcXjKkfTfBwGfomaNWLFeeby9B4zmZlHPPPDmMQpqfA0Oey37mNJvBH?= =?us-ascii?Q?fMLPihhNey9UrYSDgQ33xTLnUwU=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <03404E2BFE8E8C48B01A887B175B675B@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: 5753dd42-8965-4df4-78ad-08d9c577fe18 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Dec 2021 18:22:20.3182 (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: rG1zUASXYlRPGAtBQalgYzM4jrD08nqABcfG3QAqFnB2OfowHbDAu/OWPONHu8q6i4GXE07q9JKF8/vLiBSUdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB3192 X-Proofpoint-ORIG-GUID: 1Q4DKjWkPqJdV0zFiEJVILPezcSjHVUt X-Proofpoint-GUID: 1Q4DKjWkPqJdV0zFiEJVILPezcSjHVUt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-22_08,2021-12-22_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 impostorscore=0 clxscore=1011 mlxlogscore=598 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112220101 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, 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: , Cc: emacs-org list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640197827; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fDPUgP9JIwSLsImNt17A0g3jtNWDkDVT2mxZcE9EHUo=; b=h/VWUf38V6oDKOanLipQBv2lGN56yGR8vww5cI+isljj/ylO8PfpDoZpVOd1iLQ79aw5WP EZDidyXAyt9mr7T8kFvJs06cIgeOJ32epN/hG0/9qlWtHQlcsNM5cxC59vvQu4TYbPWARH bGoq1z/1DSkVgqbe9hePpuAbcyGyxdFXBpi/Z+84Y7MIWds7clrRkMXOjsurzRLTZUie8U C9PZtJEVGPbqqM/rBfVw+FpTw4CTu3/GjP4SQc69bAW6gZF4WUmSgyul7ABB+nMK+FLn0p 96QRF7g4IQEpedK8f9MRKwSVeaJUSx+eQE2uM3WJasfiuw62D5KVGcImBxtAJQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1640197827; a=rsa-sha256; cv=pass; b=PB6Eo2e+QjflcybgNYQ5x4RI7lDOzK1GE3N29nLiskd0ihL/nYSpFxu0mye3PobTO/gWJt NU0gcE3s2G0P6NMyKXhu67RbBdQlVGkG3Fq1zTKWK03dq9UPC1N43w22xcJZS8OsVlfUd8 FJC4vmHFW1611ZMngWQvaHO4PsXjEtYhd0hEeiLQaX5iyb65GmDE0RTzybo/kv6fVSz3Qz txnKH1YVYiofIhCGvHhKvAi7Bi/D+anW2ehYnTcjW5z5uO6NrV4U9+495EEEftokFapHR4 BPffN1uze+Tu4qUeaYXp5xVIQrIuk5QKi62TBQIMIdTGiyxFdDL39l+G2TYsYQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucsd.edu header.s=campus header.b=E+h2HgA0; dkim=pass header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=H0xjwHMv; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucsd.edu; 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" X-Migadu-Spam-Score: -13.74 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucsd.edu header.s=campus header.b=E+h2HgA0; dkim=pass header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=H0xjwHMv; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucsd.edu; 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" X-Migadu-Queue-Id: C278026E13 X-Spam-Score: -13.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: QtYZYXtyKcCc > On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wrot= e: >=20 > On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI = wrote: >> Then, why don't I have :file in the info? >=20 > The :exports must be "file" to have the file name in the info. I used > to have "code" because > I wanted to export code with the file name as an attribute. >=20 I don't see that here: #+begin_src emacs-lisp :exports code :file abc (assq :file (caddr (org-babel-get-src-block-info 'light))) #+end_src #+RESULTS: : (:file . abc) --- Another problem for you:=20 `org-export-as' runs `org-babel-exp-process-buffer' *before* it parses the= buffer and the header args get stripped from the copy buffer at that time.= =20 So you need to find a way to get the :file header arg whilst babel runs and= hang onto it for later use. This can be a tricky business. HTH, Chuck > I think I can work on it. >=20 > Thanks Ihor for your hint! >=20 > Best regards, > --=20 > yashi >=20 >=20