Ken Raeburn
943afcc71e
(validate_interval_range, interval_of): Use string macros instead of
...
Lisp_String fields.
2002-07-16 17:37:31 +00:00
Ken Raeburn
9056febe2c
* textprop.c (set_text_properties): Use STRING_SET_INTERVALS.
2002-07-15 06:57:04 +00:00
Ken Raeburn
d5db40779d
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
...
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
aed1337830
Use macro SPECPDL_INDEX.
2002-07-11 14:18:02 +00:00
Colin Walters
49d110a8aa
(Vchar_property_alias_alist): New variable.
...
(syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
2002-06-08 20:24:35 +00:00
Stefan Monnier
b079118d83
(remove_properties): Don't use XCAR without CONSP.
2002-04-29 19:29:58 +00:00
Kim F. Storm
f25d60d646
(remove_properties): Fixed trap for malformed plist.
2002-04-22 17:59:02 +00:00
Richard M. Stallman
11713b6daf
(remove_properties): New arg LIST allows scanning
...
either a list or a plist.
(interval_has_some_properties_list): New function, like
interval_has_some_properties using list instead of plist.
All callers changed.
(Fremove_list_of_text_properties): New function.
(syms_of_textprop): Defsubr it.
2002-04-19 00:14:14 +00:00
Miles Bader
e138dfdc9d
(text_property_stickiness): Function moved here from `editfns.c'.
2002-03-14 08:10:35 +00:00
Stefan Monnier
3a232704c3
(Fnext_property_change, Fnext_single_property_change)
...
(Fprevious_property_change, Fprevious_single_property_change):
Stay within the narrowed-buffer boundaries.
2002-01-25 22:42:13 +00:00
Richard M. Stallman
49f68fd22b
(set_text_properties_1): Allow args in either order.
...
Do nothing if range is empty.
2001-11-26 20:10:04 +00:00
Stefan Monnier
ce768453c1
(set_text_properties_1): Clearly mark that the interval should not be empty.
2001-11-26 02:19:38 +00:00
Pavel Janík
28ff42939f
(Fset_text_properties): Remove unused variables `unchanged',
...
`prev_changed', `s' and `len'.
2001-11-23 08:11:35 +00:00
Richard M. Stallman
78ff4175b9
(set_text_properties_1): New subroutine, broken out of set_text_properties.
...
(set_text_properties): Use set_text_properties_1.
2001-11-11 20:03:24 +00:00
Pavel Janík
b782650360
Update usage of CHECK_ macros (remove unused second argument).
2001-11-02 20:46:55 +00:00
Richard M. Stallman
8faef085c5
(Fget_char_property): Doc fix.
2001-11-02 07:12:33 +00:00
Pavel Janík
8c1a1077c0
Change doc-string comments to new style' [w/doc:' keyword].
2001-10-21 12:13:46 +00:00
Ken Raeburn
f3fbd15535
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
...
with lisp system changes.
2001-10-16 09:09:51 +00:00
Miles Bader
6d7a9ba198
(Fnext_char_property_change)
...
(Fprevious_char_property_change): Remove reference to non-existant
argument OBJECT from doc-string.
2001-10-02 01:53:10 +00:00
Gerd Moellmann
0ba7995bfe
(verify_interval_modification): Fix last change.
2001-09-11 12:45:24 +00:00
Gerd Moellmann
d4881c6acb
(verify_interval_modification): Don't run
...
modification-hooks if inhibit_modification_hooks.
2001-09-11 12:25:06 +00:00
Miles Bader
f621045e3e
(Fprevious_single_char_property_change)
...
(Fnext_single_char_property_change): Doc fixes.
2001-08-27 18:12:46 +00:00
Eli Zaretskii
25078b542c
(Fset_text_properties): Doc fix.
2001-02-15 12:36:44 +00:00
Dave Love
a63643cd04
(Fset_text_properties): Fix newline in doc string.
2001-01-31 01:00:17 +00:00
Eli Zaretskii
2b5f21c23c
(Fset_text_properties): Doc fix.
2001-01-29 16:49:57 +00:00
Gerd Moellmann
7cb6689911
(text_read_only): New function.
...
(verify_interval_modification): Use it instead of signaling
`text-read-only'. This makes it easier to catch this error
with a breakpoint.:
2000-11-28 11:49:05 +00:00
Miles Bader
8d41abc445
(get_char_property_and_overlay): New function.
...
(Fget_char_property): Use it.
2000-10-25 05:14:01 +00:00
Miles Bader
ecfb39ee8e
(Fget_char_property): Update call to overlays_at.
2000-08-08 23:53:32 +00:00
Ken Raeburn
d4225c0814
(Fprevious_single_char_property_change): Don't do arithmetic directly on lisp
...
objects.
2000-08-08 14:39:19 +00:00
Miles Bader
ce6b02e050
(Fprevious_single_char_property_change):
...
The initial property value should be from the position preceding
POSITION, not following it.
2000-07-22 13:37:47 +00:00
Miles Bader
b7e047fb96
(Fnext_single_char_property_change):
...
Made a subr (was `next_single_char_property_change').
Do more error checking, and cleanup limit behavior.
(Fprevious_single_char_property_change): New function.
(syms_of_textprop): Initialize new subrs.
2000-07-15 14:59:26 +00:00
Dave Love
bf9e8804fc
Revert last change -- duplicated.
2000-05-31 21:17:57 +00:00
Dave Love
b332a42260
(Qkeymap): New variable.
...
(syms_of_textprop): Intern it.
2000-05-29 11:37:57 +00:00
Kenichi Handa
abc2f676d6
(Vtext_property_default_nonsticky): New variable
...
(syms_of_textprop): Declare it as a Lisp variable.
1999-12-15 00:21:42 +00:00
Gerd Moellmann
0087ade67a
(set_text_properties): New function. Like
...
Fset_text_properties, but with additional parameter
SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
changes.
(Fset_text_properties): Use it.
1999-11-26 12:07:31 +00:00
Gerd Moellmann
339ee9797d
Remove USE_TEXT_PROPERTIES.
1999-11-11 11:45:06 +00:00
Gerd Moellmann
e28c666e3c
(verify_interval_modification): Signal text-read-only
...
instead of calling error.
1999-11-01 14:14:52 +00:00
Gerd Moellmann
0b0737d1c7
(next_single_char_property_change): New.
1999-09-26 10:53:22 +00:00
Gerd Moellmann
695f302f5c
(Fset_text_properties): Remove unused variables.
...
(text_property_list, verify_interval_modification,
interval_has_all_properties): Ditto.
1999-09-20 00:34:45 +00:00
Ken Raeburn
70949dac51
Use XCAR, XCDR, XFLOAT_DATA instead of explicit member access.
1999-09-12 05:07:01 +00:00
Gerd Moellmann
9dd7eec678
(text_property_list): New.
...
(add_text_properties_from_list): New.
(extend_property_ranges): New.
(validate_interval_range): Make it externally
visible.
1999-07-21 21:43:52 +00:00
Richard M. Stallman
69bb837eb5
(Qmouse_face): Variable definition moved here.
...
(syms_of_textprop): Initialize it.
1998-11-18 01:38:14 +00:00
Karl Heuer
ad077db084
Handle the new convention that `position' values
...
in a string's intervals start from zero.
(validate_interval_range, interval_of, Fnext_property_change)
(property_change_between_p, Fnext_single_property_change)
(Fprevious_property_change, Fprevious_single_property_change):
(Ftext_property_any, Ftext_property_not_all): Implement that.
Undo previous change.
1998-06-03 14:45:03 +00:00
Karl Heuer
17cea80917
(Fnext_property_change): Properly offset interval
...
position for string when comparing with LIMIT.
(property_change_between_p): Likewise.
(Fnext_single_property_change, Fprevious_property_change): Likewise.
(Fprevious_single_property_change): Likewise.
1998-05-29 22:26:22 +00:00
Karl Heuer
d0cb872a04
(interval_of): Handle Qt.
1998-02-22 01:03:49 +00:00
Richard M. Stallman
96f9054416
(Ftext_properties_at): Doc fix.
1997-12-26 22:51:41 +00:00
Richard M. Stallman
c7ef8e24f3
(interval_of): Convert args_out_of_range arguments to Lisp_Integer.
1997-07-12 06:37:25 +00:00
Richard M. Stallman
2e34157cd9
Fix bugs with inappropriate mixing of Lisp_Object with int.
1997-07-04 20:44:52 +00:00
Richard M. Stallman
cdf3e5a2c7
Style of comments corrected.
...
(interval_of): New function.
1997-04-15 04:58:34 +00:00
Richard M. Stallman
fcab51aabb
(Fnext_char_property_change): New function.
...
(Fprevious_char_property_change): New function.
(syms_of_textprop): defsubr them.
1996-12-15 04:57:31 +00:00