]> code.delx.au - gnu-emacs/commitdiff
Set local variable `mode-require-final-newline' to t
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:19 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:19 +0000 (00:03 -0300)
lisp/progmodes/python.el

index 00a6b804e72fe3b5c80efb4a197aabc1e6fb627b..92cdd35d90a529e6e8103e3dd3fbd6730c6c2e29 100644 (file)
@@ -2354,6 +2354,8 @@ if that value is non-nil."
                              ,(lambda (arg)
                                 (python-end-of-defun-function)) nil))
 
+  (set (make-local-variable 'mode-require-final-newline) t)
+
   (set (make-local-variable 'outline-regexp)
        (python-rx (* space) block-start))
   (set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n")