aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorKenichi Handa2004-04-16 12:51:06 +0000
committerKenichi Handa2004-04-16 12:51:06 +0000
commit6b61353c0a0320ee15bb6488149735381fed62ec (patch)
treee69adba60e504a5a37beb556ad70084de88a7aab /src/buffer.h
parentdc6a28319312fe81f7a1015e363174022313f0bd (diff)
downloademacs-6b61353c0a0320ee15bb6488149735381fed62ec.tar.gz
emacs-6b61353c0a0320ee15bb6488149735381fed62ec.zip
Sync to HEAD
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index b52f83a6e06..0755db25f9f 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -737,6 +737,9 @@ struct buffer
737 like vi). */ 737 like vi). */
738 Lisp_Object indicate_empty_lines; 738 Lisp_Object indicate_empty_lines;
739 739
740 /* Non-nil means indicate buffer boundaries and scrolling. */
741 Lisp_Object indicate_buffer_boundaries;
742
740 /* Time stamp updated each time this buffer is displayed in a window. */ 743 /* Time stamp updated each time this buffer is displayed in a window. */
741 Lisp_Object display_time; 744 Lisp_Object display_time;
742 745
@@ -911,8 +914,26 @@ extern int last_per_buffer_idx;
911 (B)->local_flags[IDX] = (VAL); \ 914 (B)->local_flags[IDX] = (VAL); \
912 } while (0) 915 } while (0)
913 916
914/* Return the index of the per-buffer variable at offset OFFSET in the 917/* Return the index value of the per-buffer variable at offset OFFSET
915 buffer structure. */ 918 in the buffer structure.
919
920 If the slot OFFSET has a corresponding default value in
921 buffer_defaults, the index value is positive and has only one
922 nonzero bit. When a buffer has its own local value for a slot, the
923 bit for that slot (found in the same slot in this structure) is
924 turned on in the buffer's local_flags array.
925
926 If the index value is -1, even though there may be a
927 DEFVAR_PER_BUFFER for the slot, there is no default value for it;
928 and the corresponding slot in buffer_defaults is not used.
929
930 If the index value is -2, then there is no DEFVAR_PER_BUFFER for
931 the slot, but there is a default value which is copied into each
932 new buffer.
933
934 If a slot in this structure corresponding to a DEFVAR_PER_BUFFER is
935 zero, that is a bug */
936
916 937
917#define PER_BUFFER_IDX(OFFSET) \ 938#define PER_BUFFER_IDX(OFFSET) \
918 XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags)) 939 XINT (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_flags))
@@ -940,3 +961,6 @@ extern int last_per_buffer_idx;
940 961
941#define PER_BUFFER_TYPE(OFFSET) \ 962#define PER_BUFFER_TYPE(OFFSET) \
942 (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_types)) 963 (*(Lisp_Object *)((OFFSET) + (char *) &buffer_local_types))
964
965/* arch-tag: 679305dd-d41c-4a50-b170-3caf5c97b2d1
966 (do not change this comment) */