From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sIXpEhjfw2E2IwEAgWs5BA (envelope-from ) for ; Thu, 23 Dec 2021 03:29:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UD+8Dhjfw2H/GAAA1q6Kng (envelope-from ) for ; Thu, 23 Dec 2021 02:29:44 +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 C91242BF8A for ; Thu, 23 Dec 2021 03:29:43 +0100 (CET) Received: from localhost ([::1]:51066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0DrS-0005ul-OT for larch@yhetil.org; Wed, 22 Dec 2021 21:29:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0DqZ-0005sH-J2 for emacs-orgmode@gnu.org; Wed, 22 Dec 2021 21:28:47 -0500 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:52486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0DqW-0008Pz-Va for emacs-orgmode@gnu.org; Wed, 22 Dec 2021 21:28:47 -0500 Received: from pps.filterd (m0173171.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BMNMOfn017772; Thu, 23 Dec 2021 02:28:41 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=FyVV1AAF2Po8Sdx1o6mG0/lgY9ItWzYYEG8aE2pP48s=; b=b/CxqO3f7ONj66A4mBj2XJsfNNwZ6SJIbQMdjwOqV2+GSDVqQ006Ee20QBbCMA1ZKSd6 EPqs15hHl1ZO5yVDz6inIjgENhv4ZGsmdBobClZmDAwsYaAwJRdPrpOVuW9ClOCs/XQh hSSwdlWl0XZeaF5VsbYRyS3XNs3KUiTsNas85MhIyA7lP0A7Ior2IiBrWJjfVz6wjrnx VxbqminzZQjUKmS6Pb255bufgrMwVCx6PuybN/w2FJHOYoZ9bRW2oEOEE6fRLZVq/oeN emaectcumNVnVPxIQzpTvKVGO9VBC3NRSlcrTg8NG+cieO5lLeyG0mjWLXM+X4WT9ted og== Received: from secdlpezp03.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com (PPS) with ESMTPS id 3d4dms0acu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Dec 2021 02:28:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JsPeeMC35TnOjhcoWnwC8rYBISUX/Teb6Qf7CJwT+wdZ2aPtdCSKIMdQz/Tbdb63JG2l+4D1Fjet+8Pr7xWwhbKsZNtqNEbeZ//8F4Z57NLRZWLYTR4I7XFLiZ6nlpS2MYtl8fgksT+cEz+oyra6L80rrOyqAxvbRBdC+wiNnetBnuCwwVvrOjUxdkmnOPGqM5LV+BhkTvMLiOTd9ib6oAfPDX7alBnOFHWHYIXIf7sa+xbB9iPBpzIppjzVLoMx3w+Gr7o1D/NubokSMkFCDRtyPA13oF7pHx/tTPpZfpGPOWIRUgNOSql+SP6QcFgB5U8rnkVJ+h/2nYIkq1TF4A== 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=FyVV1AAF2Po8Sdx1o6mG0/lgY9ItWzYYEG8aE2pP48s=; b=IQLhdMJ9SByrj2XA4PCbim7iusiKcPrwQexc/FemHWYiAuIfXPVq9j45d8fOwPPupcOITam+p/6YKFED696sQCg/OcJHdtdruAPQHLL0FmJkXKs1mZDa/TQdKMC2exdKEMnt/uGJggLy8xVIRkRofMKMtHvaAqr1dSvnoGqn1FCcozP97DSK/j3gD3IVyigZM4L0YP4kBRpNutBkxXCm1vUcl7rRaURk//6r2kdO0Em/fBcPxUuJsBIJOdj9mqpTej1h/fzCjrcCPn020EN7tVdPnC4t2PtJ5T44JLDztlw/jLrwGPkDFSNnPQWzpXzU8BiRLmJyhARFlrEvYfa/VA== 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=FyVV1AAF2Po8Sdx1o6mG0/lgY9ItWzYYEG8aE2pP48s=; b=W5V65emnQ38unNBHiQ8M0/8BjehqT19g92sSyZsHCVHybSSWChHuz+4mFj/uWLBMLq85zBotP5lZLcVyZex4HDENepFzxBGk7xEgGWQgtaBvQaikbyLWxEq8g7SD3aWnIBT0eBJZbwu+69vY15tedzigRb4Dl0Cta2TjtZgALTQ= 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: AQHX92Dcat/NCDaIQEe/RGgxt5jXjKw/FF0AgABGdYA= Date: Thu, 23 Dec 2021 02:28:37 +0000 Message-ID: <273F1CC7-8645-483C-BE65-6362743D69C7@health.ucsd.edu> 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: 6e833f84-9792-4ba3-ba9d-08d9c5bbed4a x-ms-traffictypediagnostic: BYAPR19MB2693:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WLK0DCugLSBGPJOiGOVIxiVZ/6/VMw8YXm8ccn53AyF+KaSwquQN3RKA4c+t1DoaLytVmnBRNqi4ew4mL5+eE2kDoHFoD3dhRTyfggdZ7TAYVzuwKZECmQxRVrdTOxR6FP/i8shbCKT+nsodwDRN5ENu+bBkuHP9GJ71kgUaVVvRpoIYsPO8fvZSU/MZ1TyRdgStgo3KyrjOFzxHAUDaYMVjl7R0gQvsF9kvSZtsMXD/YWGd7UBEprxwRhbLnBvkjIJvlCTNAnY6Au8UJuvGNe7roaqlcWLgt/EXXs5Yu0VCRQSez/zcd3GNVw4IRhqNcpugDMgiIEO914KkEWfcp+dEjrQrN6eLyDj4VK8ST7/jzGE+9Z7/1LryQ0yL4JUbpwj9m/YVDzERkUX9r99O88rnfs6lhhl+qUkcWbwMxEdKuDUb3/bTI0sZUE42dS4E8aQOmvJqMJW21IAFV8Do6tOI7oqiaOUCOuKqzgqg4/rcTanNTYirYjqd8Xmp/5UOmU4bfK7Sx4xF54TeTdQYr3lkIyBrePVvf4ob7aRNZ5yirSFeb967znCCMKUG+JBOVeQm4vynWcZKeZnquql72HM3xIOBXz2ovCb/W2Cl1/6c2OcpPIK3peRNsXORlBXJE2uAoOoxuqc+C7kHUrxB+IsfvEI+Fc6718EB1gtdiw4C8woHURNOyC43d7XPB18TtlNinAc9nnXtm1uNxpTWhqG1VJtIOduv1qpKtpLZw9+xBydXZ6fdbpSITppCe30F 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)(4326008)(33656002)(53546011)(71200400001)(508600001)(66476007)(2616005)(786003)(122000001)(186003)(6506007)(66446008)(86362001)(316002)(66946007)(38100700002)(8676002)(2906002)(64756008)(5660300002)(76116006)(6512007)(6916009)(75432002)(8936002)(83380400001)(38070700005)(66556008)(6486002)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6HX/WkxcYYuBoL6ZOGIKMOA09+mN6p5kOGNqRR4ILYxGYCyC3wuGQgSItOS3?= =?us-ascii?Q?f9cGjBhBninaNlSkBUNpVYJmKg6QjOS7wzNsVzE9wtXzOTw2cW/LCh1NqpYv?= =?us-ascii?Q?U5G3Z3pkAHiMNAM6XVd2r1zWbsPc/NnAXZOlBZG4+kY6Gw2wQfEf3e2gDiwY?= =?us-ascii?Q?5SU7QRANJt1KHE+Erep7tjPLKIsamJ88bahbex7STspe8sS+fIekA45jB6tV?= =?us-ascii?Q?NqSEU/yZ8t9xO+OP7Yh0JwDhU4xPq92e+VpfS7XnVCGMpAK+q1flsf6g2mLq?= =?us-ascii?Q?I19SJKaxfO5d/bVF2qGysDJTzuKFWFKa4nAG9oRbdcSIC0QPNivL1VxHQVpm?= =?us-ascii?Q?kuXLz1r8Usr+/v6d0fxUGieIPsT5iXRd7K+xiVwYdlW+SqueAPU/l6by7wrl?= =?us-ascii?Q?nI82bggLde8M3C8wMzIWr45QZmjLbKG3zHZxz/kFZqjRzc+fX9NU+E9wAJ0z?= =?us-ascii?Q?O7NTdG5JgMsqkpbdXnA285JQlQPChGfZEbnarnq+f53O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DgsXYag6ezSmyQ2s6HKhGhcBE8SsZ1zVSW/tRX4PTvzC8fdbtCZ?= =?us-ascii?Q?qkKVFyq5pB5FFWmmYfv7yKSGCpyQIjb09gF5YQlbqEtlwEiA5qohw3rVoOu9?= =?us-ascii?Q?y45LwyqwKpxyKDgCOcxSqcMqFLBV1aPYa5XvkW/Ja/yfE+z5pSdhq6WenYsR?= =?us-ascii?Q?FGTr2kaT2QfKWdo7gtjf+TsGVuS5BdB51NJqiSo2Fg/PAD/CWzfPM8IwnVvZ?= =?us-ascii?Q?vaXyfcnou5NSv7FbMtvx3JdM9kCgsTuVg2vmyF6P/BIbAtLP3enbsZ0F4CLo?= =?us-ascii?Q?WNakBcCrRwYLM6zF4piXqSaQqlk=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <2C17778DC662754795CC730E86E5AB68@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: 6e833f84-9792-4ba3-ba9d-08d9c5bbed4a X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2021 02:28:37.9196 (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: 72soRiB5EwvAfgAOYUOIS36TulZrCFC3rucj5knrW3SwI8Be8raM1mhJU6Iy6vk+GYxRuZCHQCSaTaMrnHQujQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR19MB2693 X-Proofpoint-GUID: mXk2fZCvNoXAyOZACwHThjNrE_VfJE_8 X-Proofpoint-ORIG-GUID: mXk2fZCvNoXAyOZACwHThjNrE_VfJE_8 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_09,2021-12-22_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=422 mlxscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112230008 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-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=1640226583; 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=FyVV1AAF2Po8Sdx1o6mG0/lgY9ItWzYYEG8aE2pP48s=; b=ixetzWqric4nAinQ6a4HCTJMLGLXoyPGQRHzaoYhD5NMrQE58Dpad2IYCNl7401cd22xVw /h7zAIVLjPqLy8DYZ8RC4AUSKlPAB/zab+6Rt//1psuw9zg3GXdheBPVi2kDBpuyvy/MMI Hf9ye4FifGpLl1n6qf+4is/F6EAfi42S8NvMT5Hp151/MP1PhFVpLrPaQFgAM66pqKVp6u tIHmv0+vH0jbRa6szQmPSZFflH3sx86HsFzocs1rkbFaeGutLVei26NcWM312NS+Zi0TdY d1lqVWaXu70hvvnE1+fI/l+eAFr9/M/AMJw50VpJi3fh6Z/cgAS5oMOSmZla+A== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1640226583; a=rsa-sha256; cv=pass; b=OOS5MsyYpmV/nmtvoPoKy/WCvMXeqfu19fWLexJAHATJk3PtEK4X88iuIKwII2lpXrzHt1 pqB9leGAIoA8QbUB9PifmKOP4Dvstg86qAINGLqxP1Clbwdw2LBp/DTnoyzkqh17pYLfQA B5q+LD+v5Bf0Z2iaPBNM4rNRs3c/YSZOLzZ3F9iL0ynpbDNAh8z+tshbk3DXjarE7Q3D0H 24RsTUBVAVeUxsGsvCEo71jUiezsK4Jz3Ih8CNwPG4VxtGGgclqyEDW3CyOMSwsIke5BUE 2snAeSaU02SzsZ/OBAFkO8YyL2XSuPH00sHXBVmvNr41/qWzY3jW1pkaVGnD9A== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucsd.edu header.s=campus header.b="b/CxqO3f"; dkim=pass header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=W5V65emn; 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: -8.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucsd.edu header.s=campus header.b="b/CxqO3f"; dkim=pass header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=W5V65emn; 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: C91242BF8A X-Spam-Score: -8.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: qaLoTLVYZX4f > On Dec 22, 2021, at 2:16 PM, Yasushi SHOJI wrot= e: >=20 > Hi, >=20 > On Thu, Dec 23, 2021 at 3:22 AM Berry, Charles = wrote: >>> On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wr= ote: >>> 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: >>=20 >> #+begin_src emacs-lisp :exports code :file abc >> (assq :file (caddr (org-babel-get-src-block-info 'light))) >> #+end_src >>=20 >> #+RESULTS: >> : (:file . abc) >=20 > Indeed, this one works. But I don't see :file, or the whole > :parameters in the info arg passed to my function. Of course. Your function is called after the buffer is parsed. >=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 ti= me. >=20 > Would you mind telling me where the stripping part is in the code, and > the reason why it strips? '...at that time' was meant to refer to when `org-babel-exp-process-buffer'= runs. So look there. Why? I didn't have a hand in that decision, but my guess is that almost alw= ays the header args are only useful in babel per se, so there is no reason = to hang onto them. >=20 >> So you need to find a way to get the :file header arg whilst babel runs = and hang onto it for later use. >=20 > I'm still learning but :parameters, which holds :file, are already > gone from the info arg when org-myexporter-src-block is called. >=20 That is what I tried to say. Best, Chuck=