GNU bug report logs -
#29003
[python.el] Docstring from PEP 257 is filled incorrectly by Emacs
Previous Next
Reported by: Radon Rosborough <radon.neon <at> gmail.com>
Date: Thu, 26 Oct 2017 02:10:01 UTC
Severity: minor
Tags: wontfix
Found in version 25.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Radon Rosborough <radon.neon <at> gmail.com> writes:
>> I think all Emacs fill commands will fill this as one continous
>> line,
>
> As it currently stands, yes. That doesn't have to be the case,
> however. For example, package `python-docstring' can understand reST
> syntax, so that:
>
> def example_function():
> """Initialize engine.
>
> :param holes: Number of holes.
> :param rounds: Number of rounds.
> :param colors: Number of colors.
>
> :returns: Game engine instance.
> """
> pass
>
> is not modified when filled. The question is whether the example given
> by PEP 257 should be considered "standard" syntax for introducing
> keyword arguments, and whether such syntax should be supported by
> Emacs in a similar way to how `python-docstring' supports reST syntax.
I think this should ideally be supported by Emacs, but it should be
configurable and disabled by default.
Best regards,
Stefan Kangas
This bug report was last modified 3 years and 265 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.