Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5e9961be
Commit
5e9961be
authored
Apr 01, 2005
by
Luc Teirlinck
Browse files
(mode-require-final-newline): Make Custom correctly report a nil value
and allow to set it to nil via Custom. Doc fix.
parent
ea98eb11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/files.el
lisp/files.el
+8
-2
No files found.
lisp/ChangeLog
View file @
5e9961be
2005-03-31 Luc Teirlinck <teirllm@auburn.edu>
* files.el (mode-require-final-newline): Make Custom correctly
report a nil value and allow to set it to nil via Custom.
Doc fix.
2005-04-01 Kenichi Handa <handa@m17n.org>
* international/characters.el: Enable the correct case setting for
...
...
lisp/files.el
View file @
5e9961be
...
...
@@ -291,7 +291,7 @@ from `mode-require-final-newline'."
:group 'editing-basics)
(defcustom mode-require-final-newline t
"*Whether to add a newline at
the
end of
the
file, in certain major modes.
"*Whether to add a newline at end of file, in certain major modes.
Those modes set `require-final-newline' to this value when you enable them.
They do so because they are used for files that are supposed
to end in newlines, and the question is how to arrange that.
...
...
@@ -299,10 +299,16 @@ to end in newlines, and the question is how to arrange that.
A value of t means do this only when the file is about to be saved.
A value of `visit' means do this right after the file is visited.
A value of `visit-save' means do it at both of those times.
Any other non-nil value means ask user whether to add a newline, when saving."
Any other non-nil value means ask user whether to add a newline, when saving.
nil means don't add newlines.
You will have to be careful if you set this to nil: you will have
to remember to manually add a final newline whenever you finish a
file that really needs one."
:type '(choice (const :tag "When visiting" visit)
(const :tag "When saving" t)
(const :tag "When visiting or saving" visit-save)
(const :tag "Never" nil)
(other :tag "Ask" ask))
:group 'editing-basics
:version "22.1")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment