From: Stefan Monnier Date: Tue, 25 Mar 2003 16:20:38 +0000 (+0000) Subject: (overlays_in): Declare static. X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/a9b9a78056f5fe6a2eb1e226fa47515825184492?hp=a670d17ad1d43c9d7917da512eedf76d8ac767e7 (overlays_in): Declare static. (syms_of_buffer) : Use the symbol's `constant' field rather than the variable's `type' field. --- diff --git a/src/buffer.c b/src/buffer.c index 5b57be7246..b0497c7169 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) 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 @@ in the current display table (if there is one). */); DEFVAR_PER_BUFFER ("enable-multibyte-characters", ¤t_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 @@ use the function `set-buffer-multibyte' to change a buffer's representation. 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", ¤t_buffer->buffer_file_coding_system, Qnil, @@ -5676,7 +5677,7 @@ functions; it should only affect their performance. */); DEFVAR_PER_BUFFER ("buffer-file-format", ¤t_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", ¤t_buffer->invisibility_spec, Qnil,