Dnia Tue, 4 Mar 2025 11:28:42 +0100, Denis Bitouzé via General discussions about Org-mode. napisał(a): > Hi, > > * Context > > - GNU Emacs 30.1 > - Org mode version 9.7.11 > > * Problem > > 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 didn't observe such a problem with the previous Emacs version (29.4 IIRC).
For what it's worth I see the same test result using Emacs : GNU Emacs 29.3 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2024-09-17, modified by Debian Package: Org mode version 9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/) there is of course no problem if I edit the code in a separate buffer with org-edit-special. -- Michał Politowski