From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 ULhXGPWrDmfrgwAA62LTzQ:P1 (envelope-from ) for ; Tue, 15 Oct 2024 17:52:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ULhXGPWrDmfrgwAA62LTzQ (envelope-from ) for ; Tue, 15 Oct 2024 19:52:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dTbA5L5c; dmarc=pass (policy=none) header.from=gmail.com; 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=1729014773; a=rsa-sha256; cv=none; b=jPXxFqw2UCVZVRsbEg7ZpqRVYt8K7qaIXNS9ZhnpesE+UunHmmQ0F7SnQOP2nOz45pVn2O oCNVQazhJ0k5BBEGlp4VnDN9tfbj76ZEq8pH0rECQW/bCLLiGYKyQ9t5cjGM4l9oDWMju9 VmhucuzWgevD1514Hs+gtFgNRU464Ed3MjpDwOcUMGCU4QoczcRcECcYiQF/kbXDXuj+Aq NsLyzlxPxcjPl1/c3n+mBPihtNWHvaOeFDX7C4HgrrouiC/rVFsXRapaQxujAZjqFA+w+Y j680TA365WIjuUizMxyHLQ/AEUCnRFflR3PHER/hX0nzovw5U28XzRu+S8WUmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dTbA5L5c; dmarc=pass (policy=none) header.from=gmail.com; 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=1729014773; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mK5EnvklD9oeLn53jTPcgq4yr/wFp1IMORxXiGOp/UY=; b=sMhpN4f8mKZSEHRrueOpBLGlYCq1b25Z99u8tpAJoSIUv5I6CEYbbFiWfUjB7ddfvGige5 jh7WRwS4K+pzvWCfzajefsLyB3ZEB9DwkyAczvwxsEE8Eflo8qIdB7kteUVxJVGEP7UPVx D0SGGWWLav8fATBAn7i5wFSYA9/YulLTzCS5yX44+zK6X8Kxe+fEytyoDCOVC+29TQmYqt G5GaONEqz+yZhqaApvd8kOGV8nEKhpP4CEiQqFLqyTtzHuWWKdx9nSneDslZEjCCUqjX8g 4O9l29fSfTUY9NdwgYd99K2W+k2TZVs1sMZCASTCGYxD3vRXFHjj2fTrZLw8uA== 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 E976C3579F for ; Tue, 15 Oct 2024 19:52:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0liZ-0002mb-Ke; Tue, 15 Oct 2024 13:52:23 -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 1t0liY-0002kI-5g for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 13:52:22 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0liW-0008Gi-GN for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 13:52:21 -0400 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2fb4fa17044so23677491fa.3 for ; Tue, 15 Oct 2024 10:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729014738; x=1729619538; darn=gnu.org; h=to:subject:message-id:date:from:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=mK5EnvklD9oeLn53jTPcgq4yr/wFp1IMORxXiGOp/UY=; b=dTbA5L5cBep0DOV+8yEgypNH3Dj7QMhYK22et6cOkTNO65Z6YZx4b47FinohkoByPD KFDTrZS+vm56W3cUPSvq1IZYxOTPM0m68Yxhp7tK87/Oeg+jlZg3JobvCDzae8utO2vv 7JpXvScTaKctb3WzsZU1pM3hMThJBX9Q2WBOIt7fgZTT2eZBIqzlZEmyW9j5P+bAe646 seItUdMpeCHFGFtqF9U2Eqzyakq3hsBdh7vYicGUIbbkfzdRs0oHGsuiAKQAoX0xv3Xy A4MXhQpC3mABQyyj/6G2ThXuqJUrlnsZ1d01m9f+zergq+W8YdWHD6VxF5Q3NtRd7wP8 HaNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729014738; x=1729619538; h=to:subject:message-id:date:from:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mK5EnvklD9oeLn53jTPcgq4yr/wFp1IMORxXiGOp/UY=; b=lGrQnDijlyDw05OJM1FSdNmlIGY8jAV7kNTtoj8pbqbwIIrLGDbI5fxMy3jvKiun0f QR7jrWETvg47UoBbkSm5XWfM8Vvn4TyqhYPaqmoM0EOqB6dfeRaYezQ+o841vf1EuLo5 kwAaghy28+L89IDSM0fDzxuA741dhAClYE43cXYulKUFwmeFifw3AsdGWq2R791+otyT AAM4vHtD4wCSQf/81anEwXcRbgCjzWWjfBgwmwrmbYzJm+IHvolnJjGYADxgBijsRpCD /vmHhbyjt4E1XbA2adrl6lzoSwWsvOoeEDc2HbNcl66Qz8Cenr3GN54RNWS1comB9uZi NA4w== X-Gm-Message-State: AOJu0YylXm+yKdeJMfxhkOqhdBhzPvAGlcihvesMogizwOzWB0hRAZ3S 3bqOQoPWXLFuQtMTpA2kP4lVxvh0XHWkXY/OWFQTrGvy7NZ5KMjCH7qxjIPPd+X7tsF5HwUZQEg OMtG5+Q0OaYM4jb3upyn1dNFkke2rOJjP X-Google-Smtp-Source: AGHT+IFOaIvd6qQli6J8jpnvDPy98bYuYJM3d75Qp+XHDMvhOBVKDhhs4oUDJXPLj07NV+IreNH8TLXX/62pwcMr6sM= X-Received: by 2002:a05:651c:546:b0:2fa:fc98:8235 with SMTP id 38308e7fff4ca-2fb3f30d3aemr52859011fa.42.1729014738062; Tue, 15 Oct 2024 10:52:18 -0700 (PDT) MIME-Version: 1.0 References: From: Anoop GR Date: Tue, 15 Oct 2024 23:22:06 +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="0000000000004618dd0624879d22" Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=anoopemacs@gmail.com; helo=mail-lj1-x229.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.68 X-Spam-Score: -5.68 X-Migadu-Queue-Id: E976C3579F X-Migadu-Scanner: mx10.migadu.com X-TUID: CHfDuM8UDD27 --0000000000004618dd0624879d22 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The contents of the tangled output.clj file were:- --- (def e 2.72) (def pi 3.14) ;;This is a comment not on a line of its own --- On Tue, Oct 15, 2024 at 11:21=E2=80=AFPM Anoop GR wr= ote: > 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 = 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 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. >> > --0000000000004618dd0624879d22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The contents of the tangled output.clj file were:-
---=
(def e 2.72)

(def pi 3.14) ;;This is a comment not on a l= ine of its own
---

--0000000000004618dd0624879d22--