Mercurial > emacs
comparison src/buffer.c @ 56976:b3aa8cb4c381
(reset_buffer, init_buffer_once): Handle auto_save_file_format field.
(syms_of_buffer): Add DEFVAR_PER_BUFFER for `buffer-auto-save-file-format'.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Wed, 08 Sep 2004 02:23:55 +0000 |
parents | 126be634e20a |
children | 5358b2582e78 42acc7fa8a4f cce1c0ee76ee |
comparison
equal
deleted
inserted
replaced
56975:ef6ff15b0458 | 56976:b3aa8cb4c381 |
---|---|
692 b->overlays_after = NULL; | 692 b->overlays_after = NULL; |
693 b->overlay_center = BEG; | 693 b->overlay_center = BEG; |
694 b->mark_active = Qnil; | 694 b->mark_active = Qnil; |
695 b->point_before_scroll = Qnil; | 695 b->point_before_scroll = Qnil; |
696 b->file_format = Qnil; | 696 b->file_format = Qnil; |
697 b->auto_save_file_format = Qt; | |
697 b->last_selected_window = Qnil; | 698 b->last_selected_window = Qnil; |
698 XSETINT (b->display_count, 0); | 699 XSETINT (b->display_count, 0); |
699 b->display_time = Qnil; | 700 b->display_time = Qnil; |
700 b->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters; | 701 b->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters; |
701 b->cursor_type = buffer_defaults.cursor_type; | 702 b->cursor_type = buffer_defaults.cursor_type; |
4960 buffer_defaults.abbrev_table = Qnil; | 4961 buffer_defaults.abbrev_table = Qnil; |
4961 buffer_defaults.display_table = Qnil; | 4962 buffer_defaults.display_table = Qnil; |
4962 buffer_defaults.undo_list = Qnil; | 4963 buffer_defaults.undo_list = Qnil; |
4963 buffer_defaults.mark_active = Qnil; | 4964 buffer_defaults.mark_active = Qnil; |
4964 buffer_defaults.file_format = Qnil; | 4965 buffer_defaults.file_format = Qnil; |
4966 buffer_defaults.auto_save_file_format = Qt; | |
4965 buffer_defaults.overlays_before = NULL; | 4967 buffer_defaults.overlays_before = NULL; |
4966 buffer_defaults.overlays_after = NULL; | 4968 buffer_defaults.overlays_after = NULL; |
4967 buffer_defaults.overlay_center = BEG; | 4969 buffer_defaults.overlay_center = BEG; |
4968 | 4970 |
4969 XSETFASTINT (buffer_defaults.tab_width, 8); | 4971 XSETFASTINT (buffer_defaults.tab_width, 8); |
5018 XSETINT (buffer_local_flags.mark_active, -1); | 5020 XSETINT (buffer_local_flags.mark_active, -1); |
5019 XSETINT (buffer_local_flags.point_before_scroll, -1); | 5021 XSETINT (buffer_local_flags.point_before_scroll, -1); |
5020 XSETINT (buffer_local_flags.file_truename, -1); | 5022 XSETINT (buffer_local_flags.file_truename, -1); |
5021 XSETINT (buffer_local_flags.invisibility_spec, -1); | 5023 XSETINT (buffer_local_flags.invisibility_spec, -1); |
5022 XSETINT (buffer_local_flags.file_format, -1); | 5024 XSETINT (buffer_local_flags.file_format, -1); |
5025 XSETINT (buffer_local_flags.auto_save_file_format, -1); | |
5023 XSETINT (buffer_local_flags.display_count, -1); | 5026 XSETINT (buffer_local_flags.display_count, -1); |
5024 XSETINT (buffer_local_flags.display_time, -1); | 5027 XSETINT (buffer_local_flags.display_time, -1); |
5025 XSETINT (buffer_local_flags.enable_multibyte_characters, -1); | 5028 XSETINT (buffer_local_flags.enable_multibyte_characters, -1); |
5026 | 5029 |
5027 idx = 1; | 5030 idx = 1; |
5828 DEFVAR_PER_BUFFER ("buffer-file-format", ¤t_buffer->file_format, Qnil, | 5831 DEFVAR_PER_BUFFER ("buffer-file-format", ¤t_buffer->file_format, Qnil, |
5829 doc: /* List of formats to use when saving this buffer. | 5832 doc: /* List of formats to use when saving this buffer. |
5830 Formats are defined by `format-alist'. This variable is | 5833 Formats are defined by `format-alist'. This variable is |
5831 set when a file is visited. */); | 5834 set when a file is visited. */); |
5832 | 5835 |
5836 DEFVAR_PER_BUFFER ("buffer-auto-save-file-format", | |
5837 ¤t_buffer->auto_save_file_format, Qnil, | |
5838 doc: /* *Format in which to write auto-save files. | |
5839 Should be a list of symbols naming formats that are defined in `format-alist'. | |
5840 If it is t, which is the default, auto-save files are written in the | |
5841 same format as a regular save would use. */); | |
5842 | |
5833 DEFVAR_PER_BUFFER ("buffer-invisibility-spec", | 5843 DEFVAR_PER_BUFFER ("buffer-invisibility-spec", |
5834 ¤t_buffer->invisibility_spec, Qnil, | 5844 ¤t_buffer->invisibility_spec, Qnil, |
5835 doc: /* Invisibility spec of this buffer. | 5845 doc: /* Invisibility spec of this buffer. |
5836 The default is t, which means that text is invisible | 5846 The default is t, which means that text is invisible |
5837 if it has a non-nil `invisible' property. | 5847 if it has a non-nil `invisible' property. |