From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oD83NPqpDmeQBAEA62LTzQ:P1 (envelope-from ) for ; Tue, 15 Oct 2024 17:44:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oD83NPqpDmeQBAEA62LTzQ (envelope-from ) for ; Tue, 15 Oct 2024 19:44:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=b05m+Bdw; 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=1729014266; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=moNal4Z7YK9sAa8z50BUpefHpoupgkF5TPARz1EC6Pg=; b=Yi1sWvc2CkoL6lSrT2vXe76EluTzXqPh88oQ1H75NSLd6T2pikthyDU2hrR51mLXgTzQs+ /ztBKMlDwzCcuU1wEBdD5Xy5JeW8hDVNeohH/EzNK0Tc4A/UrgYDCLGZCww6H+Wh3FArwf 5hOWA9j0HlmDiZvqrZOzFpRgvpVnMwUejoeslaWnLe8aT4Qe63jBiMHIHMJ0kQAN93Udun AVRi0GDMwL/L0vhYIiyx2g7/bEqfvGS/MeFbYKwJLgLeIVf20XzMyNoQtPVDyOIss/d7XA EdVPwzA9mk4SjLt0lU1RVfjzWsQ2rbaxu8bUMsH7DY1Z+axcOxX+m7AAeFvB3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=b05m+Bdw; 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-Seal: i=1; s=key1; d=yhetil.org; t=1729014266; a=rsa-sha256; cv=none; b=XcEoRz8kUIjvsYOs6aRIYuhNZ3LbE+7n0dmPOVhF27ICd5K1ytHW34Gdywr0/pw01h/tx+ Gp4D1y1r5mQJagdFFCUAIPEXxD9fKXJwi7gwkBeon1UEqbXmAlLGvtzZ6+C3FtNgyAplgK YUcLwVv6B+7q4iKr4IQZ3xvFdktkQBm/NJywEnat4AFh398rSHvturu2yj7a3tH5fGpKU1 g98SxTiGPn3sL/87Yy61IfMgrd8DBGpWJzV/OOLsGSijBaqjP6MMLqVHM6MKUcFeFOQhW6 asVq6pZDCPg1K6PfMuseq07SEFz+zNrl/Vo/zOQUF+iov4qc/FNtD2NIMAIByA== 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 7668684C94 for ; Tue, 15 Oct 2024 19:44:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0la9-0001JB-Iv; Tue, 15 Oct 2024 13:43:41 -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 1t0la7-0001Ht-W3 for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 13:43:40 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0la6-0007S4-F6 for emacs-orgmode@gnu.org; Tue, 15 Oct 2024 13:43:39 -0400 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2fb584a8f81so22027081fa.3 for ; Tue, 15 Oct 2024 10:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729014216; x=1729619016; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=moNal4Z7YK9sAa8z50BUpefHpoupgkF5TPARz1EC6Pg=; b=b05m+Bdwu0Qzm+eH9noHsxpgDrQw394bKG5idrWF01jltsIf6sa7jZcE6g4tnDHsFd rh9vrBqczAkLf+MjQWRBY60L/kgon41roQeZete+PwODyl7duh3Kzkm/8vZEYkOm2OvB eZG2MToVOUKoNrOF61UzOaKoWo8vv4hkV97iOFhZWKCXPRpB4TpYb1snw7S+gytxVvMD WnuGc4pgk7PRU7BWG1zgoQ90xx/0wqYZs7m+yAadmUrG/rIMR6o0Neb7268DIftztDIu ujtD+/QybH4wcJaMQuI/vcwzHV5qEvqD+SbVtSIYzS8A8R7Mssqqv9R7ioV+1sATi24m dyVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729014216; x=1729619016; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=moNal4Z7YK9sAa8z50BUpefHpoupgkF5TPARz1EC6Pg=; b=vrlX+rL+jjye5DgnUPA3pkaaX5Ii3kkPcAqwP8rK17VxetZXantWPH1IHCWbr3mGU8 CdAI2xhlT8zoBIjI2kp/Ahw3PCKqhUrDV3FxFm2Rc0AX3wJXGV7BG/RhxEXrFpbxJQnz LefyciLhkGvmfemHDlnrF6r/ds0KZ1a8F/4VBvokqBS2fR3JmIhUjwG7fH+as+IMj0SC EWmxRhuwj7NTf3+HDBerQmld5Jexx3TjtojDeaPPcow6XhJ60CN2mjxR8cOK/HQQhvkX W3hnlUJ016yjLb0Un4dfspKFQ++0kTC0innIUKcOAezNhqu3DKR0yDWiuXV7maNJoGut gSuQ== X-Gm-Message-State: AOJu0YyKGAdbOk2LB1t+7bySbcwU9HkWkoZOhODYoMXWgUYRonNVtjTi J7ITSw6y7fLpZ37Km9uSruU1pj/qqVmCzp2Aq4N+pY5QDGAK16iHQwQgroa1kzSDkYWk0txB8tz Q9ZhlbLCvaGccYDZBbEpvp7q9uOvjEeA/ X-Google-Smtp-Source: AGHT+IE9IYl5Rae078rsAEEY5BUgYrk1gmF55fBiOGpWsd+F71wBvd6h9YSC5ishcGghoSEXVSsHV/nysJpO1guEkQ4= X-Received: by 2002:a05:651c:2227:b0:2fb:5e64:327e with SMTP id 38308e7fff4ca-2fb61bb1d6cmr10561281fa.33.1729014215620; Tue, 15 Oct 2024 10:43:35 -0700 (PDT) MIME-Version: 1.0 From: Anoop GR Date: Tue, 15 Oct 2024 23:13:23 +0530 Message-ID: Subject: 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="0000000000002244510624877e16" Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=anoopemacs@gmail.com; helo=mail-lj1-x234.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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.59 X-Spam-Score: -1.59 X-Migadu-Queue-Id: 7668684C94 X-TUID: E3N/KMNb2g4x --0000000000002244510624877e16 Content-Type: text/plain; charset="UTF-8" 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. --0000000000002244510624877e16 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Comments in org babel clojure blocks are not tangled = out.

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

This org file contains only two source blocks and a total of te= n lines.
#+begin_src clojure :noweb-ref "Define a constant"
(def e 2.72= )=C2=A0
;;Thi= s is a comment on a line of its own
(def pi 3.14) ;;This is a comment no= t 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 = above file, the contents of the output.clj file are:-
(def e 2.72)
(def pi 3.14) ;;This is a commen= t not on a line of its own
The comment that w= as on a line of its own is missing from the tangled output.
<= br>
Was able to reproduce on both emacs 29.3.50 and 29.4 on Ubunt= u 22.04 LTS
Both were started=C2=A0using emacs -Q=C2=A0and then evaluating = (require 'ob-clojure)=C2=A0as the only line of config.
--0000000000002244510624877e16--