# HG changeset patch # User Joseph Arceneaux # Date 717900971 0 # Node ID fbd402838d8d0524f6c4c053ece77d5d6564e1b0 # Parent d50533e23dff8b7214df1f3116aa07790bda290a * buffer.h: New macro TEMP_SET_PT. If intervals are used, SET_PT and TEMP_SET_PT are function calls. Similarly for BUF_SET_PT and BUF_TEMP_SET_PT. Added DECLARE_INTERVALS to buffer structure to conditionally compile an interval tree into it.. diff -r d50533e23dff -r fbd402838d8d src/buffer.h --- a/src/buffer.h Thu Oct 01 00:56:11 1992 +0000 +++ b/src/buffer.h Thu Oct 01 00:56:11 1992 +0000 @@ -23,7 +23,21 @@ #endif /* lint */ +#ifdef USE_TEXT_PROPERTIES +#define SET_PT(position) (set_point ((position), current_buffer)) +#define TEMP_SET_PT(position) (temp_set_point ((position), current_buffer)) + +#define BUF_SET_PT(buffer, position) (set_point ((position), (buffer))) +#define BUF_TEMP_SET_PT(buffer, position) (temp_set_point ((position), (buffer))) + +#else /* don't support text properties */ + #define SET_PT(position) (current_buffer->text.pt = (position)) +#define TEMP_SET_PT(position) (current_buffer->text.pt = (position)) + +#define BUF_SET_PT(buffer, position) (buffer->text.pt = (position)) +#define BUF_TEMP_SET_PT(buffer, position) (buffer->text.pt = (position)) +#endif /* don't support text properties */ /* Character position of beginning of buffer. */ #define BEG (1) @@ -71,8 +85,6 @@ /* Now similar macros for a specified buffer. Note that many of these evaluate the buffer argument more than once. */ -#define BUF_SET_PT(buffer, position) (buffer->text.pt = (position)) - /* Character position of beginning of buffer. */ #define BUF_BEG(buf) (1) @@ -162,6 +174,9 @@ the last time this buffer was displayed */ int last_window_start; + /* Properties of this buffer's text -- conditionally compiled. */ + DECLARE_INTERVALS + /* This is a special exception -- as this slot should not be marked by gc_sweep, and as it is not lisp-accessible as a local variable -- so we regard it as not really being of type