diff options
author | Eli Zaretskii <[email protected]> | 2011-02-16 20:39:46 +0200 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2011-02-16 20:39:46 +0200 |
commit | 05c652517317d10690aaf0a6aa0bc876382b9d82 (patch) | |
tree | 14bdd1f74a7148e9a95b034b14fcacf5064eb4f9 /src/buffer.c | |
parent | 689743a20ba5883750ab24192ec955941f2b9752 (diff) |
Use KVAR in MS-Windows build, remove buffer-file-type.
w32fns.c (Fx_create_frame): Use KVAR.
w32term.c (w32_create_terminal): Use KVAR.
s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
fileio.c (Finsert_file_contents, Fwrite_region): Remove
references to buffer_file_type.
(syms_of_fileio): Don't intern and staticpro
find-buffer-file-type.
callproc.c (syms_of_callproc): Remove references to
buffer_file_type.
buffer.c (reset_buffer_local_variables): Don't set
buffer_file_type.
(init_buffer_once): Likewise.
(syms_of_buffer): Don't define buffer-file-type.
buffer.h (struct buffer): Remove buffer_file_type.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/buffer.c b/src/buffer.c index d05fe1754c..c95fbb5f51 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -715,9 +715,6 @@ reset_buffer_local_variables (register struct buffer *b, int permanent_too) BVAR (b, case_canon_table) = XCHAR_TABLE (Vascii_downcase_table)->extras[1]; BVAR (b, case_eqv_table) = XCHAR_TABLE (Vascii_downcase_table)->extras[2]; BVAR (b, invisibility_spec) = Qt; -#ifndef DOS_NT - BVAR (b, buffer_file_type) = Qnil; -#endif /* Reset all (or most) per-buffer variables to their defaults. */ if (permanent_too) @@ -5040,9 +5037,6 @@ init_buffer_once (void) BVAR (&buffer_defaults, extra_line_spacing) = Qnil; BVAR (&buffer_defaults, cursor_in_non_selected_windows) = Qt; -#ifdef DOS_NT - BVAR (&buffer_defaults, buffer_file_type) = Qnil; /* TEXT */ -#endif BVAR (&buffer_defaults, enable_multibyte_characters) = Qt; BVAR (&buffer_defaults, buffer_file_coding_system) = Qnil; XSETFASTINT (BVAR (&buffer_defaults, fill_column), 70); @@ -5112,11 +5106,6 @@ init_buffer_once (void) XSETFASTINT (BVAR (&buffer_local_flags, left_margin), idx); ++idx; XSETFASTINT (BVAR (&buffer_local_flags, abbrev_table), idx); ++idx; XSETFASTINT (BVAR (&buffer_local_flags, display_table), idx); ++idx; -#ifdef DOS_NT - XSETFASTINT (BVAR (&buffer_local_flags, buffer_file_type), idx); - /* Make this one a permanent local. */ - buffer_permanent_local_flags[idx++] = 1; -#endif XSETFASTINT (BVAR (&buffer_local_flags, syntax_table), idx); ++idx; XSETFASTINT (BVAR (&buffer_local_flags, cache_long_line_scans), idx); ++idx; XSETFASTINT (BVAR (&buffer_local_flags, category_table), idx); ++idx; @@ -5415,14 +5404,6 @@ This is the same as (default-value 'tab-width). */); doc: /* Default value of `case-fold-search' for buffers that don't override it. This is the same as (default-value 'case-fold-search). */); -#ifdef DOS_NT - DEFVAR_BUFFER_DEFAULTS ("default-buffer-file-type", - buffer_file_type, - doc: /* Default file type for buffers that do not override it. -This is the same as (default-value 'buffer-file-type). -The file type is nil for text, t for binary. */); -#endif - DEFVAR_BUFFER_DEFAULTS ("default-left-margin-width", left_margin_cols, doc: /* Default value of `left-margin-width' for buffers that don't override it. @@ -5673,15 +5654,6 @@ word-wrapping, you might want to reduce the value of `truncate-partial-width-windows', since wrapping can make text readable in narrower windows. */); -#ifdef DOS_NT - DEFVAR_PER_BUFFER ("buffer-file-type", &BVAR (current_buffer, buffer_file_type), - Qnil, - doc: /* Non-nil if the visited file is a binary file. -This variable is meaningful on MS-DOG and Windows NT. -On those systems, it is automatically local in every buffer. -On other systems, this variable is normally always nil. */); -#endif - DEFVAR_PER_BUFFER ("default-directory", &BVAR (current_buffer, directory), make_number (Lisp_String), doc: /* Name of default directory of current buffer. Should end with slash. |