GNU bug report logs -
#60034
comment character for org and python includes a space
Previous Next
Reported by: Heime <heimeborgia <at> protonmail.com>
Date: Tue, 13 Dec 2022 15:29:02 UTC
Severity: normal
Tags: notabug, wontfix
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
tags 60034 + notabug wontfix
close 60034
thanks
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>>> > 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`.
Thanks, so I don't think there's anything to fix here. If someone needs
the space-free version, they can use something like:
(string-remove-suffix " " comment-start)
So I'm closing this as a wontfix. Sorry.
This bug report was last modified 1 year and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.