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 WKfzIElnrF6jdgAA0tVLHw (envelope-from ) for ; Fri, 01 May 2020 18:15:37 +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 UKnxHlJnrF4PYAAAB5/wlQ (envelope-from ) for ; Fri, 01 May 2020 18:15:46 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 30654942EFC for ; Fri, 1 May 2020 18:15:45 +0000 (UTC) Received: from localhost ([::1]:51526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUaCO-00052P-5A for larch@yhetil.org; Fri, 01 May 2020 14:15:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUaBd-000524-1W for emacs-orgmode@gnu.org; Fri, 01 May 2020 14:14:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUaBZ-00011N-1H for emacs-orgmode@gnu.org; Fri, 01 May 2020 14:14:56 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:60142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUaBX-0000yF-7f for emacs-orgmode@gnu.org; Fri, 01 May 2020 14:14:51 -0400 Received: from pps.filterd (m0173170.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 041I8FYp003408; Fri, 1 May 2020 11:14:43 -0700 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=lRb5U0XYi9BWHQiYC6OLrl1rzE+oLbWoXfC6wr+2Nsw=; b=KJaSfrZ4KsbRLJqUcd7QqMFGFmXUxpcwpcrDW3uKIl3GfyvhXjrrANzj6yXFgeIJTFnG HbhqB0yLa9eOAqpl6ffaCbyRJrSdk0TpBIbACh1jDTcE2+yBl6P15SoMgIENARsWnBkX bMxV5ogNxYQ0/1GEB4ADt/soVjGNWgv134ZZdFNhLe1q0ZG+3QMonkO4e57QCG4zrPkI VDTCEDR3de7dRJ3mEnYAbqvZDmWphSQ9WjXyaHxo3Bte9KE9P0K/+WNRyoHOgw1a4dl1 TLr3LZotA67wgkGCpRMiLTQAXI1UKxLEp/iW15POMzCN57VFe3M/ioSJpjBaZpobbxt4 Kw== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 30r7h7h6pe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 May 2020 11:14:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JMDX3iEtBaGXBwmU58qgd5QIl4Ub0taBauh/B12dCmOR+yN6x08ctwpk2NmfC7xtQpXQ3fhRPQssiN+/rl2WHIcmU/uwewUod8KH86pxgAf1a4wRUvV69qNnlzS6eb70LM5AFaiXfP+c65rdWiEGwzNI6h4+vld9VRb35bxb3ZPHVyRQ15iky6CPHeuiIdLWfvgmbpfwyaC0G7YnyQbvCKJ3qBlez2Z4reMwhaZTKEFwmaDbBUDJimFXpRbT3dj/dTOJQSzc9dQe9yrHIs+jGyud63GdRzV0QJXpwRZ9/iktD8FY0hEbAOOpZJDsWjZ2/eZCV9q+5ONz90a4Wn9NDw== 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=lRb5U0XYi9BWHQiYC6OLrl1rzE+oLbWoXfC6wr+2Nsw=; b=nmWLpQLJK93uAFyANHdhWW38Eidr7MpSQwHzGMwz4FR2G3wZUQrRfcxZ5RqW8rHCp07mqFdOUKFenxaZqAmIjWDnbPZEsco08xSNa5EDzxfBLNchABuH4I/nxX4xhbw36IJQaPHzGaUY20D0j+mklJxJ72eOl2+BvJZAdoofmua+2VHdMxb60U2yDYpaJenAhJxAtOsIGwXloGnRunlfxAT73sU2ABfzo5Vhzwai4N5W9kGifOjcTwIzzdwq8HbhkjkasuWP1WSWSQwgTwxbTQb9v5VY9W0QJvEB41+/VLu+RovDBAo74+KQLy0Ic7PcNsJmGdtnR4hzJhPPsq2Lkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 132.239.0.26) smtp.rcpttodomain=gmail.com smtp.mailfrom=health.ucsd.edu; dmarc=temperror action=none header.from=health.ucsd.edu; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdcloud.onmicrosoft.com; s=selector2-ucsdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lRb5U0XYi9BWHQiYC6OLrl1rzE+oLbWoXfC6wr+2Nsw=; b=CJ0/2zLDFzx7kQMYIn+sKmL8jsMHSONYUHLdpq+41K8rs3BZT1BLDX0aW37zuzgzKCehs6/Zi4xzmBF8cRKXjTtk8NhpcwdDQ2ZlW6BhxPPr9fpfBWS58Ab+dKgAHI9pf50toufJ9flRpjqwHneP3k8u658XCUkoYlg1n7FhWjY= Received-SPF: TempError (protection.outlook.com: error in processing during lookup of health.ucsd.edu: DNS Timeout) To: akater Subject: Re: Self-sufficient Org file with customised export? :eval-when? Thread-Topic: Self-sufficient Org file with customised export? :eval-when? Thread-Index: AQHWH+RTo5+ARJfQ3E2Rt1Tqiiez9Q== Date: Fri, 1 May 2020 18:14:17 +0000 Message-ID: References: <87imhgyfai.fsf@gmail.com> In-Reply-To: <87imhgyfai.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.7.165.110] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:132.239.0.26; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:newmail.ucsd.edu; PTR:xmail-a1.ucsd.edu; CAT:NONE; SFTY:; SFS:(376002)(346002)(39860400002)(136003)(396003)(46966005)(356005)(8936002)(316002)(70586007)(786003)(8676002)(4326008)(36756003)(6916009)(75432002)(33656002)(70206006)(7696005)(82740400003)(82310400002)(336012)(4744005)(63370400001)(63350400001)(86362001)(5660300002)(2906002)(9686003)(7636003)(186003)(47076004)(53546011)(26005)(478600001); DIR:OUT; SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 48a4142a-b2e5-4ca8-9c2b-08d7edfb8431 X-MS-TrafficTypeDiagnostic: BY5PR04MB6755: X-Microsoft-Antispam-PRVS: x-campus_o365: o365_983452 X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-Forefront-PRVS: 0390DB4BDA X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZiH24n/QfpQ9youtVu7ynwAOJsv58ABY85IrPVW8tVsM1XuS5ba1j16JePjbJ+gDVzC68eM1GpPzAmtLf9UTcxI8ZoJiF9c0QhfE84Emp8fQHoS1X/BaTVSg5ALT8W/+Fi3+RysG593lNiNTBLPeQWdvgaLkdOwuOfrDncDmEhUoUk23b+bBiSv+aXF5JerDiNmUt1CyEhFUF1EvUOclnHalgreSBhmeOgFHnRdh071+aYkaIHuko81TGotDPjn0SsltAsZhkTWpnTD4soU49sGNSWFmLdeBeCZ2VxmKfnglCF69lOVLEKj7/odCj6TtKaF0XWrkY159X1GGsuS0losMAaj5nNoi947TnrrrJdBhTag3Ce4Jky+5Pv8cYvUWeEGU9q0m+G1uxZmrQ0bmN6Odo3kFb0QAOqOIPF6e190nywg0CMj58BVXu9JhiEWDsvHtlAFTI1bpSbINAIYkhq2zhleR+Eq+ycuxe4MUqcXJjkU5TbyPUFZvGtchUFspTxTuSdY4m0bmnQfY23WT8w== X-OriginatorOrg: ucsd.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2020 18:14:40.5533 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 48a4142a-b2e5-4ca8-9c2b-08d7edfb8431 X-MS-Exchange-CrossTenant-Id: 8a198873-4fec-4e76-8182-ca479edbbd60 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=8a198873-4fec-4e76-8182-ca479edbbd60; Ip=[132.239.0.26]; Helo=[newmail.ucsd.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6755 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-05-01_11:2020-05-01, 2020-05-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=575 impostorscore=0 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 clxscore=1011 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005010138 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/01 14:14:46 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Received-From: 148.163.133.170 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-orgmode@gnu.org" 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: scn0 X-Spam-Score: 4.49 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=KJaSfrZ4; dkim=fail (rsa verify failed) header.d=ucsdcloud.onmicrosoft.com header.s=selector2-ucsdcloud-onmicrosoft-com header.b=CJ0/2zLD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [4.49 / 13.00]; HAS_REPLYTO(0.00)[ccberry@health.ucsd.edu]; TO_DN_EQ_ADDR_SOME(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49521076089566]; HAS_XOIP(0.00)[]; MX_INVALID(1.00)[cached]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.16), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_DKIM_REJECT(1.00)[ucsd.edu:s=campus,ucsdcloud.onmicrosoft.com:s=selector2-ucsdcloud-onmicrosoft-com]; ARC_REJECT(2.00)[signature check failed: fail, {[1] = sig:microsoft.com:reject}]; DKIM_TRACE(0.00)[ucsd.edu:-,ucsdcloud.onmicrosoft.com:-]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[emacs-orgmode@gnu.org,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: uY/pfkUHfDOo > On Apr 30, 2020, at 11:55 AM, akater wrote: >=20 [deleted - discussion of html export] > ----- >=20 >=20 > If I may prematurely offer my vision: Common Lisp has special operator > eval-when which specifies when the enclosed code is to be evaluated (or > compiled). Example: >=20 > (eval-when (:compile-toplevel) (defun f () ..)) >=20 > specifies that function f should be defined during compilation only. >=20 > I believe it would be neat if Org-mode widely supported :eval-when > header argument inspired by Common Lisp's eval-when. Usage examples > would be: >=20 > #+begin_src emacs-lisp :eval-when compile load > .. > #+end_src >=20 You can effectively do this by using an elisp expression for the value of a= n :eval arg like this: #+begin_src emacs-lisp :eval (or (bound-and-true-p my-eval-flag) "no") "done" #+end_src which honors the value of `my-eval-flag' if there is one. You can also use a call to a src block. e.g. `:eval my-src-block(a=3D1,b=3D= 2)' HTH, Chuck=