# HG changeset patch # User Richard M. Stallman # Date 1104504923 0 # Node ID 54d81a8baaa603af3d754e9e3b6974b137f67d4d # Parent ccfc48223233ac5d13735cc11984168bf2227c83 (python-mode): Use mode-require-final-newline. diff -r ccfc48223233 -r 54d81a8baaa6 lisp/progmodes/python.el --- a/lisp/progmodes/python.el Fri Dec 31 14:55:01 2004 +0000 +++ b/lisp/progmodes/python.el Fri Dec 31 14:55:23 2004 +0000 @@ -1712,7 +1712,7 @@ (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?