From 30fcaf3a28e94241889bdd6e27ae759c4185ad74 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 20 Oct 2011 22:23:59 -0400 Subject: [PATCH] Use mode-require-final-newline for idlwave.el and vera-mode.el. * progmodes/idlwave.el (idlwave-mode): * progmodes/vera-mode.el (vera-mode): Use mode-require-final-newline. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/idlwave.el | 3 ++- lisp/progmodes/vera-mode.el | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e18fdaec0bf..5c235e9cca0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2011-10-21 Chong Yidong + + * progmodes/idlwave.el (idlwave-mode): + * progmodes/vera-mode.el (vera-mode): Use + mode-require-final-newline. + 2011-10-20 Glenn Morris * vc/vc.el (vc-next-action): Handle removed directories. (Bug#9781) diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 8066e1c3a7f..2b65dd4da69 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el @@ -1907,7 +1907,8 @@ The main features of this mode are (set (make-local-variable 'comment-start-skip) ";+[ \t]*") (set (make-local-variable 'comment-start) ";") (set (make-local-variable 'comment-add) 1) ; ";;" for new and regions - (set (make-local-variable 'require-final-newline) t) + (set (make-local-variable 'require-final-newline) + mode-require-final-newline) (set (make-local-variable 'abbrev-all-caps) t) (set (make-local-variable 'indent-tabs-mode) nil) (set (make-local-variable 'completion-ignore-case) t) diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el index 1f33f5f3aaf..31ad412c984 100644 --- a/lisp/progmodes/vera-mode.el +++ b/lisp/progmodes/vera-mode.el @@ -310,7 +310,8 @@ Key bindings: (set (make-local-variable 'comment-indent-function) 'c-comment-indent) (set (make-local-variable 'paragraph-start) "^$") (set (make-local-variable 'paragraph-separate) paragraph-start) - (set (make-local-variable 'require-final-newline) t) + (set (make-local-variable 'require-final-newline) + mode-require-final-newline) (set (make-local-variable 'indent-tabs-mode) nil) (set (make-local-variable 'indent-line-function) 'vera-indent-line) (set (make-local-variable 'parse-sexp-ignore-comments) t) -- 2.39.2