From: Richard M. Stallman Date: Fri, 31 Dec 2004 14:55:23 +0000 (+0000) Subject: (python-mode): Use mode-require-final-newline. X-Git-Tag: ttn-vms-21-2-B4~3015 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=68e442738dfbf80edcff0fad37849ae26cae9c50;p=emacs.git (python-mode): Use mode-require-final-newline. --- 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?