Mercurial > emacs
changeset 1286:fbd402838d8d
* 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..
author | Joseph Arceneaux <jla@gnu.org> |
---|---|
date | Thu, 01 Oct 1992 00:56:11 +0000 |
parents | d50533e23dff |
children | 02bd1ea07b17 |
files | src/buffer.h |
diffstat | 1 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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