From 6c2ef893427b86cbbcadcb271bf9b45e68e4b72e Mon Sep 17 00:00:00 2001 From: Richard M. Stallman Date: Mon, 29 Dec 2003 11:22:31 +0000 Subject: Comment change. --- src/buffer.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index 14d3aa6d5ee..930424b0b49 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -906,8 +906,26 @@ extern int last_per_buffer_idx; (B)->local_flags[IDX] = (VAL); \ } while (0) -/* Return the index of the per-buffer variable at offset OFFSET in the - buffer structure. */ +/* Return the index value of the per-buffer variable at offset OFFSET + in the buffer structure. + + If the slot OFFSET has a corresponding default value in + buffer_defaults, the index value is positive and has only one + nonzero bit. When a buffer has its own local value for a slot, the + bit for that slot (found in the same slot in this structure) is + turned on in the buffer's local_flags array. + + If the index value is -1, even though there may be a + DEFVAR_PER_BUFFER for the slot, there is no default value for it; + and the corresponding slot in buffer_defaults is not used. + + If the index value is -2, then there is no DEFVAR_PER_BUFFER for + the slot, but there is a default value which is copied into each + new buffer. + + If a slot in this structure corresponding to a DEFVAR_PER_BUFFER is + zero, that is a bug */ + #define PER_BUFFER_IDX(OFFSET) \ XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags)) -- cgit v1.2.1 From 40b2672a794179224683c0ea4917339aa44d0dea Mon Sep 17 00:00:00 2001 From: Kim F. Storm Date: Fri, 16 Jan 2004 18:40:33 +0000 Subject: (struct buffer): New member indicate_buffer_boundaries. --- src/buffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index 930424b0b49..e2205a916e6 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -733,6 +733,9 @@ struct buffer like vi). */ Lisp_Object indicate_empty_lines; + /* Non-nil means indicate buffer boundaries and scrolling. */ + Lisp_Object indicate_buffer_boundaries; + /* Time stamp updated each time this buffer is displayed in a window. */ Lisp_Object display_time; -- cgit v1.2.1 From 002571ddc7980f54ec0cd5a8c42adff41f3b5f76 Mon Sep 17 00:00:00 2001 From: Kim F. Storm Date: Mon, 17 May 2004 22:46:34 +0000 Subject: (GET_OVERLAYS_AT): New macro. --- src/buffer.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index e2205a916e6..b5227cb9981 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -823,6 +823,25 @@ extern void buffer_slot_type_mismatch P_ ((int)); extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT)); extern void mmap_set_vars P_ ((int)); +/* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements. + If NEXTP is non-NULL, return next overlay there. + See overlay_at arg CHANGE_REQ for meaning of CHRQ arg. */ + +#define GET_OVERLAYS_AT(posn, overlays, noverlays, nextp, chrq) \ + do { \ + int maxlen = 40; \ + overlays = (Lisp_Object *) alloca (maxlen * sizeof (Lisp_Object)); \ + noverlays = overlays_at (posn, 0, &overlays, &maxlen, \ + nextp, NULL, chrq); \ + if (noverlays > maxlen) \ + { \ + maxlen = noverlays; \ + overlays = (Lisp_Object *) alloca (maxlen * sizeof (Lisp_Object)); \ + noverlays = overlays_at (posn, 0, &overlays, &maxlen, \ + nextp, NULL, chrq); \ + } \ + } while (0) + EXFUN (Fbuffer_name, 1); EXFUN (Fget_file_buffer, 1); EXFUN (Fnext_overlay_change, 1); -- cgit v1.2.1 From a0ecb2ac8eb6d2e72f255fe8e4acb607486d6c1d Mon Sep 17 00:00:00 2001 From: Kim F. Storm Date: Wed, 16 Jun 2004 15:10:55 +0000 Subject: Update copyright. --- src/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index b5227cb9981..e59211d4111 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -1,5 +1,5 @@ /* Header file for the buffer manipulation primitives. - Copyright (C) 1985, 86, 93, 94, 95, 97, 1998, 1999, 2000, 01, 2003 + Copyright (C) 1985,86,93,94,95,97,98,99,2000,01,03,04 Free Software Foundation, Inc. This file is part of GNU Emacs. -- cgit v1.2.1