bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60034: comment character for org and python includes a space


From: Stefan Monnier
Subject: bug#60034: comment character for org and python includes a space
Date: Sun, 10 Sep 2023 22:46:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

>>> > How is it that the comment character for org and python include a
>>> > space "# ", when for all other languages it is only a single
>>> > character?

FWIW, both options are valid and they lead to different results
when you do `M-;` (as well as as when `-comment-add` is 0).

E.g. ELisp uses ";" rather than "; " so that you can do `M-; ; hello` to
add a comment of the form `;; hello` at the end of the current line.

In modes where using repetitions of the comment char is unusual
(typically because indentation rules don't pay attention to the number
of consecutive comment chars), it's more common to add a space at the
end of `comment-start`.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]