changeset 50304:d9d826db650f

(overlays_in): Declare static. (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's `constant' field rather than the variable's `type' field.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 25 Mar 2003 16:20:38 +0000
parents 9425f144e7c4
children 77bee06b14c5
files src/buffer.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Mon Mar 24 22:38:56 2003 +0000
+++ b/src/buffer.c	Tue Mar 25 16:20:38 2003 +0000
@@ -2568,7 +2568,7 @@
    and we store only as many overlays as will fit.
    But we still return the total number of overlays.  */
 
-int
+static int
 overlays_in (beg, end, extend, vec_ptr, len_ptr, next_ptr, prev_ptr)
      int beg, end;
      int extend;
@@ -5362,7 +5362,7 @@
 
   DEFVAR_PER_BUFFER ("enable-multibyte-characters",
 		     &current_buffer->enable_multibyte_characters,
-		     make_number (-1),
+		     Qnil,
 		     doc: /* Non-nil means the buffer contents are regarded as multi-byte characters.
 Otherwise they are regarded as unibyte.  This affects the display,
 file I/O and the behavior of various editing commands.
@@ -5372,6 +5372,7 @@
 Changing its default value with `setq-default' is supported.
 See also variable `default-enable-multibyte-characters' and Info node
 `(elisp)Text Representations'.  */);
+  XSYMBOL (intern ("enable-multibyte-characters"))->constant = 1;
 
   DEFVAR_PER_BUFFER ("buffer-file-coding-system",
 		     &current_buffer->buffer_file_coding_system, Qnil,
@@ -5676,7 +5677,7 @@
   DEFVAR_PER_BUFFER ("buffer-file-format", &current_buffer->file_format, Qnil,
 		     doc: /* List of formats to use when saving this buffer.
 Formats are defined by `format-alist'.  This variable is
-set when a file is visited.  Automatically local in all buffers.  */);
+set when a file is visited.  */);
 
   DEFVAR_PER_BUFFER ("buffer-invisibility-spec",
 		     &current_buffer->invisibility_spec, Qnil,