aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-31 21:55:38 +0000
committerRichard M. Stallman1993-07-31 21:55:38 +0000
commit58943db0069c771583df071c58f88ece0cdf8820 (patch)
treecf8427b9ddb9d66c0494c306f0e06b5e659884f4 /src
parent19e1c4260a37d64f4533d30524a767fb4c4d9807 (diff)
downloademacs-58943db0069c771583df071c58f88ece0cdf8820.tar.gz
emacs-58943db0069c771583df071c58f88ece0cdf8820.zip
(MERGE_INSERTIONS): Define as 1.
(FRONT_STICKY): Add real definition. (END_NONSTICKY): New macro. (END_STICKY): Deleted. (textget_direct, Qfront_sticky, Qrear_nonsticky): Declared. (Qhidden): Declared.
Diffstat (limited to 'src')
-rw-r--r--src/intervals.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/intervals.h b/src/intervals.h
index 86c0d137bdf..444c2cdaad8 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -129,7 +129,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
129/* Macro determining whether the properties of an interval being 129/* Macro determining whether the properties of an interval being
130 inserted should be merged with the properties of the text where 130 inserted should be merged with the properties of the text where
131 they are being inserted. */ 131 they are being inserted. */
132#define MERGE_INSERTIONS(i) 0 132#define MERGE_INSERTIONS(i) 1
133 133
134/* Macro determining if an invisible interval should be displayed 134/* Macro determining if an invisible interval should be displayed
135 as a special glyph, or not at all. */ 135 as a special glyph, or not at all. */
@@ -150,8 +150,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
150 150
151/* Macros to tell whether insertions before or after this interval 151/* Macros to tell whether insertions before or after this interval
152 should stick to it. */ 152 should stick to it. */
153#define FRONT_STICKY_P(i) ((i)->front_sticky != 0) 153/* Replace later with cache access */
154#define END_STICKY_P(i) ((i)->rear_sticky != 0) 154/*#define FRONT_STICKY_P(i) ((i)->front_sticky != 0)
155 #define END_STICKY_P(i) ((i)->rear_sticky != 0)*/
156#define FRONT_STICKY_P(i) \
157 (! NULL_INTERVAL_P (i) && ! NILP (textget ((i)->plist, Qfront_sticky)))
158#define END_NONSTICKY_P(i) \
159 (! NULL_INTERVAL_P (i) && ! NILP (textget ((i)->plist, Qrear_nonsticky)))
155 160
156 161
157/* Declared in alloc.c */ 162/* Declared in alloc.c */
@@ -180,6 +185,7 @@ extern INTERVAL balance_intervals ();
180extern INLINE void copy_intervals_to_string (); 185extern INLINE void copy_intervals_to_string ();
181extern INTERVAL copy_intervals (); 186extern INTERVAL copy_intervals ();
182extern Lisp_Object textget (); 187extern Lisp_Object textget ();
188extern Lisp_Object textget_direct ();
183extern Lisp_Object get_local_map (); 189extern Lisp_Object get_local_map ();
184 190
185/* Declared in textprop.c */ 191/* Declared in textprop.c */
@@ -195,10 +201,13 @@ extern Lisp_Object Qlocal_map;
195 201
196/* Visual properties text (including strings) may have. */ 202/* Visual properties text (including strings) may have. */
197extern Lisp_Object Qforeground, Qbackground, Qfont, Qunderline, Qstipple; 203extern Lisp_Object Qforeground, Qbackground, Qfont, Qunderline, Qstipple;
198extern Lisp_Object Qinvisible, Qread_only; 204extern Lisp_Object Qinvisible, Qhidden, Qread_only;
199 205
200extern Lisp_Object Vinhibit_point_motion_hooks; 206extern Lisp_Object Vinhibit_point_motion_hooks;
201 207
208/* Sticky properties */
209extern Lisp_Object Qfront_sticky, Qrear_nonsticky;
210
202extern Lisp_Object Ftext_properties_at (); 211extern Lisp_Object Ftext_properties_at ();
203extern Lisp_Object Fnext_property_change (), Fprevious_property_change (); 212extern Lisp_Object Fnext_property_change (), Fprevious_property_change ();
204extern Lisp_Object Fadd_text_properties (), Fset_text_properties (); 213extern Lisp_Object Fadd_text_properties (), Fset_text_properties ();