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
04e6f79c
Commit
04e6f79c
authored
Aug 17, 1997
by
Geoff Voelker
Browse files
(Finsert_file_contents) [DOS_NT]: Set buffer_file_type
according to eol conversion used on file.
parent
c781a8e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
src/fileio.c
src/fileio.c
+11
-10
No files found.
src/fileio.c
View file @
04e6f79c
...
...
@@ -3083,16 +3083,6 @@ This does code conversion according to the value of\n\
setup_coding_system
(
Fcheck_coding_system
(
val
),
&
coding
);
}
#ifdef DOS_NT
/* Use the conversion type to determine buffer-file-type
(find-buffer-file-type is now used to help determine the
conversion). */
if
(
coding
.
type
==
coding_type_no_conversion
)
current_buffer
->
buffer_file_type
=
Qt
;
else
current_buffer
->
buffer_file_type
=
Qnil
;
#endif
fd
=
-
1
;
#ifndef APOLLO
...
...
@@ -3618,6 +3608,17 @@ This does code conversion according to the value of\n\
inserted
+=
this
;
}
#ifdef DOS_NT
/* Use the conversion type to determine buffer-file-type
(find-buffer-file-type is now used to help determine the
conversion). */
if
(
CODING_REQUIRE_EOL_CONVERSION
(
&
coding
))
current_buffer
->
buffer_file_type
=
Qnil
;
else
current_buffer
->
buffer_file_type
=
Qt
;
#endif
/* We don't have to consider file type of MSDOS because all files
are read as binary and end-of-line format has already been
decoded appropriately. */
...
...
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