From 68e442738dfbf80edcff0fad37849ae26cae9c50 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 31 Dec 2004 14:55:23 +0000 Subject: [PATCH] (python-mode): Use mode-require-final-newline. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. (set (make-local-variable 'indent-line-function) #'python-indent-line) (set (make-local-variable 'paragraph-start) "\\s-*$") (set (make-local-variable 'fill-paragraph-function) 'python-fill-paragraph) - (set (make-local-variable 'require-final-newline) t) + (set (make-local-variable 'require-final-newline) mode-require-final-newline) (set (make-local-variable 'add-log-current-defun-function) #'python-current-defun) ;; Fixme: Generalize to do all blocks? -- 2.39.5