summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-07-26 16:08:04 +0000
committerRichard M. Stallman <rms@gnu.org>1996-07-26 16:08:04 +0000
commitbc3081f130c598f0229b9b58583b279ecc0e7405 (patch)
tree38abdaefbeac3196ed2bfa3d6e075b8cb5341250 /src/buffer.c
parent419ef3e55b9a9458a9af252c521510a323e892c1 (diff)
downloademacs-bc3081f130c598f0229b9b58583b279ecc0e7405.tar.gz
(buffer_permanent_local_flags): New variable.
(init_buffer_once): Initialize it. (reset_buffer_local_variables): New argument PERMANENT_TOO. Callers changed. Now declared static.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index a5c36f73eb0..ef225eb8803 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -521,6 +521,9 @@ reset_buffer_local_variables (b, permanent_too)
b->case_canon_table = XCHAR_TABLE (Vascii_downcase_table)->extras[1];
b->case_eqv_table = XCHAR_TABLE (Vascii_downcase_table)->extras[2];
b->invisibility_spec = Qt;
+#ifndef DOS_NT
+ b->buffer_file_type = Qnil;
+#endif
#if 0
b->sort_table = XSTRING (Vascii_sort_table);
@@ -3428,14 +3431,13 @@ init_buffer_once ()
XSETFASTINT (buffer_local_flags.left_margin, 0x800);
XSETFASTINT (buffer_local_flags.abbrev_table, 0x1000);
XSETFASTINT (buffer_local_flags.display_table, 0x2000);
- XSETFASTINT (buffer_local_flags.syntax_table, 0x8000);
- XSETFASTINT (buffer_local_flags.cache_long_line_scans, 0x10000);
#ifdef DOS_NT
XSETFASTINT (buffer_local_flags.buffer_file_type, 0x4000);
/* Make this one a permanent local. */
buffer_permanent_local_flags |= 0x4000;
#endif
-
+ XSETFASTINT (buffer_local_flags.syntax_table, 0x8000);
+ XSETFASTINT (buffer_local_flags.cache_long_line_scans, 0x10000);
Vbuffer_alist = Qnil;
current_buffer = 0;