With this PR, we get reliable integration with newcomment.el. The comment-region command will always enclose the region with a single pair of curly brackets.
comment-continue characters will NOT be prepended to lines, though they are defined
nested comments will not be escaped. newcomment.el supports that, but the PGN spec does not
~We can imagine an even nicer version of this function, which would comment lines with semicolons instead of curly brackets if the selected range was not within the movetext.~ Done. Comment-region will comment with semicolons instead of curly braces whenever the region is not exclusively in the movetext portion of the PGN.
With this PR, we get reliable integration with
newcomment.el
. Thecomment-region
command will always enclose the region with a single pair of curly brackets.comment-continue
characters will NOT be prepended to lines, though they are definednewcomment.el
supports that, but the PGN spec does not~We can imagine an even nicer version of this function, which would comment lines with semicolons instead of curly brackets if the selected range was not within the movetext.~ Done. Comment-region will comment with semicolons instead of curly braces whenever the region is not exclusively in the movetext portion of the PGN.