Fix newline-and-indent advice forgetting indentation

e.g. in python-mode docstrings. The point-in-string case is no longer
handled, because indent-according-to-mode handles it properly already.
This commit is contained in:
Henrik Lissner 2019-05-15 14:56:07 -04:00
parent 5cd1fb2a52
commit b821bfca1f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 12 additions and 12 deletions

View file

@ -125,7 +125,7 @@
(advice-add #'delete-backward-char :override #'+default*delete-backward-char)
;; Makes `newline-and-indent' continue comments (and more reliably)
(advice-add #'newline-and-indent :around #'+default*newline-indent-and-continue-comments)))
(advice-add #'newline-and-indent :override #'+default*newline-indent-and-continue-comments)))
;;