aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-31 14:55:23 +0000
committerRichard M. Stallman2004-12-31 14:55:23 +0000
commit68e442738dfbf80edcff0fad37849ae26cae9c50 (patch)
treec7fe66154a60c115f0e9d030245701ac3204e014
parentd473a4f9e08bfc17f0f0b868b7185e5b5b57cb39 (diff)
downloademacs-68e442738dfbf80edcff0fad37849ae26cae9c50.tar.gz
emacs-68e442738dfbf80edcff0fad37849ae26cae9c50.zip
(python-mode): Use mode-require-final-newline.
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index eae6ef75570..f73ccdda9eb 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1712,7 +1712,7 @@ lines count as headers.
1712 (set (make-local-variable 'indent-line-function) #'python-indent-line) 1712 (set (make-local-variable 'indent-line-function) #'python-indent-line)
1713 (set (make-local-variable 'paragraph-start) "\\s-*$") 1713 (set (make-local-variable 'paragraph-start) "\\s-*$")
1714 (set (make-local-variable 'fill-paragraph-function) 'python-fill-paragraph) 1714 (set (make-local-variable 'fill-paragraph-function) 'python-fill-paragraph)
1715 (set (make-local-variable 'require-final-newline) t) 1715 (set (make-local-variable 'require-final-newline) mode-require-final-newline)
1716 (set (make-local-variable 'add-log-current-defun-function) 1716 (set (make-local-variable 'add-log-current-defun-function)
1717 #'python-current-defun) 1717 #'python-current-defun)
1718 ;; Fixme: Generalize to do all blocks? 1718 ;; Fixme: Generalize to do all blocks?