1

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?

  • This is because * has special meaning in org. Comma here escapes the asterisk. When you export this document, the comma should be removed. – wvxvw Oct 24 '17 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. – DoMiNeLa10 Oct 24 '17 at 14:37
  • I insert small snippets while writing code documents, it would be a hassle dropping down with C-' every time. – SFbay007 Oct 24 '17 at 22:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.