From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0MJBK7MYEGfZ/wAAqHPOHw:P1 (envelope-from ) for ; Wed, 16 Oct 2024 19:49:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0MJBK7MYEGfZ/wAAqHPOHw (envelope-from ) for ; Wed, 16 Oct 2024 21:49:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VFul0LLJ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729108146; a=rsa-sha256; cv=none; b=QlR0ck/8PKktxeEB+SEiJCoQiuh0wADLbQjZoN8xMSLHWz4R8tAelk9huCOHqx2fDf9wl2 JsiYCpbK28AHOtB+9r5RLazdzTc4n34Hfg2/5enHMu3UukFU1kE7QWxEJk4tXvQKSOfga8 pHoLZVn3M+gjm+9mm17WIVKVlYQQi0ALzqMVTGZwpvzWZTgDfBH+Hs/unu9s+9vRrSp1mT bcr5UAOK8YbG0NMO6gJsEWT2iguMu76f2rudkz2nOiRS+SskYO4+Y7d69LswBQK9wjOIzT eRIbZqnhow49VnbqQNQGl7SYGaJNOY6HfBp+kNEnmz3rsMrqUWQJV9IT+OlSgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VFul0LLJ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729108146; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9kWMKhsRFLsSMayXl3exkojSZnkz1YAOaECxXSXJw3Q=; b=BT8heHL6GVHGPrrBQP6q8a1TmrZVFfBPh9IpuL7v808ybbyy+j+Yy1tmZ7Q8usgsRvDug4 gGTb4x42OQ+0uhPp/1c0vvpMBcDaDiSEE86ThYPVOAodvbhPRHp81EIpRaec4Mkblm5xXA qWnaCXp+eUCZ5QxzJ0utR35gzA+nT34VUDSBxXyI01Bje3cXEksMdWl/N308m/Pfz0Hz0c OyHa/0LxRnC5oR1Bg7GtQ6JiYYcNAzjYwHcgWSeGIWq9HXFDK05K/8aYjOOP8a/7VVzTn4 gcu2W6MKPJjvGc6eM0j+6jo2NVcoGj6cmgy+ydYhaW9wwXmbipEHn7fg0WjPTg== 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 8CB6F33D93 for ; Wed, 16 Oct 2024 21:49:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1A0I-000898-56; Wed, 16 Oct 2024 15:48:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1A0G-00088j-CJ for emacs-orgmode@gnu.org; Wed, 16 Oct 2024 15:48:16 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1A0E-00064i-AP for emacs-orgmode@gnu.org; Wed, 16 Oct 2024 15:48:16 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E4D5B240027 for ; Wed, 16 Oct 2024 21:48:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729108090; bh=oveBxeJNM5J++kULMIr+G+QJuN6ZUsCX+NaFXYP3guc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=VFul0LLJe6u+NZyi6NbcRxYEkB8rfxYyuvWWsyFPl6ZRHP4t6RkqrM8N3vyiAskAS 8wbOK0K5D7DcGvh+TcjRib7PtZrhRSrvFZt2dumMwDQH1hmA6aEPkAThKJbAQMOchN MDkA2h1uVgS82/8gfOAZaM3VZWRA8h3COhXVrGeRdUg600Tz5FBpK/LnibbU6XZzeQ KGvlCTIXuhbf/PnhH+SWz92onSZHPTBguAaHBSW9GIlihIbJQUQG6wMcSen04nITd7 JPAVPP3jcH5n1tSFxk2Bqdb5kwtQ3Bk4BQxU38u2YRIZmqIpPVCUIB5cjiRmfUAlta r5fNT1sWAwV4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XTM2f309kz9rxD; Wed, 16 Oct 2024 21:48:10 +0200 (CEST) From: Ihor Radchenko To: Anoop GR Cc: emacs-orgmode@gnu.org, Bastien Guerry Subject: Re: ob-clojure breaks tangling of comments using org-babel-tangle for clojure source code blocks In-Reply-To: References: Date: Wed, 16 Oct 2024 19:49:58 +0000 Message-ID: <87y12n6d5l.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.30 X-Spam-Score: -5.30 X-Migadu-Queue-Id: 8CB6F33D93 X-Migadu-Scanner: mx10.migadu.com X-TUID: XWhe7FD/9fnU Anoop GR writes: > Comments in org babel clojure blocks are not tangled out. > ... This seems to be intentional (commit b1f564b4b6): In ob-clojure.el, we have: ;; Remove comments, they break (let [...] ...) bindings (body (replace-regexp-in-string "^[ ]*;+.*$" "" body)) It seems that there is some weirdness in Clojure interaction with comments inside let [...] clauses. I am not familiar enough with closure to comment on this. Maybe you know more? CCing Bastien, the author of the commit. I guess that we may leave the comments intact if the code block does not have :var. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at