From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UOKKOPOrDmcaXwEAqHPOHw:P1 (envelope-from ) for ; Tue, 15 Oct 2024 17:52:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UOKKOPOrDmcaXwEAqHPOHw (envelope-from ) for ; Tue, 15 Oct 2024 19:52:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=lD+XziYY; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729014771; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=ex00/MpUWD0ZQcLj66PP7577xuPHisabQ5iAGPcu/zg=; b=TkBuBHKz6NVEmdvNyNFvFpBALSuilAfjxQqXl4zJgwdDJZUBqSnkcKxqXAA5//rSwXRQOO UEEkCM9hZREbUxZ8o1kiwHgDPJ+jZdMhyKKFe6hnvFOUhuxRUKXFfV6h7mNvi2deIKvwmw C/rF3e0UYx++VSqrJl1iqol4cK2+H0L32JHddg6AX9Qxb/Q7TndayZC7WxrTb4CTNGBAdL 8qV2vLTWOgkBgp/mqZY+mQFpO6J+nN80mEl1qfPSW5T9n9nVKecbQFjGqOjDryTQGFQnJ1 ZYg6JVuTMmy5dhE9qbC9C92TPSK1deyDhHpGYwmLTiGrg8KnuyZ0qlF0atL8qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729014771; a=rsa-sha256; cv=none; b=P2fjDF4QAPqjdeZeCD790VX1pkSC6GkipXPfuwXONoRrW5cIRdn9s/dHAsyp+B4VmsQ/gl MdOAMsRvifasaXF59XDeJ3Iwj1GkLMxQuXzFGZYKA9crqgCLVI3QF+si+VFBISxxYGkTib qHMR2fVzbRWg1H3wNqx6kvzcVloppwyx3LokpVIa13vQkzFmcJoBroyXBS7j4Y5fu4xIMM 0mrGT9GHCAL2eC9Il4ERUp0Uw9q3lQEjLwmEM8MTNWqSIwnIpH7VryJZ/sJvQ3EwGX9M9b qc+SJxPZxiHcIPaSx0cbI7i0Q5wjAPNS40iQSGG2ECVB4KUG/jEBX8YlenrUnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=lD+XziYY; 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"; dmarc=pass (policy=none) header.from=gmail.com 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 76AA45CB2D for ; Tue, 15 Oct 2024 19:52:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0li7-0002Zy-4M; Tue, 15 Oct 2024 13:51:55 -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 1t0li6-0002Zh-DS for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 13:51:54 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0li4-0008DR-Mc for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 13:51:54 -0400 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2fb49510250so21836501fa.0 for ; Tue, 15 Oct 2024 10:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729014709; x=1729619509; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=ex00/MpUWD0ZQcLj66PP7577xuPHisabQ5iAGPcu/zg=; b=lD+XziYYq4y2y36bREvMLfdCU59KAePLBW9ZOxHSdsgZIQKKXQ6M9zWaPw1zWSPO96 CKxJjXyUvVvSe0KNno6IOAjuQ5xWFYHUErf4YGBZPIY2sR2/tkW6XZRc3GznXUv+mAzR If4xG8eEgLZKO9tiUfcF3avulQkKq4lX3KfQsfwqwS/jKHm1Kv5/NykmafT9l0Wx/17w no3iF9ItsefRFpG9njrjLv/ADapph+qUk/K2k/O9KDCHD2RkPLGT2CiQRkcG1w1i8RP2 NwQ8Rom/xNH9+5gIohUFN3O2My4+GDQd/yzjESrThdu+PdeiycYXONoMP+iFEa6/k6iv UwPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729014709; x=1729619509; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ex00/MpUWD0ZQcLj66PP7577xuPHisabQ5iAGPcu/zg=; b=aVfDGVVgSY3BGAgNCTPavSQEeAJqCBQ5IV6BcBY47Ev8YCGDjnNpozXI5Vh/4r/Axh FnFlzry6mhCJ2epKT4uB92XqawefXNNwnOSc/hJ7S2P/bwCO8zP8vzFBhvlKuctyzXGD AKtVpxILQG6YkGu22XOiTRQmPNW3DAH57Lx9yyhg2Zfx0ONaC55M5DEaF20YCv1PLMd9 jir7lyhFg26QYP5Ap0IBGbUDJ419nw5WEs5vEqLpEhDHcdIbfIEIatdhwzHydp+TjaG4 ty3qEvyXRJtA1gg7ZDQn4/BWJcejgOzb5gZ2i2t1x3P1WgBUb5hqMdPvuzZvC/NnMdMr 55eA== X-Gm-Message-State: AOJu0Yw1nAAeDoeBLT+OjIAxFvji3YNjcnIciXGupuZ8vfjrELd0LGYG a+CVzSKrojSXl/3WbW65ruBZK0XHIxbxkR+YMuDnNd5eo5fVcd55zQP7uz27P2HD3FLGR+E+zBm N7XtF3rAlE8vJxcUCIhuKBuMUbw+8Cjn8 X-Google-Smtp-Source: AGHT+IEhXaW2vC/DU+2ZAHmZphh7YbMHw0Zr3YGnAfn98/KsbffwI+uk+8mzY2XzurZ3ZOm2ryJNOLyAhjopg4oInnE= X-Received: by 2002:a2e:be87:0:b0:2fb:5bd1:c288 with SMTP id 38308e7fff4ca-2fb5bd1c42emr18887431fa.43.1729014708977; Tue, 15 Oct 2024 10:51:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Anoop GR Date: Tue, 15 Oct 2024 23:21:36 +0530 Message-ID: Subject: Re: ob-clojure breaks tangling of comments using org-babel-tangle for clojure source code blocks To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000008a49c30624879b1b" Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=anoopemacs@gmail.com; helo=mail-lj1-x22c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.88 X-Spam-Score: -4.88 X-Migadu-Queue-Id: 76AA45CB2D X-Migadu-Scanner: mx13.migadu.com X-TUID: +SohegqLRdSv --0000000000008a49c30624879b1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The contents of the org file were --- This file contains only two source blocks #+begin_src clojure :noweb-ref "Define a constant" (def e 2.72) ;;This is a comment on a line of its own (def pi 3.14) ;;This is a comment not on a line of its own #+end_src The following block will be tangled #+begin_src clojure :noweb yes :tangle output.clj <> #+end_src --- On Tue, Oct 15, 2024 at 11:13=E2=80=AFPM Anoop GR wr= ote: > Comments in org babel clojure blocks are not tangled out. > > Let us take an example org file with the following contents:- > > This org file contains only two source blocks and a total of ten lines. >> #+begin_src clojure :noweb-ref "Define a constant" >> > (def e 2.72) > > ;;This is a comment on a line of its own >> (def pi 3.14) ;;This is a comment not on a line of its own >> #+end_src > > The following block will be tangled >> #+begin_src clojure :noweb yes :tangle ./output.clj >> <> >> #+end_src > > > When I tangle the above file, the contents of the output.clj file are:- > >> (def e 2.72) > > >> (def pi 3.14) ;;This is a comment not on a line of its own > > > *The comment that was on a line of its own is missing from the tangled > output.* > > Was able to reproduce on both emacs 29.3.50 and 29.4 on Ubuntu 22.04 LTS > Both were started using *emacs -Q* and then evaluating *(require > 'ob-clojure)* as the only line of config. > --0000000000008a49c30624879b1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The contents of the org file were
---
This f= ile contains only two source blocks
#+begin_src clojure :noweb-ref "= ;Define a constant"
(def e 2.72)
;;This is a comment on a line o= f its own
(def pi 3.14) ;;This is a comment not on a line of its own
= #+end_src

The following block will be tangled
#+begin_src clojure= :noweb yes :tangle output.clj
<<Define a constant>>
#+en= d_src
---

On Tue, Oct 15, 2024 at 11:13=E2=80=AFPM Anoo= p GR <anoopemacs@gmail.com&g= t; wrote:
Comments in org babel clojure blocks are not tangled out.

Let us take an example org file with the following = contents:-

This org file contains only two source blocks and a total of ten line= s.
#+begin_src clojure :noweb-ref "Define a constant"
(def e 2.72)=C2= =A0
;;This is= a comment on a line of its own
(def pi 3.14) ;;This is a comment not on= a line of its own
#+end_src
The following block will be tangled
#+begin_src = clojure :noweb yes :tangle ./output.clj
<<Define a constant>>= ;
#+end_src

When I tangle the abov= e file, the contents of the output.clj file are:-
(def e 2.72)

(def pi 3.14) ;;This is a comment no= t on a line of its own

The comment that was o= n a line of its own is missing from the tangled output.

<= /div>
Was able to reproduce on both emacs 29.3.50 and 29.4 on Ubuntu 22= .04 LTS
Both were started=C2=A0using emacs -Q=C2=A0and then evaluating (req= uire 'ob-clojure)=C2=A0as the only line of config.
--0000000000008a49c30624879b1b--