]> git.eshelyaron.com Git - emacs.git/commitdiff
require-final-newline doc string clarification
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Oct 2019 20:49:22 +0000 (22:49 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Oct 2019 20:49:27 +0000 (22:49 +0200)
* lisp/files.el (require-final-newline): Mention that the variable
applies to visited files (bug#34986).

lisp/files.el

index 68a1284b38640deedef9889498b948ffbb45e017..9f22210e2a0e9e5aeb1deeac46e3ba876055a6dd 100644 (file)
@@ -337,7 +337,11 @@ Any other non-nil value means ask user whether to add a newline, when saving.
 A value of nil means don't add newlines.
 
 Certain major modes set this locally to the value obtained
-from `mode-require-final-newline'."
+from `mode-require-final-newline'.
+
+This variable is only heeded when visiting files (or saving
+visited files).  Writing data to the file system with
+`write-region' and the like is not influenced by this variable."
   :safe #'symbolp
   :type '(choice (const :tag "When visiting" visit)
                 (const :tag "When saving" t)