]> git.eshelyaron.com Git - emacs.git/commitdiff
(python-mode): Use mode-require-final-newline.
authorRichard M. Stallman <rms@gnu.org>
Fri, 31 Dec 2004 14:55:23 +0000 (14:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 31 Dec 2004 14:55:23 +0000 (14:55 +0000)
lisp/progmodes/python.el

index eae6ef755704802a4c6418bc72f8e2e056868efb..f73ccdda9eb6c6772ce64d1c2e82beb09908e64a 100644 (file)
@@ -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?