aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-11 11:45:06 +0000
committerGerd Moellmann1999-11-11 11:45:06 +0000
commit339ee9797d7d80d6b934e6a335c57d39303bbdcc (patch)
tree4ff4b35d61aa3f78d65f7de698c2a54a4cdb4508 /src
parent35a5514b96c8ae655e2a6995c2f0ff2a07de65ab (diff)
downloademacs-339ee9797d7d80d6b934e6a335c57d39303bbdcc.tar.gz
emacs-339ee9797d7d80d6b934e6a335c57d39303bbdcc.zip
Remove USE_TEXT_PROPERTIES.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in5
-rw-r--r--src/buffer.h17
-rw-r--r--src/config.in4
-rw-r--r--src/emacs.c1
-rw-r--r--src/indent.c10
-rw-r--r--src/insdel.c13
-rw-r--r--src/intervals.c5
-rw-r--r--src/intervals.h18
-rw-r--r--src/keyboard.c16
-rw-r--r--src/keymap.c8
-rw-r--r--src/lisp.h12
-rw-r--r--src/lread.c5
-rw-r--r--src/print.c15
-rw-r--r--src/textprop.c7
-rw-r--r--src/undo.c2
15 files changed, 4 insertions, 134 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 92b6a6ddd02..05d2ddcb147 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -520,13 +520,8 @@ ALL_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE \
520#define UNEXEC_SRC unexec.c 520#define UNEXEC_SRC unexec.c
521#endif 521#endif
522 522
523#ifdef USE_TEXT_PROPERTIES
524#define INTERVAL_SRC intervals.h 523#define INTERVAL_SRC intervals.h
525#define INTERVAL_OBJ intervals.o textprop.o 524#define INTERVAL_OBJ intervals.o textprop.o
526#else
527#define INTERVAL_SRC
528#define INTERVAL_OBJ
529#endif
530 525
531#ifdef HAVE_GETLOADAVG 526#ifdef HAVE_GETLOADAVG
532#define GETLOADAVG_OBJ 527#define GETLOADAVG_OBJ
diff --git a/src/buffer.h b/src/buffer.h
index 617a2fe1445..a3e87c8f205 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -199,7 +199,6 @@ Boston, MA 02111-1307, USA. */
199 199
200/* Macros to set PT in the current buffer, or another buffer.. */ 200/* Macros to set PT in the current buffer, or another buffer.. */
201 201
202#ifdef USE_TEXT_PROPERTIES
203#define SET_PT(position) (set_point (current_buffer, (position))) 202#define SET_PT(position) (set_point (current_buffer, (position)))
204#define TEMP_SET_PT(position) (temp_set_point (current_buffer, (position))) 203#define TEMP_SET_PT(position) (temp_set_point (current_buffer, (position)))
205 204
@@ -218,22 +217,6 @@ extern INLINE void temp_set_point P_ ((struct buffer *, int));
218extern void set_point_both P_ ((struct buffer *, int, int)); 217extern void set_point_both P_ ((struct buffer *, int, int));
219extern INLINE void temp_set_point_both P_ ((struct buffer *, int, int)); 218extern INLINE void temp_set_point_both P_ ((struct buffer *, int, int));
220 219
221#else /* don't support text properties */
222
223#define SET_PT(position) (current_buffer->pt = (position))
224#define TEMP_SET_PT(position) (current_buffer->pt = (position))
225
226#define SET_PT_BOTH(position, byte) \
227 (current_buffer->pt = (position), \
228 current_buffer->pt_byte = (byte))
229
230#define TEMP_SET_PT_BOTH(position, byte) \
231 (current_buffer->pt = (position), \
232 current_buffer->pt_byte = (byte))
233
234#define BUF_SET_PT(buffer, position) (buffer->pt = (position))
235#define BUF_TEMP_SET_PT(buffer, position) (buffer->pt = (position))
236#endif /* don't support text properties */
237 220
238/* Macros for setting the BEGV, ZV or PT of a given buffer. 221/* Macros for setting the BEGV, ZV or PT of a given buffer.
239 222
diff --git a/src/config.in b/src/config.in
index 693dea8dc6c..fbdacf613ce 100644
--- a/src/config.in
+++ b/src/config.in
@@ -103,10 +103,6 @@ Boston, MA 02111-1307, USA. */
103#define HAVE_MOUSE 103#define HAVE_MOUSE
104#endif 104#endif
105 105
106/* Define USE_TEXT_PROPERTIES to support visual and other properties
107 on text. */
108#define USE_TEXT_PROPERTIES
109
110/* Define USER_FULL_NAME to return a string 106/* Define USER_FULL_NAME to return a string
111 that is the user's full name. 107 that is the user's full name.
112 It can assume that the variable `pw' 108 It can assume that the variable `pw'
diff --git a/src/emacs.c b/src/emacs.c
index 9892ed29bab..932c3758a91 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1254,7 +1254,6 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1254 syms_of_sound (); 1254 syms_of_sound ();
1255#endif 1255#endif
1256 1256
1257 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
1258 syms_of_textprop (); 1257 syms_of_textprop ();
1259#ifdef VMS 1258#ifdef VMS
1260 syms_of_vmsproc (); 1259 syms_of_vmsproc ();
diff --git a/src/indent.c b/src/indent.c
index 54967684441..af5b689b5b5 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1635,14 +1635,11 @@ vmotion (from, vtarget, w)
1635 && indented_beyond_p (XFASTINT (prevline), 1635 && indented_beyond_p (XFASTINT (prevline),
1636 CHAR_TO_BYTE (XFASTINT (prevline)), 1636 CHAR_TO_BYTE (XFASTINT (prevline)),
1637 selective)) 1637 selective))
1638#ifdef USE_TEXT_PROPERTIES
1639 /* watch out for newlines with `invisible' property */ 1638 /* watch out for newlines with `invisible' property */
1640 || (propval = Fget_char_property (prevline, 1639 || (propval = Fget_char_property (prevline,
1641 Qinvisible, 1640 Qinvisible,
1642 text_prop_object), 1641 text_prop_object),
1643 TEXT_PROP_MEANS_INVISIBLE (propval)) 1642 TEXT_PROP_MEANS_INVISIBLE (propval))))
1644#endif
1645 ))
1646 XSETFASTINT (prevline, 1643 XSETFASTINT (prevline,
1647 find_next_newline_no_quit (XFASTINT (prevline) - 1, 1644 find_next_newline_no_quit (XFASTINT (prevline) - 1,
1648 -1)); 1645 -1));
@@ -1698,13 +1695,10 @@ vmotion (from, vtarget, w)
1698 && indented_beyond_p (XFASTINT (prevline), 1695 && indented_beyond_p (XFASTINT (prevline),
1699 CHAR_TO_BYTE (XFASTINT (prevline)), 1696 CHAR_TO_BYTE (XFASTINT (prevline)),
1700 selective)) 1697 selective))
1701#ifdef USE_TEXT_PROPERTIES
1702 /* watch out for newlines with `invisible' property */ 1698 /* watch out for newlines with `invisible' property */
1703 || (propval = Fget_char_property (prevline, Qinvisible, 1699 || (propval = Fget_char_property (prevline, Qinvisible,
1704 text_prop_object), 1700 text_prop_object),
1705 TEXT_PROP_MEANS_INVISIBLE (propval)) 1701 TEXT_PROP_MEANS_INVISIBLE (propval))))
1706#endif
1707 ))
1708 XSETFASTINT (prevline, 1702 XSETFASTINT (prevline,
1709 find_next_newline_no_quit (XFASTINT (prevline) - 1, 1703 find_next_newline_no_quit (XFASTINT (prevline) - 1,
1710 -1)); 1704 -1));
diff --git a/src/insdel.c b/src/insdel.c
index 6a4aa46d993..05c86616c1d 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -1065,7 +1065,6 @@ combine_bytes (pos, pos_byte, nbytes)
1065 ADJUST_CHAR_POS (ZV, ZV_BYTE); 1065 ADJUST_CHAR_POS (ZV, ZV_BYTE);
1066 1066
1067 if (BUF_INTERVALS (current_buffer) != 0) 1067 if (BUF_INTERVALS (current_buffer) != 0)
1068 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES. */
1069 offset_intervals (current_buffer, pos, - nbytes); 1068 offset_intervals (current_buffer, pos, - nbytes);
1070} 1069}
1071 1070
@@ -1185,15 +1184,12 @@ insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers)
1185 combined_before_bytes, combined_after_bytes, 1184 combined_before_bytes, combined_after_bytes,
1186 before_markers); 1185 before_markers);
1187 1186
1188#ifdef USE_TEXT_PROPERTIES
1189 if (BUF_INTERVALS (current_buffer) != 0) 1187 if (BUF_INTERVALS (current_buffer) != 0)
1190 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES. */
1191 offset_intervals (current_buffer, PT, nchars); 1188 offset_intervals (current_buffer, PT, nchars);
1192 1189
1193 if (!inherit && BUF_INTERVALS (current_buffer) != 0) 1190 if (!inherit && BUF_INTERVALS (current_buffer) != 0)
1194 Fset_text_properties (make_number (PT), make_number (PT + nchars), 1191 Fset_text_properties (make_number (PT), make_number (PT + nchars),
1195 Qnil, Qnil); 1192 Qnil, Qnil);
1196#endif
1197 1193
1198 { 1194 {
1199 int pos = PT, pos_byte = PT_BYTE; 1195 int pos = PT, pos_byte = PT_BYTE;
@@ -1371,7 +1367,6 @@ insert_from_string_1 (string, pos, pos_byte, nchars, nbytes,
1371 combined_before_bytes, combined_after_bytes, 1367 combined_before_bytes, combined_after_bytes,
1372 before_markers); 1368 before_markers);
1373 1369
1374 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
1375 offset_intervals (current_buffer, PT, nchars); 1370 offset_intervals (current_buffer, PT, nchars);
1376 1371
1377 intervals = XSTRING (string)->intervals; 1372 intervals = XSTRING (string)->intervals;
@@ -1580,10 +1575,8 @@ insert_from_buffer_1 (buf, from, nchars, inherit)
1580 PT_BYTE + outgoing_nbytes, 1575 PT_BYTE + outgoing_nbytes,
1581 combined_before_bytes, combined_after_bytes, 0); 1576 combined_before_bytes, combined_after_bytes, 0);
1582 1577
1583#ifdef USE_TEXT_PROPERTIES
1584 if (BUF_INTERVALS (current_buffer) != 0) 1578 if (BUF_INTERVALS (current_buffer) != 0)
1585 offset_intervals (current_buffer, PT, nchars); 1579 offset_intervals (current_buffer, PT, nchars);
1586#endif
1587 1580
1588 /* Get the intervals for the part of the string we are inserting-- 1581 /* Get the intervals for the part of the string we are inserting--
1589 not including the combined-before bytes. */ 1582 not including the combined-before bytes. */
@@ -1735,12 +1728,10 @@ adjust_after_replace (from, from_byte, prev_text, len, len_byte)
1735 adjust_overlays_for_insert (from, len - nchars_del); 1728 adjust_overlays_for_insert (from, len - nchars_del);
1736 else if (len < nchars_del) 1729 else if (len < nchars_del)
1737 adjust_overlays_for_delete (from, nchars_del - len); 1730 adjust_overlays_for_delete (from, nchars_del - len);
1738#ifdef USE_TEXT_PROPERTIES
1739 if (BUF_INTERVALS (current_buffer) != 0) 1731 if (BUF_INTERVALS (current_buffer) != 0)
1740 { 1732 {
1741 offset_intervals (current_buffer, from, len - nchars_del); 1733 offset_intervals (current_buffer, from, len - nchars_del);
1742 } 1734 }
1743#endif
1744 1735
1745 { 1736 {
1746 if (from < PT) 1737 if (from < PT)
@@ -2011,7 +2002,6 @@ replace_range (from, to, new, prepare, inherit, markers)
2011 from + inschars, from_byte + outgoing_insbytes, 2002 from + inschars, from_byte + outgoing_insbytes,
2012 combined_before_bytes, combined_after_bytes, 0); 2003 combined_before_bytes, combined_after_bytes, 0);
2013 2004
2014#ifdef USE_TEXT_PROPERTIES
2015 offset_intervals (current_buffer, from, inschars - nchars_del); 2005 offset_intervals (current_buffer, from, inschars - nchars_del);
2016 2006
2017 /* Get the intervals for the part of the string we are inserting-- 2007 /* Get the intervals for the part of the string we are inserting--
@@ -2020,7 +2010,6 @@ replace_range (from, to, new, prepare, inherit, markers)
2020 /* Insert those intervals. */ 2010 /* Insert those intervals. */
2021 graft_intervals_into_buffer (intervals, from, inschars, 2011 graft_intervals_into_buffer (intervals, from, inschars,
2022 current_buffer, inherit); 2012 current_buffer, inherit);
2023#endif
2024 2013
2025 /* Relocate point as if it were a marker. */ 2014 /* Relocate point as if it were a marker. */
2026 if (from < PT) 2015 if (from < PT)
@@ -2250,7 +2239,6 @@ del_range_2 (from, from_byte, to, to_byte)
2250 adjust_point (from - (PT < to ? PT : to), 2239 adjust_point (from - (PT < to ? PT : to),
2251 from_byte - (PT_BYTE < to_byte ? PT_BYTE : to_byte)); 2240 from_byte - (PT_BYTE < to_byte ? PT_BYTE : to_byte));
2252 2241
2253 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
2254 offset_intervals (current_buffer, from, - nchars_del); 2242 offset_intervals (current_buffer, from, - nchars_del);
2255 2243
2256 /* Adjust the overlay center as needed. This must be done after 2244 /* Adjust the overlay center as needed. This must be done after
@@ -2352,7 +2340,6 @@ prepare_to_modify_buffer (start, end, preserve_ptr)
2352 if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer) 2340 if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer)
2353 ++windows_or_buffers_changed; 2341 ++windows_or_buffers_changed;
2354 2342
2355 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
2356 if (BUF_INTERVALS (current_buffer) != 0) 2343 if (BUF_INTERVALS (current_buffer) != 0)
2357 { 2344 {
2358 if (preserve_ptr) 2345 if (preserve_ptr)
diff --git a/src/intervals.c b/src/intervals.c
index ef4f54be834..2699c71ee07 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -46,9 +46,6 @@ Boston, MA 02111-1307, USA. */
46#include "puresize.h" 46#include "puresize.h"
47#include "keyboard.h" 47#include "keyboard.h"
48 48
49/* The rest of the file is within this conditional. */
50#ifdef USE_TEXT_PROPERTIES
51
52/* Test for membership, allowing for t (actually any non-cons) to mean the 49/* Test for membership, allowing for t (actually any non-cons) to mean the
53 universal set. */ 50 universal set. */
54 51
@@ -2238,5 +2235,3 @@ set_intervals_multibyte (multi_flag)
2238 set_intervals_multibyte_1 (BUF_INTERVALS (current_buffer), multi_flag, 2235 set_intervals_multibyte_1 (BUF_INTERVALS (current_buffer), multi_flag,
2239 BEG, BEG_BYTE, Z, Z_BYTE); 2236 BEG, BEG_BYTE, Z, Z_BYTE);
2240} 2237}
2241
2242#endif /* USE_TEXT_PROPERTIES */
diff --git a/src/intervals.h b/src/intervals.h
index f1f65f2765b..b7e1667b5a6 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -18,7 +18,6 @@ along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */ 19Boston, MA 02111-1307, USA. */
20 20
21#ifdef USE_TEXT_PROPERTIES
22#ifndef NORMAL_FACE 21#ifndef NORMAL_FACE
23#include "dispextern.h" 22#include "dispextern.h"
24#endif 23#endif
@@ -269,20 +268,3 @@ int add_text_properties_from_list P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
269void extend_property_ranges P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); 268void extend_property_ranges P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
270 269
271extern void syms_of_textprop (); 270extern void syms_of_textprop ();
272
273#else /* don't support text properties */
274
275#define NULL_INTERVAL_P(i) 1
276#define INTERVAL_SIZE 0
277#define INTERVAL_PTR_SIZE 0
278
279#define copy_intervals_to_string(string,buffer,position,length)
280#define verify_interval_modification(buffer,start,end)
281#define insert_interval_copy(source,position,end,sink,at)
282#define graft_intervals_into_buffer(tree,position,bufferptr)
283#define offset_intervals(buffer,position,length)
284#define copy_intervals(tree,start,length)
285
286#define syms_of_textprop()
287
288#endif /* don't support text properties */
diff --git a/src/keyboard.c b/src/keyboard.c
index eb050c05c25..23e64714221 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5804,11 +5804,7 @@ menu_bar_items (old)
5804 nmaps = current_minor_maps (NULL, &tmaps); 5804 nmaps = current_minor_maps (NULL, &tmaps);
5805 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0])); 5805 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0]));
5806 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); 5806 bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
5807#ifdef USE_TEXT_PROPERTIES
5808 maps[nmaps++] = get_local_map (PT, current_buffer); 5807 maps[nmaps++] = get_local_map (PT, current_buffer);
5809#else
5810 maps[nmaps++] = current_buffer->keymap;
5811#endif
5812 } 5808 }
5813 maps[nmaps++] = current_global_map; 5809 maps[nmaps++] = current_global_map;
5814 } 5810 }
@@ -6460,11 +6456,7 @@ tool_bar_items (reuse, nitems)
6460 nmaps = current_minor_maps (NULL, &tmaps); 6456 nmaps = current_minor_maps (NULL, &tmaps);
6461 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0])); 6457 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0]));
6462 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); 6458 bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
6463#ifdef USE_TEXT_PROPERTIES
6464 maps[nmaps++] = get_local_map (PT, current_buffer); 6459 maps[nmaps++] = get_local_map (PT, current_buffer);
6465#else
6466 maps[nmaps++] = current_buffer->keymap;
6467#endif
6468 } 6460 }
6469 6461
6470 /* Add global keymap at the end. */ 6462 /* Add global keymap at the end. */
@@ -7441,11 +7433,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
7441 nmaps_allocated = nmaps + 2; 7433 nmaps_allocated = nmaps + 2;
7442 } 7434 }
7443 bcopy (maps, submaps, nmaps * sizeof (submaps[0])); 7435 bcopy (maps, submaps, nmaps * sizeof (submaps[0]));
7444#ifdef USE_TEXT_PROPERTIES
7445 submaps[nmaps++] = orig_local_map; 7436 submaps[nmaps++] = orig_local_map;
7446#else
7447 submaps[nmaps++] = current_buffer->keymap;
7448#endif
7449 } 7437 }
7450 submaps[nmaps++] = current_global_map; 7438 submaps[nmaps++] = current_global_map;
7451 } 7439 }
@@ -8737,11 +8725,7 @@ current_active_maps (maps_p)
8737 nmaps = current_minor_maps (NULL, &tmaps); 8725 nmaps = current_minor_maps (NULL, &tmaps);
8738 maps = (Lisp_Object *) xmalloc ((nmaps + 2) * sizeof (maps[0])); 8726 maps = (Lisp_Object *) xmalloc ((nmaps + 2) * sizeof (maps[0]));
8739 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); 8727 bcopy (tmaps, maps, nmaps * sizeof (maps[0]));
8740#ifdef USE_TEXT_PROPERTIES
8741 maps[nmaps++] = get_local_map (PT, current_buffer); 8728 maps[nmaps++] = get_local_map (PT, current_buffer);
8742#else
8743 maps[nmaps++] = current_buffer->keymap;
8744#endif
8745 } 8729 }
8746 maps[nmaps++] = current_global_map; 8730 maps[nmaps++] = current_global_map;
8747 8731
diff --git a/src/keymap.c b/src/keymap.c
index b4a1083ed50..cad670455a1 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2079,13 +2079,7 @@ indirect definition itself.")
2079 shadowed bindings. */ 2079 shadowed bindings. */
2080 keymap1 = keymap; 2080 keymap1 = keymap;
2081 if (! keymap_specified) 2081 if (! keymap_specified)
2082 { 2082 keymap1 = get_local_map (PT, current_buffer);
2083#ifdef USE_TEXT_PROPERTIES
2084 keymap1 = get_local_map (PT, current_buffer);
2085#else
2086 keymap1 = current_buffer->keymap;
2087#endif
2088 }
2089 2083
2090 if (!NILP (keymap1)) 2084 if (!NILP (keymap1))
2091 maps = nconc2 (Faccessible_keymaps (get_keymap (keymap1), Qnil), 2085 maps = nconc2 (Faccessible_keymaps (get_keymap (keymap1), Qnil),
diff --git a/src/lisp.h b/src/lisp.h
index 6e0a6db7138..a45e30f2d8e 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -458,7 +458,6 @@ extern Lisp_Object make_number ();
458#define XSETCHAR_TABLE(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_CHAR_TABLE)) 458#define XSETCHAR_TABLE(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_CHAR_TABLE))
459#define XSETBOOL_VECTOR(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_BOOL_VECTOR)) 459#define XSETBOOL_VECTOR(a, b) (XSETPSEUDOVECTOR (a, b, PVEC_BOOL_VECTOR))
460 460
461#ifdef USE_TEXT_PROPERTIES
462/* Basic data type for use of intervals. See the macros in intervals.h. */ 461/* Basic data type for use of intervals. See the macros in intervals.h. */
463 462
464struct interval 463struct interval
@@ -519,17 +518,6 @@ typedef struct interval *INTERVAL;
519 certain code. See, e.g., alloc.c. */ 518 certain code. See, e.g., alloc.c. */
520#define INITIALIZE_INTERVAL(ptr,val) ptr->intervals = val 519#define INITIALIZE_INTERVAL(ptr,val) ptr->intervals = val
521 520
522#else /* No text properties */
523
524/* If no intervals are used, make the above definitions go away. */
525
526#define CHECK_STRING_OR_BUFFER(x, i)
527
528#define INTERVAL
529#define DECLARE_INTERVALS
530#define INITIALIZE_INTERVAL(ptr,val)
531
532#endif /* USE_TEXT_PROPERTIES */
533 521
534/* In a cons, the markbit of the car is the gc mark bit */ 522/* In a cons, the markbit of the car is the gc mark bit */
535 523
diff --git a/src/lread.c b/src/lread.c
index e08b4ddcdca..2874e3bc0b9 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1693,7 +1693,6 @@ read1 (readcharfun, pch, first_in_list)
1693 return Fmake_byte_code (XVECTOR (tmp)->size, 1693 return Fmake_byte_code (XVECTOR (tmp)->size,
1694 XVECTOR (tmp)->contents); 1694 XVECTOR (tmp)->contents);
1695 } 1695 }
1696#ifdef USE_TEXT_PROPERTIES
1697 if (c == '(') 1696 if (c == '(')
1698 { 1697 {
1699 Lisp_Object tmp; 1698 Lisp_Object tmp;
@@ -1726,7 +1725,7 @@ read1 (readcharfun, pch, first_in_list)
1726 UNGCPRO; 1725 UNGCPRO;
1727 return tmp; 1726 return tmp;
1728 } 1727 }
1729#endif 1728
1730 /* #@NUMBER is used to skip NUMBER following characters. 1729 /* #@NUMBER is used to skip NUMBER following characters.
1731 That's used in .elc files to skip over doc strings 1730 That's used in .elc files to skip over doc strings
1732 and function definitions. */ 1731 and function definitions. */
@@ -2295,7 +2294,6 @@ substitute_object_recurse (object, placeholder, subtree)
2295 return subtree; 2294 return subtree;
2296 } 2295 }
2297 2296
2298#ifdef USE_TEXT_PROPERTIES
2299 case Lisp_String: 2297 case Lisp_String:
2300 { 2298 {
2301 /* Check for text properties in each interval. 2299 /* Check for text properties in each interval.
@@ -2309,7 +2307,6 @@ substitute_object_recurse (object, placeholder, subtree)
2309 2307
2310 return subtree; 2308 return subtree;
2311 } 2309 }
2312#endif /* defined USE_TEXT_PROPERTIES */
2313 2310
2314 /* Other types don't recurse any further. */ 2311 /* Other types don't recurse any further. */
2315 default: 2312 default:
diff --git a/src/print.c b/src/print.c
index fe6ec510399..46943bcb361 100644
--- a/src/print.c
+++ b/src/print.c
@@ -31,10 +31,7 @@ Boston, MA 02111-1307, USA. */
31#include "dispextern.h" 31#include "dispextern.h"
32#include "termchar.h" 32#include "termchar.h"
33#include "keyboard.h" 33#include "keyboard.h"
34
35#ifdef USE_TEXT_PROPERTIES
36#include "intervals.h" 34#include "intervals.h"
37#endif
38 35
39Lisp_Object Vstandard_output, Qstandard_output; 36Lisp_Object Vstandard_output, Qstandard_output;
40 37
@@ -669,9 +666,7 @@ buffer and calling the hook. It gets one argument, the buffer to display.")
669 666
670static void print (); 667static void print ();
671static void print_preprocess (); 668static void print_preprocess ();
672#ifdef USE_TEXT_PROPERTIES
673static void print_preprocess_string (); 669static void print_preprocess_string ();
674#endif /* USE_TEXT_PROPERTIES */
675static void print_object (); 670static void print_object ();
676 671
677DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0, 672DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0,
@@ -1167,11 +1162,9 @@ print_preprocess (obj)
1167 switch (XGCTYPE (obj)) 1162 switch (XGCTYPE (obj))
1168 { 1163 {
1169 case Lisp_String: 1164 case Lisp_String:
1170#ifdef USE_TEXT_PROPERTIES
1171 /* A string may have text properties, which can be circular. */ 1165 /* A string may have text properties, which can be circular. */
1172 traverse_intervals (XSTRING (obj)->intervals, 0, 0, 1166 traverse_intervals (XSTRING (obj)->intervals, 0, 0,
1173 print_preprocess_string, Qnil); 1167 print_preprocess_string, Qnil);
1174#endif /* USE_TEXT_PROPERTIES */
1175 break; 1168 break;
1176 1169
1177 case Lisp_Cons: 1170 case Lisp_Cons:
@@ -1187,7 +1180,6 @@ print_preprocess (obj)
1187 } 1180 }
1188} 1181}
1189 1182
1190#ifdef USE_TEXT_PROPERTIES
1191static void 1183static void
1192print_preprocess_string (interval, arg) 1184print_preprocess_string (interval, arg)
1193 INTERVAL interval; 1185 INTERVAL interval;
@@ -1195,7 +1187,6 @@ print_preprocess_string (interval, arg)
1195{ 1187{
1196 print_preprocess (interval->plist); 1188 print_preprocess (interval->plist);
1197} 1189}
1198#endif /* USE_TEXT_PROPERTIES */
1199 1190
1200static void 1191static void
1201print_object (obj, printcharfun, escapeflag) 1192print_object (obj, printcharfun, escapeflag)
@@ -1304,13 +1295,11 @@ print_object (obj, printcharfun, escapeflag)
1304 1295
1305 GCPRO1 (obj); 1296 GCPRO1 (obj);
1306 1297
1307#ifdef USE_TEXT_PROPERTIES
1308 if (!NULL_INTERVAL_P (XSTRING (obj)->intervals)) 1298 if (!NULL_INTERVAL_P (XSTRING (obj)->intervals))
1309 { 1299 {
1310 PRINTCHAR ('#'); 1300 PRINTCHAR ('#');
1311 PRINTCHAR ('('); 1301 PRINTCHAR ('(');
1312 } 1302 }
1313#endif
1314 1303
1315 PRINTCHAR ('\"'); 1304 PRINTCHAR ('\"');
1316 str = XSTRING (obj)->data; 1305 str = XSTRING (obj)->data;
@@ -1388,14 +1377,12 @@ print_object (obj, printcharfun, escapeflag)
1388 } 1377 }
1389 PRINTCHAR ('\"'); 1378 PRINTCHAR ('\"');
1390 1379
1391#ifdef USE_TEXT_PROPERTIES
1392 if (!NULL_INTERVAL_P (XSTRING (obj)->intervals)) 1380 if (!NULL_INTERVAL_P (XSTRING (obj)->intervals))
1393 { 1381 {
1394 traverse_intervals (XSTRING (obj)->intervals, 1382 traverse_intervals (XSTRING (obj)->intervals,
1395 0, 0, print_interval, printcharfun); 1383 0, 0, print_interval, printcharfun);
1396 PRINTCHAR (')'); 1384 PRINTCHAR (')');
1397 } 1385 }
1398#endif
1399 1386
1400 UNGCPRO; 1387 UNGCPRO;
1401 } 1388 }
@@ -1864,7 +1851,6 @@ print_object (obj, printcharfun, escapeflag)
1864 print_depth--; 1851 print_depth--;
1865} 1852}
1866 1853
1867#ifdef USE_TEXT_PROPERTIES
1868 1854
1869/* Print a description of INTERVAL using PRINTCHARFUN. 1855/* Print a description of INTERVAL using PRINTCHARFUN.
1870 This is part of printing a string that has text properties. */ 1856 This is part of printing a string that has text properties. */
@@ -1883,7 +1869,6 @@ print_interval (interval, printcharfun)
1883 print_object (interval->plist, printcharfun, 1); 1869 print_object (interval->plist, printcharfun, 1);
1884} 1870}
1885 1871
1886#endif /* USE_TEXT_PROPERTIES */
1887 1872
1888void 1873void
1889syms_of_print () 1874syms_of_print ()
diff --git a/src/textprop.c b/src/textprop.c
index 9e86594cad7..e7091b144dc 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -46,8 +46,6 @@ Boston, MA 02111-1307, USA. */
46 necessary for the system to remain consistent. This requirement 46 necessary for the system to remain consistent. This requirement
47 is enforced by the subrs installing properties onto the intervals. */ 47 is enforced by the subrs installing properties onto the intervals. */
48 48
49/* The rest of the file is within this conditional */
50#ifdef USE_TEXT_PROPERTIES
51 49
52/* Types of hooks. */ 50/* Types of hooks. */
53Lisp_Object Qmouse_left; 51Lisp_Object Qmouse_left;
@@ -1882,8 +1880,3 @@ This also inhibits the use of the `intangible' text property.");
1882/* defsubr (&Scopy_text_properties); */ 1880/* defsubr (&Scopy_text_properties); */
1883} 1881}
1884 1882
1885#else
1886
1887lose -- this shouldn't be compiled if USE_TEXT_PROPERTIES isn't defined
1888
1889#endif /* USE_TEXT_PROPERTIES */
diff --git a/src/undo.c b/src/undo.c
index 51eaa5a2d8d..96e3eeb687c 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -448,7 +448,6 @@ Return what remains of the list.")
448#endif /* CLASH_DETECTION */ 448#endif /* CLASH_DETECTION */
449 Fset_buffer_modified_p (Qnil); 449 Fset_buffer_modified_p (Qnil);
450 } 450 }
451#ifdef USE_TEXT_PROPERTIES
452 else if (EQ (car, Qnil)) 451 else if (EQ (car, Qnil))
453 { 452 {
454 /* Element (nil prop val beg . end) is property change. */ 453 /* Element (nil prop val beg . end) is property change. */
@@ -463,7 +462,6 @@ Return what remains of the list.")
463 462
464 Fput_text_property (beg, end, prop, val, Qnil); 463 Fput_text_property (beg, end, prop, val, Qnil);
465 } 464 }
466#endif /* USE_TEXT_PROPERTIES */
467 else if (INTEGERP (car) && INTEGERP (cdr)) 465 else if (INTEGERP (car) && INTEGERP (cdr))
468 { 466 {
469 /* Element (BEG . END) means range was inserted. */ 467 /* Element (BEG . END) means range was inserted. */