diff options
| author | Stefan Monnier | 2003-03-25 16:20:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-03-25 16:20:38 +0000 |
| commit | a9b9a78056f5fe6a2eb1e226fa47515825184492 (patch) | |
| tree | 2224826e1bb8547bc59f1b2470a84837367e0454 /src/buffer.c | |
| parent | a670d17ad1d43c9d7917da512eedf76d8ac767e7 (diff) | |
| download | emacs-a9b9a78056f5fe6a2eb1e226fa47515825184492.tar.gz emacs-a9b9a78056f5fe6a2eb1e226fa47515825184492.zip | |
(overlays_in): Declare static.
(syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
`constant' field rather than the variable's `type' field.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 5b57be7246a..b0497c71692 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2568,7 +2568,7 @@ overlays_at (pos, extend, vec_ptr, len_ptr, next_ptr, prev_ptr, change_req) | |||
| 2568 | and we store only as many overlays as will fit. | 2568 | and we store only as many overlays as will fit. |
| 2569 | But we still return the total number of overlays. */ | 2569 | But we still return the total number of overlays. */ |
| 2570 | 2570 | ||
| 2571 | int | 2571 | static int |
| 2572 | overlays_in (beg, end, extend, vec_ptr, len_ptr, next_ptr, prev_ptr) | 2572 | overlays_in (beg, end, extend, vec_ptr, len_ptr, next_ptr, prev_ptr) |
| 2573 | int beg, end; | 2573 | int beg, end; |
| 2574 | int extend; | 2574 | int extend; |
| @@ -5362,7 +5362,7 @@ in the current display table (if there is one). */); | |||
| 5362 | 5362 | ||
| 5363 | DEFVAR_PER_BUFFER ("enable-multibyte-characters", | 5363 | DEFVAR_PER_BUFFER ("enable-multibyte-characters", |
| 5364 | ¤t_buffer->enable_multibyte_characters, | 5364 | ¤t_buffer->enable_multibyte_characters, |
| 5365 | make_number (-1), | 5365 | Qnil, |
| 5366 | doc: /* Non-nil means the buffer contents are regarded as multi-byte characters. | 5366 | doc: /* Non-nil means the buffer contents are regarded as multi-byte characters. |
| 5367 | Otherwise they are regarded as unibyte. This affects the display, | 5367 | Otherwise they are regarded as unibyte. This affects the display, |
| 5368 | file I/O and the behavior of various editing commands. | 5368 | file I/O and the behavior of various editing commands. |
| @@ -5372,6 +5372,7 @@ use the function `set-buffer-multibyte' to change a buffer's representation. | |||
| 5372 | Changing its default value with `setq-default' is supported. | 5372 | Changing its default value with `setq-default' is supported. |
| 5373 | See also variable `default-enable-multibyte-characters' and Info node | 5373 | See also variable `default-enable-multibyte-characters' and Info node |
| 5374 | `(elisp)Text Representations'. */); | 5374 | `(elisp)Text Representations'. */); |
| 5375 | XSYMBOL (intern ("enable-multibyte-characters"))->constant = 1; | ||
| 5375 | 5376 | ||
| 5376 | DEFVAR_PER_BUFFER ("buffer-file-coding-system", | 5377 | DEFVAR_PER_BUFFER ("buffer-file-coding-system", |
| 5377 | ¤t_buffer->buffer_file_coding_system, Qnil, | 5378 | ¤t_buffer->buffer_file_coding_system, Qnil, |
| @@ -5676,7 +5677,7 @@ functions; it should only affect their performance. */); | |||
| 5676 | DEFVAR_PER_BUFFER ("buffer-file-format", ¤t_buffer->file_format, Qnil, | 5677 | DEFVAR_PER_BUFFER ("buffer-file-format", ¤t_buffer->file_format, Qnil, |
| 5677 | doc: /* List of formats to use when saving this buffer. | 5678 | doc: /* List of formats to use when saving this buffer. |
| 5678 | Formats are defined by `format-alist'. This variable is | 5679 | Formats are defined by `format-alist'. This variable is |
| 5679 | set when a file is visited. Automatically local in all buffers. */); | 5680 | set when a file is visited. */); |
| 5680 | 5681 | ||
| 5681 | DEFVAR_PER_BUFFER ("buffer-invisibility-spec", | 5682 | DEFVAR_PER_BUFFER ("buffer-invisibility-spec", |
| 5682 | ¤t_buffer->invisibility_spec, Qnil, | 5683 | ¤t_buffer->invisibility_spec, Qnil, |