In this case there's only *one* comma, which serves to escape the asterisk, as 
I see it. You can get the same effect if you run `org-toggle-comment` twice on 
the same region. (It would be nice if the region did not have to disappear 
after the first invocation.)

The issue I was raising is putting commas before each line in the block. 

----- Original Message -----
From: "Rens Oliemans" <ha...@rensoliemans.nl>
To: "Ihor Radchenko" <yanta...@posteo.net>, "Raoul Comninos" 
<revr...@mweb.co.za>
Cc: "emacs-orgmode" <emacs-orgmode@gnu.org>
Sent: Thursday, May 8, 2025 10:12:25 AM
Subject: Re: Commas in org source blocks

Oh? I also thought it served a purpose, since Org mode 9.7.11 inserts them
when editing code. Consider the following org code:

    #+begin_src elisp
      (message "abc
       *def")
    #+end_src

This has no leading commas atm, but when you edit the source block with
  C-c ' (org-edit-special / org-edit-src-code), and save that buffer with
  C-c ' (org-edit-src-exit),
org inserts the trailing comma before the '*'.

Is this a bug, then, or do I still misunderstand the reason the commas are
there?

Reply via email to