Denis Bitouzé via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:

> Le 04/03/25 à 10h48, David Masterson a écrit :
>
>> 2. When you select the region, where is the cursor? 
>
> Let me answer this question first: in my above experiment, the cursor is
> at the very beginning of the 4th line.
>
>> 1. What's the difference between comment-region and comment-line?
>
> - With the cursor as above, with:
>   - comment-region, the result is (without indentation):
>
>       #+BEGIN_SRC emacs-lisp
>         ;; (defun org-xor (a b)
>         ;;   "Exclusive or."
>         ;;   (i
>            f a (not b) b))
>       #+END_SRC
>
>   - comment-line, the result is (without indentation):
>
>       #+BEGIN_SRC emacs-lisp
>         ;; (defun org-xor (a b)
>         ;;   "Exclusive or."
>         ;;   (if a (not b) b))
>       #+END_SRC

Ah.  I misunderstood and assumed the 5th line was a separate elisp line.
I now see that the comment-region is, for some reason, breaking the "if"
into "i" and "f".  That does look like a bug to me.

comment-line, though, seems correct.

-- 
David Masterson

Reply via email to