Denis Bitouzé via "General discussions about Org-mode." <emacs-orgmode@gnu.org> writes:
> Since Emacs 30.1, commenting lines in code blocs does not work > correctly. As an example, run: > > emacs -Q test.org > > where test.org has the following content > > --8<---------------cut here---------------start------------->8--- > #+BEGIN_SRC emacs-lisp > (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) > #+END_SRC > --8<---------------cut here---------------end--------------->8--- > > Then select lines 2-3 of this file and run M-x comment-region. This will > result in: > > #+BEGIN_SRC emacs-lisp > ;; (defun org-xor (a b) > ;; "Exclusive or." > ;; (i > f a (not b) b)) > #+END_SRC I believe that this has been fixed on main branch. -- 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>