From: Christopher Schmidt Date: Wed, 18 Apr 2012 06:20:47 +0000 (+0800) Subject: Docfix for require-final-newline in Lisp manual. X-Git-Tag: emacs-24.0.96~62 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e80650b8bfd4fb5ff0bef8483608144e6972436;p=emacs.git Docfix for require-final-newline in Lisp manual. * doc/lispref/files.texi (Saving Buffers): Document `visit and `visit-save' values of require-final-newline. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index e56317ad70a..264e0cfbe41 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2012-04-18 Christopher Schmidt + + * files.texi (Saving Buffers): Document `visit and `visit-save' + values of require-final-newline. + 2012-04-18 Glenn Morris * processes.texi (Output from Processes, Filter Functions): diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 3e96a448963..062368e810d 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -490,11 +490,13 @@ in particular buffers. @defopt require-final-newline This variable determines whether files may be written out that do @emph{not} end with a newline. If the value of the variable is -@code{t}, then @code{save-buffer} silently adds a newline at the end of -the file whenever the buffer being saved does not already end in one. -If the value of the variable is non-@code{nil}, but not @code{t}, then -@code{save-buffer} asks the user whether to add a newline each time the -case arises. +@code{t}, then @code{save-buffer} silently adds a newline at the end +of the buffer whenever it does not already end in one. If the value +is @code{visit}, Emacs adds a missing newline just after it visits the +file. If the value is @code{visit-save}, Emacs adds a missing newline +both on visiting and on saving. For any other non-@code{nil} value, +@code{save-buffer} asks the user whether to add a newline each time +the case arises. If the value of the variable is @code{nil}, then @code{save-buffer} doesn't add newlines at all. @code{nil} is the default value, but a few