diff options
| author | Kenichi Handa | 1997-06-09 12:58:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-06-09 12:58:58 +0000 |
| commit | c71b5d9b4978863298cfb28a3b95a267698b1355 (patch) | |
| tree | 803363315010e8abd0d59119567f9eb65aea83fb /src/buffer.c | |
| parent | 53dcf39300d26b58088ec09ebf471878d96a8f4a (diff) | |
| download | emacs-c71b5d9b4978863298cfb28a3b95a267698b1355.tar.gz emacs-c71b5d9b4978863298cfb28a3b95a267698b1355.zip | |
(init_buffer_once): Inititialize the member
buffer_file_coding_system.
(syms_of_buffer): Declare Lisp variables
default-buffer-file-coding-system and buffer-file-coding-system.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index e3681eb74fe..e220981243f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -3563,6 +3563,7 @@ init_buffer_once () | |||
| 3563 | buffer_defaults.buffer_file_type = Qnil; /* TEXT */ | 3563 | buffer_defaults.buffer_file_type = Qnil; /* TEXT */ |
| 3564 | #endif | 3564 | #endif |
| 3565 | buffer_defaults.enable_multibyte_characters = Qt; | 3565 | buffer_defaults.enable_multibyte_characters = Qt; |
| 3566 | buffer_defaults.buffer_file_coding_system = Qnil; | ||
| 3566 | XSETFASTINT (buffer_defaults.fill_column, 70); | 3567 | XSETFASTINT (buffer_defaults.fill_column, 70); |
| 3567 | XSETFASTINT (buffer_defaults.left_margin, 0); | 3568 | XSETFASTINT (buffer_defaults.left_margin, 0); |
| 3568 | buffer_defaults.cache_long_line_scans = Qnil; | 3569 | buffer_defaults.cache_long_line_scans = Qnil; |
| @@ -3623,7 +3624,10 @@ init_buffer_once () | |||
| 3623 | XSETFASTINT (buffer_local_flags.enable_multibyte_characters, 0x80000); | 3624 | XSETFASTINT (buffer_local_flags.enable_multibyte_characters, 0x80000); |
| 3624 | /* Make this one a permanent local. */ | 3625 | /* Make this one a permanent local. */ |
| 3625 | buffer_permanent_local_flags |= 0x80000; | 3626 | buffer_permanent_local_flags |= 0x80000; |
| 3626 | 3627 | XSETFASTINT (buffer_local_flags.buffer_file_coding_system, 0x100000); | |
| 3628 | /* Make this one a permanent local. */ | ||
| 3629 | buffer_permanent_local_flags |= 0x100000; | ||
| 3630 | |||
| 3627 | Vbuffer_alist = Qnil; | 3631 | Vbuffer_alist = Qnil; |
| 3628 | current_buffer = 0; | 3632 | current_buffer = 0; |
| 3629 | all_buffers = 0; | 3633 | all_buffers = 0; |
| @@ -3773,6 +3777,11 @@ This is the same as (default-value 'ctl-arrow)."); | |||
| 3773 | "Default value of `enable-multibyte-characters' for buffers not overriding it.\n\ | 3777 | "Default value of `enable-multibyte-characters' for buffers not overriding it.\n\ |
| 3774 | This is the same as (default-value 'enable-multibyte-characters)."); | 3778 | This is the same as (default-value 'enable-multibyte-characters)."); |
| 3775 | 3779 | ||
| 3780 | DEFVAR_LISP_NOPRO ("default-buffer-file-coding-system", | ||
| 3781 | &buffer_defaults.buffer_file_coding_system, | ||
| 3782 | "Default value of `buffer-file-coding-system' for buffers not overriding it.\n\ | ||
| 3783 | This is the same as (default-value 'buffer-file-coding-system)."); | ||
| 3784 | |||
| 3776 | DEFVAR_LISP_NOPRO ("default-truncate-lines", | 3785 | DEFVAR_LISP_NOPRO ("default-truncate-lines", |
| 3777 | &buffer_defaults.truncate_lines, | 3786 | &buffer_defaults.truncate_lines, |
| 3778 | "Default value of `truncate-lines' for buffers that do not override it.\n\ | 3787 | "Default value of `truncate-lines' for buffers that do not override it.\n\ |
| @@ -3896,6 +3905,16 @@ in the current display table (if there is one)."); | |||
| 3896 | of characters, not a binary code. This affects the display, file I/O,\n\ | 3905 | of characters, not a binary code. This affects the display, file I/O,\n\ |
| 3897 | and behaviors of various editing commands."); | 3906 | and behaviors of various editing commands."); |
| 3898 | 3907 | ||
| 3908 | DEFVAR_PER_BUFFER ("buffer-file-coding-system", | ||
| 3909 | ¤t_buffer->buffer_file_coding_system, Qnil, | ||
| 3910 | "Coding system to be used for encoding the buffer contents on saving.\n\ | ||
| 3911 | If it is nil, the buffer is saved without any code conversion unless\n\ | ||
| 3912 | some coding system is specified in file-coding-system-alist\n\ | ||
| 3913 | for the buffer file.\n\ | ||
| 3914 | \n\ | ||
| 3915 | This variable is never applied to a way of decoding\n\ | ||
| 3916 | a file while reading it."); | ||
| 3917 | |||
| 3899 | DEFVAR_PER_BUFFER ("direction-reversed", ¤t_buffer->direction_reversed, | 3918 | DEFVAR_PER_BUFFER ("direction-reversed", ¤t_buffer->direction_reversed, |
| 3900 | Qnil, | 3919 | Qnil, |
| 3901 | "*Non-nil means lines in the buffer are displayed right to left."); | 3920 | "*Non-nil means lines in the buffer are displayed right to left."); |