From 56973319b58a66e97ae45e050f9f943ff8f1439b Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Wed, 10 Jul 2013 11:10:27 +0800 Subject: [PATCH] * files.el (require-final-newline): Allow safe local value. Fixes: debbugs:14834 --- lisp/ChangeLog | 5 +++++ lisp/files.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f79c8f0e69..3b7d95837b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-07-10 Leo Liu + + * files.el (require-final-newline): Allow safe local value. + (Bug#14834) + 2013-07-09 Leo Liu * ido.el (ido-read-directory-name): Handle fallback. diff --git a/lisp/files.el b/lisp/files.el index 9b56dfa969..a8ccf81fa1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -316,12 +316,14 @@ A value of nil means don't add newlines. Certain major modes set this locally to the value obtained from `mode-require-final-newline'." + :safe #'symbolp :type '(choice (const :tag "When visiting" visit) (const :tag "When saving" t) (const :tag "When visiting or saving" visit-save) (const :tag "Don't add newlines" nil) (other :tag "Ask each time" ask)) - :group 'editing-basics) + :group 'editing-basics + :version "24.4") (defcustom mode-require-final-newline t "Whether to add a newline at end of file, in certain major modes. -- 2.20.1