aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBoris Goldowsky1995-03-17 18:12:02 +0000
committerBoris Goldowsky1995-03-17 18:12:02 +0000
commitbe9aafddc105a63c4c10e35725763cb9b267de0c (patch)
treeb1c07e9349cff57caaa9b2ccb3ca4ccffa1b6de3 /src/buffer.c
parent585b0a89a3ef7b8828409b302d44cfce2cea0ff6 (diff)
downloademacs-be9aafddc105a63c4c10e35725763cb9b267de0c.tar.gz
emacs-be9aafddc105a63c4c10e35725763cb9b267de0c.zip
(reset_buffer): Reset file_format element too.(init_buffer_once): Define file_format flag; reset file_format.
(syms_of_buffer): New vbl buffer-file-format.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1bf4f58b036..71ab0daaee3 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -426,6 +426,7 @@ reset_buffer (b)
426 XSETFASTINT (b->overlay_center, 1); 426 XSETFASTINT (b->overlay_center, 1);
427 b->mark_active = Qnil; 427 b->mark_active = Qnil;
428 b->point_before_scroll = Qnil; 428 b->point_before_scroll = Qnil;
429 b->file_format = Qnil;
429} 430}
430 431
431/* Reset buffer B's local variables info. 432/* Reset buffer B's local variables info.
@@ -2691,6 +2692,7 @@ init_buffer_once ()
2691 buffer_defaults.display_table = Qnil; 2692 buffer_defaults.display_table = Qnil;
2692 buffer_defaults.undo_list = Qnil; 2693 buffer_defaults.undo_list = Qnil;
2693 buffer_defaults.mark_active = Qnil; 2694 buffer_defaults.mark_active = Qnil;
2695 buffer_defaults.file_format = Qnil;
2694 buffer_defaults.overlays_before = Qnil; 2696 buffer_defaults.overlays_before = Qnil;
2695 buffer_defaults.overlays_after = Qnil; 2697 buffer_defaults.overlays_after = Qnil;
2696 XSETFASTINT (buffer_defaults.overlay_center, 1); 2698 XSETFASTINT (buffer_defaults.overlay_center, 1);
@@ -2749,6 +2751,7 @@ init_buffer_once ()
2749 XSETFASTINT (buffer_local_flags.display_table, 0x2000); 2751 XSETFASTINT (buffer_local_flags.display_table, 0x2000);
2750 XSETFASTINT (buffer_local_flags.syntax_table, 0x8000); 2752 XSETFASTINT (buffer_local_flags.syntax_table, 0x8000);
2751 XSETFASTINT (buffer_local_flags.cache_long_line_scans, 0x10000); 2753 XSETFASTINT (buffer_local_flags.cache_long_line_scans, 0x10000);
2754 XSETFASTINT (buffer_local_flags.file_format, 0x20000);
2752#ifdef DOS_NT 2755#ifdef DOS_NT
2753 XSETFASTINT (buffer_local_flags.buffer_file_type, 0x4000); 2756 XSETFASTINT (buffer_local_flags.buffer_file_type, 0x4000);
2754#endif 2757#endif
@@ -3250,6 +3253,11 @@ functions; it should only affect their performance.");
3250 DEFVAR_PER_BUFFER ("point-before-scroll", &current_buffer->point_before_scroll, Qnil, 3253 DEFVAR_PER_BUFFER ("point-before-scroll", &current_buffer->point_before_scroll, Qnil,
3251 "Value of point before the last series of scroll operations, or nil."); 3254 "Value of point before the last series of scroll operations, or nil.");
3252 3255
3256 DEFVAR_PER_BUFFER ("buffer-file-format", &current_buffer->file_format, Qnil,
3257 "List of formats to use when saving this buffer.\n\
3258Formats are defined by `format-alist'. This variable is\n\
3259set when a file is visited. Automatically local in all buffers.");
3260
3253 DEFVAR_PER_BUFFER ("buffer-invisibility-spec", 3261 DEFVAR_PER_BUFFER ("buffer-invisibility-spec",
3254 &current_buffer->invisibility_spec, Qnil, 3262 &current_buffer->invisibility_spec, Qnil,
3255 "Invisibility spec of this buffer.\n\ 3263 "Invisibility spec of this buffer.\n\