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
93d1963d
Commit
93d1963d
authored
Apr 24, 2005
by
Richard M. Stallman
Browse files
(mode-require-final-newline): Fix previous change.
(require-final-newline): Fix type label.
parent
e1825b50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
lisp/files.el
lisp/files.el
+7
-6
No files found.
lisp/files.el
View file @
93d1963d
...
@@ -286,7 +286,7 @@ from `mode-require-final-newline'."
...
@@ -286,7 +286,7 @@ from `mode-require-final-newline'."
:type
'
(
choice
(
const
:tag
"When visiting"
visit
)
:type
'
(
choice
(
const
:tag
"When visiting"
visit
)
(
const
:tag
"When saving"
t
)
(
const
:tag
"When saving"
t
)
(
const
:tag
"When visiting or saving"
visit-save
)
(
const
:tag
"When visiting or saving"
visit-save
)
(
const
:tag
"
Never
"
nil
)
(
const
:tag
"
Don't add newlines
"
nil
)
(
other
:tag
"Ask"
ask
))
(
other
:tag
"Ask"
ask
))
:group
'editing-basics
)
:group
'editing-basics
)
...
@@ -300,15 +300,16 @@ A value of t means do this only when the file is about to be saved.
...
@@ -300,15 +300,16 @@ 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' means do this right after the file is visited.
A value of `visit-save' means do it at both of those times.
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 do not add newlines when saving.
If you set this to nil, you must be careful to manually add a final newline
nil means do not add newlines. That is a risky choice in this variable
whenever you save a file that really needs one."
since this value is used for modes for files that ought to have final newlines.
So if you set this to nil, you must explicitly check and add
a final newline, whenever you save a file that really needs one."
:type
'
(
choice
(
const
:tag
"When visiting"
visit
)
:type
'
(
choice
(
const
:tag
"When visiting"
visit
)
(
const
:tag
"When saving"
t
)
(
const
:tag
"When saving"
t
)
(
const
:tag
"When visiting or saving"
visit-save
)
(
const
:tag
"When visiting or saving"
visit-save
)
(
other
:tag
"
Ask"
ask
)
(
const
:tag
"
Don't add newlines"
nil
)
(
const
:tag
"
Don't add newlines"
nil
))
(
other
:tag
"
Ask each time"
ask
))
:group
'editing-basics
:group
'editing-basics
:version
"22.1"
)
: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