Lēctia Landau <[email protected]> writes: > Comments were only removed when `vars' were provided, and still broke > `(let [...] ...)' otherwise, and so, executing any Clojure src block > which ends in a comment would fail without explanation. > > This fix uses the existing solution, but uses it regardless of `vars', > causing comments to correctly be ignored during execution, and for > execution of blocks ending in comments to work as expected. > From 8a6732213ef8c9118dee4a4fb2f9dd2b17a770d9 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?L=C4=93ctia=20Landau?= <[email protected]> > Date: Wed, 29 Jul 2026 02:26:32 +0300 > Subject: [PATCH] lisp/ob-clojure.el: Fix executing blocks ending in comments > > * ob-clojure.el (org-babel-expand-body:clojure): Remove comments > regardless of `vars'. > > Comments were only removed when `vars' were provided, and still broke > `(let [...] ...)' otherwise, and so, executing any Clojure src block > which ends in a comment would fail without explanation. > > This fix uses the existing solution, but uses it regardless of `vars', > causing comments to correctly be ignored during execution, and for > execution of blocks ending in comments to work as expected.
Could you please provide more details about what you are trying to fix? Your patch is effectively reverting https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=23eb697df where Anoop GR explicitly asked not to remove comments when :var is not provided. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
