aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorKaroly Lorentey2003-12-30 17:05:05 +0000
committerKaroly Lorentey2003-12-30 17:05:05 +0000
commit7c3a26158711d76ee77b0bd75fa9df56db5eb57d (patch)
treef808bf77a5b47ce2c8aec0a31187626860d566b6 /src/buffer.h
parentc1c63edb7907e35085f2d61507e1047db85d52c7 (diff)
parent8a37230a70acc8943ba45f52504179ddcc1a5468 (diff)
downloademacs-7c3a26158711d76ee77b0bd75fa9df56db5eb57d.tar.gz
emacs-7c3a26158711d76ee77b0bd75fa9df56db5eb57d.zip
Merged in changes from CVS head
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-5 Add =cvs-sync-make-log script * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-6 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-7 Use absolute tla-tools filenames in =cvs-sync-make-log * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-8 Use proper arch-tag: syntax for lispintro/texinfo.tex * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-9 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-24
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h22
1 files changed, 20 insertions, 2 deletions
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;
906 (B)->local_flags[IDX] = (VAL); \ 906 (B)->local_flags[IDX] = (VAL); \
907 } while (0) 907 } while (0)
908 908
909/* Return the index of the per-buffer variable at offset OFFSET in the 909/* Return the index value of the per-buffer variable at offset OFFSET
910 buffer structure. */ 910 in the buffer structure.
911
912 If the slot OFFSET has a corresponding default value in
913 buffer_defaults, the index value is positive and has only one
914 nonzero bit. When a buffer has its own local value for a slot, the
915 bit for that slot (found in the same slot in this structure) is
916 turned on in the buffer's local_flags array.
917
918 If the index value is -1, even though there may be a
919 DEFVAR_PER_BUFFER for the slot, there is no default value for it;
920 and the corresponding slot in buffer_defaults is not used.
921
922 If the index value is -2, then there is no DEFVAR_PER_BUFFER for
923 the slot, but there is a default value which is copied into each
924 new buffer.
925
926 If a slot in this structure corresponding to a DEFVAR_PER_BUFFER is
927 zero, that is a bug */
928
911 929
912#define PER_BUFFER_IDX(OFFSET) \ 930#define PER_BUFFER_IDX(OFFSET) \
913 XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags)) 931 XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags))