From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yNefFeE+vmESzgAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 21:04:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OB5IEeE+vmGQFwAAB5/wlQ (envelope-from ) for ; Sat, 18 Dec 2021 20:04:49 +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 EB90D16571 for ; Sat, 18 Dec 2021 21:04:48 +0100 (CET) Received: from localhost ([::1]:60564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myfwm-00086q-1r for larch@yhetil.org; Sat, 18 Dec 2021 15:04:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myfqE-00020Z-Ng for emacs-orgmode@gnu.org; Sat, 18 Dec 2021 14:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myfqE-0007yL-Ax for emacs-orgmode@gnu.org; Sat, 18 Dec 2021 14:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myfqE-0000zI-92 for emacs-orgmode@gnu.org; Sat, 18 Dec 2021 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks Resent-From: "Berry, Charles" Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sat, 18 Dec 2021 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52545 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: Ihor Radchenko Received: via spool by 52545-submit@debbugs.gnu.org id=B52545.16398574303720 (code B ref 52545); Sat, 18 Dec 2021 19:58:02 +0000 Received: (at 52545) by debbugs.gnu.org; 18 Dec 2021 19:57:10 +0000 Received: from localhost ([127.0.0.1]:43880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myfpO-0000xv-6x for submit@debbugs.gnu.org; Sat, 18 Dec 2021 14:57:10 -0500 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:49532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myfpL-0000xn-Pk for 52545@debbugs.gnu.org; Sat, 18 Dec 2021 14:57:08 -0500 Received: from pps.filterd (m0173168.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BIEvwTf029849; Sat, 18 Dec 2021 19:57:06 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=MYNEF4TzxbWNHA6FeNHpsBcx+uS2pqUHvXLsc1V/ito=; b=eVkWVCyKML8J2uZVb5cOtXRCDFdWNJKku1HfyP6xeNXevy3nTcqrOAgFC0QMuNhZLcOK +di/3vVpaL8uPR8ufZT+3FGF+4CdeX1UlU6zVQUGqvb9rRcjHhxaSWBfm0tOGv5U+nyE k6wW2f81sz/pUFzR/n6MSsPMoqV151xLJ63C/QtIJ5igTWmMvGbNzhRf80omaVc3m0NN 37bFV4Wf3LEZWdl0LjvzWHGouuyf4rBSvlnaKWDd2D3WdyjLOcXPeAdBANnJ9jkWdmyY y1Dty9/0iSHqLXz0+zHdMm6Q1hM+5NYgmhvrDOPezcVpmPVLtkQeYaKTW+vzPOd3ZDeh Ww== Received: from secdlpezp03.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com (PPS) with ESMTPS id 3d15pq96j2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 18 Dec 2021 19:57:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQMo39Dm2U3fQxMaNQ9UdGKu43YhOYciSjts+jpmze9hk+0/He1FWwA6bJo+AP+YTMiGLOhm+eg6MUN/Mk9Mh1pVVGwOT6c9KK+lzzatXIpuhfq1dnGn+s9cPeI+Oybzkd8vfLgIpuVqPNOOmunELpLV6fwAaI9QnGJlGYCujvLhK5k1hqeFucTqsGw+thGf9ObtmRgb1W7chEP4rBPipZhZu7PfgjK+qneIMUkCXvvN0CyJD9qnHCW+UVs0+9kSxlTSHRLd+xFJC3KceBeuN9HD/VMgYQx2H7gXHjHMMEb+L6Tn/jaEnduCO1BwrAydf2uusTojFcAciZp/yJLHSw== 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=MYNEF4TzxbWNHA6FeNHpsBcx+uS2pqUHvXLsc1V/ito=; b=es3jPo5mCqSEGa+Y6xcyoobMlxbMI6JQleCYUOmLOsTG419Q7TaLyap5758nK1kWylRli8RjAwTAjHP3EXYAmMRsLZgIgb25LzR0KwnSDSE1KsSZo2zeTCTd8XmNcWjXbTrFQsGW6qGxb5LEhgmauD5Y3D8vCjjffSGwVB7rq5470kM9s4oPBJVz54UPoW6s6/I5VbimWFsHYbtWVVpAOQOIPKa78/+fL4wMN+/IxO/5sz0Oogx8Z5nuVScSfrnbHm21a+clH8Up7yMu8cBoaIVnWtZ3+l2P7nmNbKGc9tCw1q4s3fDwS6mab4mRQmTXNziFe2WI/4XLC3vuG777Zw== 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=MYNEF4TzxbWNHA6FeNHpsBcx+uS2pqUHvXLsc1V/ito=; b=DQTd29FioSIpRjC0wv2804dnuU374iFXfWfxt7B9OTxGXLOdZcxa8JTgn94eenJksGuPGDuD7XEa8cyovrXDKkxxAlhUw2vXvOPE+a4TXwTWQPOn+KB6K0IU2+4R8dRW0uIvEXtQF88GPhzXcr0RK508FraAOzqNwTHyAz0r6t8= From: "Berry, Charles" Thread-Topic: bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks Thread-Index: AQHX83voZE4ImeHP20miel3NcHamzaw4AgYAgACp2wA= Date: Sat, 18 Dec 2021 19:57:03 +0000 Message-ID: References: <87ilvnx29d.fsf@kyleam.com> <87y24ib5v1.fsf@localhost> In-Reply-To: <87y24ib5v1.fsf@localhost> 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: e2df957f-b582-42fe-b977-08d9c2608fd5 x-ms-traffictypediagnostic: SJ0PR19MB4794:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6DIgstNg2JXOhk2UkDv4gp343jVIL2gfwzHtuNNRulWyXy07h1vgivqfjX5EsUh7702zcu8g35cPTHRs4Li0HZ1AqTbgkvXnIMiMA87H6yABiDaf0eHsgtHAdMzk3PH6DUy3wr5NSLrGsV/7qeLtj9kM8P1AhsiHh/2Jdjz7zSzLZ6YvV25a7bF+9p61PLussFfoOONP0Gx0kndcVoqh9Rd/PFArzkrGg5/NOmAtozJaQLgCnecxOOd09BWCtnQ7PdIsFK5ctAHrmilvl2iixnBoFxB1GfLaYthkzbyM+rNUqCipwd8AzMCJJ0VDt/dRiqoACWLrBRDu3zxjFXrWYIvj30UAjY+OEpbSyYhTSnsWWYvSW4wsp5ehes3tibf4Zkngdzwq4+Kip2srGwwkxSgmfomoT296WbL7zPSEH0aplnv6aySkJk4FjiQu89P49qkmqR445pYYqQ60cD+UBYvwbM2JtCqiGv85Kv420QqgFD05JQ0eQsWjWUSWQicd3JARmNAysvi9BOWSet1quxtAJsscy3ZBrp9d829+MBPYY/uPqlShN38dHDaNZFqkMVF1DzI0b3mTwSiiTwMIwJMkU3AoXpjIygG2di1zpS/BYMTtkorM8G7lQ4ZNMb2FMK4hY7YIxiRcCGfZFhXc7cX/MhPB3SpMinmqKcrRqqc0xOWkiAfo+oc708jvUALsPrxh/PFhOqFFtP0Ca1A55TkJurkPW2YNtw327tGY4FW4Ja/QLA+vxX0Z7ihu/xpa 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)(2616005)(83380400001)(6486002)(71200400001)(508600001)(6512007)(2906002)(5660300002)(75432002)(33656002)(66946007)(66556008)(54906003)(66476007)(64756008)(6916009)(4326008)(66446008)(53546011)(38070700005)(76116006)(86362001)(186003)(6506007)(316002)(786003)(8936002)(38100700002)(122000001)(8676002)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 6fAtA9Z1cMBgbuw0Q0sjs+9fY7wadWikn9drQFrX7FIrH8rxkLXBZTeNM7XW7AZGs9L8vHeBfGEyE4F/5ASeEy7l/AemW4X4GZDLoMh3r0/zQJkUD6o0BsHogjm+dbzTFo29IsbVXA7h4UH7nkqtyapqlwXn1iwoo5OUOgU++VC6+676fRNUXYmjyif7rQ3ZOQ1IMaBovlNgcuLr+GzuJlvTiU61aJFMZaLGoMm+cnSTaB8u4xUcGBP2KX0ExXqP6V567BP84Zyj4pwTUVG8gnfbfhBVpBE8v8t++Kol/dJ82j5MSTi93o5CR/SavctRIx+InZr16UrhEi4zwKL95yK1dUBbbXyMitEka7YQRNqpgOLmI77N05X0sfLyC9/hycHDJXQNj3u4lFonlTXie7pAfpC5jTq/cWWUeNa7UEx/cLnGLkrIhtMJrjOPj0IK/veHTCPO9Tkj6+rrTJlj8wW6xiwpHa+7cjC/bfzi/cFShrsnlTBv2X7PYCLjHATB6yqw2WJ9kiy2fLv1Q0kTUFAcqVuBgtDMOC1FBsvzbvcdVzTdlLO1vc9vB2G6Rjy/uNtfTHfm8ZQNi42/e2/qEG87SZ29IkkaGdHXmHH593I1/WKnV353JVDXgeIIiWbhZA0dUkh+VkIdbQd4to3ZK2p1+FMjOgSqFkSsKYn3Mp21Qt+m95h0Ww0DFaFQINAIGaRwHYyrd8FOIu1RbYWL/7C7Mxirfk3QKuIDXUhcThWfjsl6yNQyDFdWs29I91XBUo+bwvtHnGkT8D34IvsSrFhOLab5rRUR6MejnokCGK63cKJc4k6vRCRZFBhnBmeFbh1nr/KKcliP45a91COq8ksDfxpW80JZsqyi8Ma1U7sgKHEEku+oNLcNvfv+VaB4FEljh9zMHnaH419Is+iGrgteOqQZAJY8GA2z8N/WkPbB02jixSS5ihbCnUVFGuy7 NBf5SgvSB5gIrtB074MCdYa0H16MBM1kvpeWBAlD3qf2SmZi2Z2Ld24nFpIE1O3DyMq3VPLKzXYFsM57FI5HlSFySuTPcLpJm2fbNNJDdIAlR+CQGdWS+/oYt+OIJVeOOW0LkUSmROB8ZRchH0o4NB9R7V3E9LPuLxevGnFsbWqzL4h7+wefi9bb7+W8KhyDVwTAc324XGqn6eyCZUqTsl3NjE+KhE7JDT9PZa7kzCwCrjZx4W0SWSriwf4aLW8dA4StgFx11qdroF1v/ojrbTX95+HVVHufNt+AOIlLLImPUFxlpt0xB2uHlAolbhQ4fk1WddEVmSULmvOWdgdgTYSZ48xAGmVmV1x2+pd4FF1zlbWrRAg9jeyHkpPyVkFrGpV/isPz+uL+McR3JKE3k8qo8DO86PBdHSonZ7LqiI4uge7LM+7jM+0Ao2442VgbdPUV3IE4yVtmX0ooTyubEwTDZTDRo15dgrAa4u8Op6DpsZLZkCwxKlx030hbIsfYwyqCAjIYcsr0yeh2sASYMvSjJ3u7vmxQ+QmI4sNVkIuczN569dKj8amk9h6+O01CEzvJYfqnpd9yKstHKT2PjSqZnP8EMsoWnDeaaxT61GVQgiVjMMFJjJ9B2vjZNdLnRlo7BD7+T+76HqCHsT3qIO3IbDaBEHGvdqOJdu4gIwcJ0Q2PPYm2qPNLhrY1iPI9RXG1PZqOIwZJYSdm6FsOkJpFBh0PB/2NiSvrotIIbUg= Content-Type: text/plain; charset="iso-8859-2" Content-ID: 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: e2df957f-b582-42fe-b977-08d9c2608fd5 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2021 19:57:03.1527 (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: 0ECcVffbpkLKJa2ua2QfpPx/Nq40PrIq2Q34w6YJImfsTMU0829wt/wr/8UQSwdQ8jM0Xcg4P5edwGqqOv+RIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR19MB4794 X-Proofpoint-ORIG-GUID: 76sbJmARQ9B_6yxA2Mcp5PLKw3g1iQpy X-Proofpoint-GUID: 76sbJmARQ9B_6yxA2Mcp5PLKw3g1iQpy 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-18_08,2021-12-16_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 spamscore=0 clxscore=1011 phishscore=0 mlxlogscore=261 malwarescore=0 priorityscore=1501 mlxscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112180119 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= , Kyle Meyer , "52545@debbugs.gnu.org" <52545@debbugs.gnu.org> 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=1639857889; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MYNEF4TzxbWNHA6FeNHpsBcx+uS2pqUHvXLsc1V/ito=; b=g986MtrLJxIaxaxYOCZecfycpPVkHIFvuILWDHG+3evPCdDaA2k41oHAkbd4bgwfKlBCjq oc4+GCmOsqpNOVBTp1OJMnPSk+SHRcq2tHw61XXTmT5s3ZqVzENFGxdbykfLwd6JvhXHjv 7bha3HP6O+d3F6xaY+EYGd92mbpK4vh/Fp7Jelo3rYjJLJXZWm6hk/S9tNl8hRyOYEQvbq NceDctFUUslTBs5xnFMzSWMlUTXCJfoGvxYvGaS+Oppgn0vk98iFntaph7yteVS6C7fdep bdqQgDwlBb8/q0/Qs8LDJX9VnHG/1LDynykOr5ni7+O2Ea1NtCLHKUuB6LM7HA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1639857889; a=rsa-sha256; cv=fail; b=OtGT8E23N3bQb2oO8mt5lOvc2s+F16KVNYiPKLq3G7Nkk7Aqa30vJQaRhJKqVEdib66ddK dCarrLL4WfqIgUCiiGHvRHG2iuWQhQ7LuLb042WxnHzOansEmgoDbSrPKZBnWlXOwOlD52 bu6wUVuipwyPaExFBT3S7d9CaU3+UxE7zED+mC14MP59k/wvr2MulJYQl/b8DorMGkciz/ nlCl4qMSt9cL2vszS+spF8lHxuxturVHPIxhCpd9JnOWbC9bXQiYZodrExks7xW5XK/XLy uuMjNVpc9FedWvKH+1qkIoZeJucH1GqAB3tPAcW9gVpgIMmh5ymof9PlfwBZDw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b=eVkWVCyK; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=DQTd29Fi; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=ucsd.edu (policy=none); 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: -2.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b=eVkWVCyK; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=DQTd29Fi; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=ucsd.edu (policy=none); 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: EB90D16571 X-Spam-Score: -2.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: oTIVL5L4n43c > On Dec 18, 2021, at 1:49 AM, Ihor Radchenko wrote: >=20 > "Berry, Charles" writes: >=20 >> If I have a typo in the name of a language, the error message you quote = tells me what my mistake was.=20 >>=20 >> I'd say that is a feature, not a bug. >=20 > Agree. However, some languages simply do not define babel execute > function. The error is same regardless whether a language backend is not > available/not loaded or the backend is loaded, but does not provide > babel execute function. >=20 > Maybe we can provide a custom list of languages where we do not throw > the error? If a language is in the list and there is no babel execute > function, we can simply ignore the source block. If a language is in the > list, but there is babel execute function, we throw another error. >=20 > Though I am not a big fan of introducing yet another customisation. > Maybe someone has better ideas? >=20 I believe there is a feeling that org-babel is already so complicated that = adding features should be avoided.=20 There are workable approaches under the current setup.=20 --- For one, you can define lang specific header-args, so just define :eval no = for the lang's that you want to use, but that do not have org-babel-execute= : defined:=20 #+property: header-args:nada :eval no #+property: header-args :exports both :eval yes The code here will be rendered, but the block will not execute: #+begin_src nada "haha" #+end_src --- Another is to use a custom :eval arg like this: #+property: header-args :eval (my-eval-p) :exports both #+begin_src not_defined "haha" #+end_src Where `my-eval-p' is defined as: #+begin_src emacs-lisp (defun my-eval-p () (let ((lang (car (org-babel-get-src-block-info 'light)))) (if (fboundp (intern (concat "org-babel-execute:" lang))) "yes" "no"))) #+end_src Obviously, you can elaborate `my-eval-p' to satisfy individual needs. Best, Chuck