aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorStefan Monnier2003-03-25 16:20:38 +0000
committerStefan Monnier2003-03-25 16:20:38 +0000
commita9b9a78056f5fe6a2eb1e226fa47515825184492 (patch)
tree2224826e1bb8547bc59f1b2470a84837367e0454 /src/buffer.c
parenta670d17ad1d43c9d7917da512eedf76d8ac767e7 (diff)
downloademacs-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.c7
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
2571int 2571static int
2572overlays_in (beg, end, extend, vec_ptr, len_ptr, next_ptr, prev_ptr) 2572overlays_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 &current_buffer->enable_multibyte_characters, 5364 &current_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.
5367Otherwise they are regarded as unibyte. This affects the display, 5367Otherwise they are regarded as unibyte. This affects the display,
5368file I/O and the behavior of various editing commands. 5368file 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.
5372Changing its default value with `setq-default' is supported. 5372Changing its default value with `setq-default' is supported.
5373See also variable `default-enable-multibyte-characters' and Info node 5373See 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 &current_buffer->buffer_file_coding_system, Qnil, 5378 &current_buffer->buffer_file_coding_system, Qnil,
@@ -5676,7 +5677,7 @@ functions; it should only affect their performance. */);
5676 DEFVAR_PER_BUFFER ("buffer-file-format", &current_buffer->file_format, Qnil, 5677 DEFVAR_PER_BUFFER ("buffer-file-format", &current_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.
5678Formats are defined by `format-alist'. This variable is 5679Formats are defined by `format-alist'. This variable is
5679set when a file is visited. Automatically local in all buffers. */); 5680set when a file is visited. */);
5680 5681
5681 DEFVAR_PER_BUFFER ("buffer-invisibility-spec", 5682 DEFVAR_PER_BUFFER ("buffer-invisibility-spec",
5682 &current_buffer->invisibility_spec, Qnil, 5683 &current_buffer->invisibility_spec, Qnil,