]> git.eshelyaron.com Git - emacs.git/commit
Fix fill-paragraph in python docstrings (Bug#36056)
authorNoam Postavsky <npostavs@gmail.com>
Sun, 8 Sep 2019 14:42:19 +0000 (10:42 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 13 Sep 2019 00:25:30 +0000 (20:25 -0400)
commitcbb8a8ad979ed7975bfc7e9fa6aeeb4d9d6b7084
treed03bb7aa2be38b6bb94936bc4fd51304f879d5c4
parent421084d2cb160261b259bddb687bb2c234f8f1ef
Fix fill-paragraph in python docstrings (Bug#36056)

* lisp/progmodes/python.el (python-do-auto-fill): New function.
(python-mode): Set it as normal-auto-fill-function, and don't set
fill-indent-according-to-mode.  Having the latter set during
fill-paragraph gives wrongs result, because python-indent-line doesn't
remove indentation added by filling.
* test/lisp/progmodes/python-tests.el (python-fill-docstring): New
test.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el