From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:19 +0000 (-0300) Subject: Set local variable `mode-require-final-newline' to t X-Git-Tag: emacs-24.2.90~1199^2~554 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82c2b0de6a2c15fbe4369739b8cd72020fdc3399;p=emacs.git Set local variable `mode-require-final-newline' to t --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 00a6b804e72..92cdd35d90a 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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")