3

In a src block when there is a C style comment /* ... */ doing an org-fill-paragraph would always put a comma just before the last star, like this:

/*
Some comment
,*/

Is there a way to stop it from doing so?

3
  • This is because * has special meaning in org. Comma here escapes the asterisk. When you export this document, the comma should be removed.
    – wvxvw
    Commented Oct 24, 2017 at 8:45
  • You could use C-c ' to edit in appropriate major mode and use it to refill your comments inside of src blocks.
    – user12563
    Commented Oct 24, 2017 at 14:37
  • I insert small snippets while writing code documents, it would be a hassle dropping down with C-' every time.
    – SFbay007
    Commented Oct 24, 2017 at 22:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.