Denis Bitouzé via "General discussions about Org-mode." <emacs-orgmode@gnu.org> writes:
> * 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 > > #+BEGIN_SRC emacs-lisp > (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) > #+END_SRC > > > 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 Two questions: 1. What's the difference between comment-region and comment-line? 2. When you select the region, where is the cursor? I think comment-region, like comment-line, considers the cursor to be part of what is being asked to be commented. -- David Masterson