Commit 2a41fe2e authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

require-final-newline doc string clarification

* lisp/files.el (require-final-newline): Mention that the variable
applies to visited files (bug#34986).
parent 674515dd
Pipeline #3646 failed with stage
in 90 minutes and 2 seconds
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment