aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 487599dbbed..5bd9b37702f 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -292,9 +292,9 @@ bset_major_mode (struct buffer *b, Lisp_Object val)
292 b->major_mode_ = val; 292 b->major_mode_ = val;
293} 293}
294static void 294static void
295bset_minor_modes (struct buffer *b, Lisp_Object val) 295bset_local_minor_modes (struct buffer *b, Lisp_Object val)
296{ 296{
297 b->minor_modes_ = val; 297 b->local_minor_modes_ = val;
298} 298}
299static void 299static void
300bset_mark (struct buffer *b, Lisp_Object val) 300bset_mark (struct buffer *b, Lisp_Object val)
@@ -898,7 +898,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
898 bset_file_truename (b, Qnil); 898 bset_file_truename (b, Qnil);
899 bset_display_count (b, make_fixnum (0)); 899 bset_display_count (b, make_fixnum (0));
900 bset_backed_up (b, Qnil); 900 bset_backed_up (b, Qnil);
901 bset_minor_modes (b, Qnil); 901 bset_local_minor_modes (b, Qnil);
902 bset_auto_save_file_name (b, Qnil); 902 bset_auto_save_file_name (b, Qnil);
903 set_buffer_internal_1 (b); 903 set_buffer_internal_1 (b);
904 Fset (intern ("buffer-save-without-query"), Qnil); 904 Fset (intern ("buffer-save-without-query"), Qnil);
@@ -973,7 +973,7 @@ reset_buffer (register struct buffer *b)
973 b->clip_changed = 0; 973 b->clip_changed = 0;
974 b->prevent_redisplay_optimizations_p = 1; 974 b->prevent_redisplay_optimizations_p = 1;
975 bset_backed_up (b, Qnil); 975 bset_backed_up (b, Qnil);
976 bset_minor_modes (b, Qnil); 976 bset_local_minor_modes (b, Qnil);
977 BUF_AUTOSAVE_MODIFF (b) = 0; 977 BUF_AUTOSAVE_MODIFF (b) = 0;
978 b->auto_save_failure_time = 0; 978 b->auto_save_failure_time = 0;
979 bset_auto_save_file_name (b, Qnil); 979 bset_auto_save_file_name (b, Qnil);
@@ -5158,7 +5158,7 @@ init_buffer_once (void)
5158 bset_auto_save_file_name (&buffer_local_flags, make_fixnum (-1)); 5158 bset_auto_save_file_name (&buffer_local_flags, make_fixnum (-1));
5159 bset_read_only (&buffer_local_flags, make_fixnum (-1)); 5159 bset_read_only (&buffer_local_flags, make_fixnum (-1));
5160 bset_major_mode (&buffer_local_flags, make_fixnum (-1)); 5160 bset_major_mode (&buffer_local_flags, make_fixnum (-1));
5161 bset_minor_modes (&buffer_local_flags, make_fixnum (-1)); 5161 bset_local_minor_modes (&buffer_local_flags, make_fixnum (-1));
5162 bset_mode_name (&buffer_local_flags, make_fixnum (-1)); 5162 bset_mode_name (&buffer_local_flags, make_fixnum (-1));
5163 bset_undo_list (&buffer_local_flags, make_fixnum (-1)); 5163 bset_undo_list (&buffer_local_flags, make_fixnum (-1));
5164 bset_mark_active (&buffer_local_flags, make_fixnum (-1)); 5164 bset_mark_active (&buffer_local_flags, make_fixnum (-1));
@@ -5625,7 +5625,8 @@ The default value (normally `fundamental-mode') affects new buffers.
5625A value of nil means to use the current buffer's major mode, provided 5625A value of nil means to use the current buffer's major mode, provided
5626it is not marked as "special". */); 5626it is not marked as "special". */);
5627 5627
5628 DEFVAR_PER_BUFFER ("minor-modes", &BVAR (current_buffer, minor_modes), 5628 DEFVAR_PER_BUFFER ("local-minor-modes",
5629 &BVAR (current_buffer, local_minor_modes),
5629 Qnil, 5630 Qnil,
5630 doc: /* Minor modes currently active in the current buffer. 5631 doc: /* Minor modes currently active in the current buffer.
5631This is a list of symbols, or nil if there are no minor modes active. */); 5632This is a list of symbols, or nil if there are no minor modes active. */);