diff options
| -rw-r--r-- | src/fileio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6e2a095f161..262cd387b11 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2796,11 +2796,10 @@ and (2) it puts less data in the undo list.") | |||
| 2796 | Lisp_Object code; | 2796 | Lisp_Object code; |
| 2797 | code = Qnil; | 2797 | code = Qnil; |
| 2798 | GCPRO1 (filename); | 2798 | GCPRO1 (filename); |
| 2799 | code = call1 (Qfind_buffer_file_type, filename); | 2799 | current_buffer->buffer_file_type |
| 2800 | = call1 (Qfind_buffer_file_type, filename); | ||
| 2800 | UNGCPRO; | 2801 | UNGCPRO; |
| 2801 | if (XTYPE (code) == Lisp_Int) | 2802 | if (NILP (current_buffer->buffer_file_type)) |
| 2802 | XFASTINT (current_buffer->buffer_file_type) = XFASTINT (code); | ||
| 2803 | if (XFASTINT (current_buffer->buffer_file_type) == 0) | ||
| 2804 | { | 2803 | { |
| 2805 | int reduced_size | 2804 | int reduced_size |
| 2806 | = inserted - crlf_to_lf (inserted, &FETCH_CHAR (point - 1) + 1); | 2805 | = inserted - crlf_to_lf (inserted, &FETCH_CHAR (point - 1) + 1); |