]> git.eshelyaron.com Git - emacs.git/commitdiff
* files.el (require-final-newline): Allow safe local value.
authorLeo Liu <sdl.web@gmail.com>
Wed, 10 Jul 2013 03:10:27 +0000 (11:10 +0800)
committerLeo Liu <sdl.web@gmail.com>
Wed, 10 Jul 2013 03:10:27 +0000 (11:10 +0800)
Fixes: debbugs:14834
lisp/ChangeLog
lisp/files.el

index f79c8f0e692dbb3a4d430d7ee53a9c7e5a8d83a1..3b7d95837b0781bd6b24b1d4576753d3b7e1ef90 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-10  Leo Liu  <sdl.web@gmail.com>
+
+       * files.el (require-final-newline): Allow safe local value.
+       (Bug#14834)
+
 2013-07-09  Leo Liu  <sdl.web@gmail.com>
 
        * ido.el (ido-read-directory-name): Handle fallback.
index 9b56dfa969328b1591d7ad9a7a86976f4f0798ad..a8ccf81fa174fc19fe048ab5d3cfdb75e1e935b1 100644 (file)
@@ -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.