]> git.eshelyaron.com Git - emacs.git/commit
Fix python docstring auto-fill (Bug#36056)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 21 Jun 2019 11:49:22 +0000 (07:49 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 22 Jun 2019 23:25:44 +0000 (19:25 -0400)
commit0f01a58c390faf30c33b369fc81b2a14ec5b7f2e
tree358768de2c6ca522218c2dfc5dad8af523c518e7
parentf46b16b9fb00d341f222422a9514f5bd62f29971
Fix python docstring auto-fill (Bug#36056)

* lisp/progmodes/python.el (python-mode): Set
fill-indent-according-to-mode locally to t.  This lets auto-fill do
the right thing when auto-filling inside a docstring.  The default was
to nil on 2001-11-25 "(fill-indent-according-to-mode): Default to nil"
with the comment that it "screws up CC-mode's filling tricks".  But
presumably it shouldn't be a problem for python-mode.
* test/lisp/progmodes/python-tests.el (python-auto-fill-docstring):
New test.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el