diff options
| author | Kenichi Handa | 1997-02-27 11:15:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-02-27 11:15:55 +0000 |
| commit | a1a17b614d5b629993e4c7d6591045e9f6b0d64e (patch) | |
| tree | 22d444a24c111297d1dec4bc7c7c57e003dbe3ed /src | |
| parent | 74d28e554025a236df409e5c1352bb5b92d7884b (diff) | |
| download | emacs-a1a17b614d5b629993e4c7d6591045e9f6b0d64e.tar.gz emacs-a1a17b614d5b629993e4c7d6591045e9f6b0d64e.zip | |
(init_buffer_once): Make member
enable_multibyte_characters of struct buffer not always local.
(reset_buffer): Do not reset b->enable_multibyte_characters.
(syms_of_buffer): Declare default-enable-multibyte-characters.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 7d1f28ad2c1..97a179e171f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -476,7 +476,6 @@ reset_buffer (b) | |||
| 476 | b->mark_active = Qnil; | 476 | b->mark_active = Qnil; |
| 477 | b->point_before_scroll = Qnil; | 477 | b->point_before_scroll = Qnil; |
| 478 | b->file_format = Qnil; | 478 | b->file_format = Qnil; |
| 479 | b->enable_multibyte_characters = Qt; | ||
| 480 | b->last_selected_window = Qnil; | 479 | b->last_selected_window = Qnil; |
| 481 | b->extra2 = Qnil; | 480 | b->extra2 = Qnil; |
| 482 | b->extra3 = Qnil; | 481 | b->extra3 = Qnil; |
| @@ -3517,6 +3516,7 @@ init_buffer_once () | |||
| 3517 | #ifdef DOS_NT | 3516 | #ifdef DOS_NT |
| 3518 | buffer_defaults.buffer_file_type = Qnil; /* TEXT */ | 3517 | buffer_defaults.buffer_file_type = Qnil; /* TEXT */ |
| 3519 | #endif | 3518 | #endif |
| 3519 | buffer_defaults.enable_multibyte_characters = Qt; | ||
| 3520 | XSETFASTINT (buffer_defaults.fill_column, 70); | 3520 | XSETFASTINT (buffer_defaults.fill_column, 70); |
| 3521 | XSETFASTINT (buffer_defaults.left_margin, 0); | 3521 | XSETFASTINT (buffer_defaults.left_margin, 0); |
| 3522 | buffer_defaults.cache_long_line_scans = Qnil; | 3522 | buffer_defaults.cache_long_line_scans = Qnil; |
| @@ -3546,7 +3546,6 @@ init_buffer_once () | |||
| 3546 | XSETINT (buffer_local_flags.file_truename, -1); | 3546 | XSETINT (buffer_local_flags.file_truename, -1); |
| 3547 | XSETINT (buffer_local_flags.invisibility_spec, -1); | 3547 | XSETINT (buffer_local_flags.invisibility_spec, -1); |
| 3548 | XSETINT (buffer_local_flags.file_format, -1); | 3548 | XSETINT (buffer_local_flags.file_format, -1); |
| 3549 | XSETINT (buffer_local_flags.enable_multibyte_characters, -1); | ||
| 3550 | 3549 | ||
| 3551 | XSETFASTINT (buffer_local_flags.mode_line_format, 1); | 3550 | XSETFASTINT (buffer_local_flags.mode_line_format, 1); |
| 3552 | XSETFASTINT (buffer_local_flags.abbrev_mode, 2); | 3551 | XSETFASTINT (buffer_local_flags.abbrev_mode, 2); |
| @@ -3573,6 +3572,9 @@ init_buffer_once () | |||
| 3573 | XSETFASTINT (buffer_local_flags.cache_long_line_scans, 0x10000); | 3572 | XSETFASTINT (buffer_local_flags.cache_long_line_scans, 0x10000); |
| 3574 | XSETFASTINT (buffer_local_flags.category_table, 0x20000); | 3573 | XSETFASTINT (buffer_local_flags.category_table, 0x20000); |
| 3575 | XSETFASTINT (buffer_local_flags.direction_reversed, 0x40000); | 3574 | XSETFASTINT (buffer_local_flags.direction_reversed, 0x40000); |
| 3575 | XSETFASTINT (buffer_local_flags.enable_multibyte_characters, 0x80000); | ||
| 3576 | /* Make this one a permanent local. */ | ||
| 3577 | buffer_permanent_local_flags |= 0x80000; | ||
| 3576 | 3578 | ||
| 3577 | Vbuffer_alist = Qnil; | 3579 | Vbuffer_alist = Qnil; |
| 3578 | current_buffer = 0; | 3580 | current_buffer = 0; |
| @@ -3718,6 +3720,11 @@ This is the same as (default-value 'ctl-arrow)."); | |||
| 3718 | "Default value of `direction_reversed' for buffers that do not override it.\n\ | 3720 | "Default value of `direction_reversed' for buffers that do not override it.\n\ |
| 3719 | This is the same as (default-value 'direction-reversed)."); | 3721 | This is the same as (default-value 'direction-reversed)."); |
| 3720 | 3722 | ||
| 3723 | DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters", | ||
| 3724 | &buffer_defaults.enable_multibyte_characters, | ||
| 3725 | "Default value of `enable-multibyte-characters' for buffers not overriding it.\n\ | ||
| 3726 | This is the same as (default-value 'enable-multibyte-characters)."); | ||
| 3727 | |||
| 3721 | DEFVAR_LISP_NOPRO ("default-truncate-lines", | 3728 | DEFVAR_LISP_NOPRO ("default-truncate-lines", |
| 3722 | &buffer_defaults.truncate_lines, | 3729 | &buffer_defaults.truncate_lines, |
| 3723 | "Default value of `truncate-lines' for buffers that do not override it.\n\ | 3730 | "Default value of `truncate-lines' for buffers that do not override it.\n\ |