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
Richard M. Stallman
2a631db1ae
(Fset_text_properties, Fadd_text_properties)
...
(Fremove_text_properties): Call modify_region and signal_after_change
only for buffers, not for strings.
1996-09-26 03:48:10 +00:00
Richard M. Stallman
26c76ace8d
(set_properties, add_properties, remove_properties):
...
Don't call modify_region or signal_after_change here.
(Fset_text_properties, Fadd_text_properties, Fremove_text_properties):
Call them here when appropriate.
1996-09-25 08:01:52 +00:00
Richard M. Stallman
85c66a3ec9
(set_properties, add_properties, remove_properties):
...
Call modify_region with ints.
1996-09-04 03:35:53 +00:00
Richard M. Stallman
64db13070c
(Fadd_text_properties): Don't return without ungcpro.
1996-02-10 08:58:49 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Erik Naggum
1f5e848a11
(Ftext_properties_at, Fget_text_property, Fget_char_property,
...
Fnext_property_change, Fnext_single_property_change,
Fprevious_property_change, Fprevious_single_property_change,
Fadd_text_properties, Fput_text_property, Fset_text_properties,
Fremove_text_properties, Ftext_property_any, Ftext_property_not_all):
Harmonize arguments with documentation.
1996-01-09 00:34:01 +00:00
Karl Heuer
8e6208c5d2
Comment fixes.
1996-01-05 10:03:17 +00:00
Karl Heuer
a03f91ada2
(add_properties, remove_properties, set_properties):
...
Call signal_after_change.
1995-12-21 17:14:30 +00:00
Richard M. Stallman
6f23288124
(Fset_text_properties): Call set_properties
...
even if we also merge an interval.
1995-11-18 16:22:42 +00:00
Richard M. Stallman
44214c1bc8
(Fnext_single_property_change): Rearrange handling of
...
limit = t; don't return t.
1995-10-21 23:15:21 +00:00
Richard M. Stallman
318d2fa869
(call_mod_hooks): Moved from intevals.c
...
(verify_interval_modification): Moved from intervals.c.
(interval_insert_behind_hooks, interval_insert_in_front_hooks): New variables.
(report_interval_modification): New function.
1995-09-12 17:37:32 +00:00
Richard M. Stallman
cbc55f5569
(Fget_char_property): If OBJECT is non-current buffer,
...
use it properly for overlays_at.
1995-07-22 16:11:48 +00:00
Boris Goldowsky
ad1b2f20ac
(Vdefault_text_properties): name changed from Vdefault_properties.
1995-03-27 16:04:57 +00:00
Karl Heuer
c7b6dfa6df
(Fnext_property_change): Fix previous change.
1995-03-24 22:46:42 +00:00
Richard M. Stallman
041aa96f12
(Fnext_property_change): Handle LIMIT = t.
1995-03-11 22:03:27 +00:00
Boris Goldowsky
c7dd82a34d
(Vdefault_properties): New vbl.
1995-03-06 15:43:56 +00:00
Karl Heuer
2084fddb6d
(Ftext_property_any): Handle the trivial case specially.
1995-01-20 01:47:45 +00:00
Richard M. Stallman
866bf24677
(validate_interval_range): Use BUF_INTERVALS.
1995-01-02 21:32:10 +00:00
Richard M. Stallman
c98da21442
(add_properties): Add gcpro's.
...
(Fadd_text_properties, copy_text_properties): Likewise.
1994-12-14 14:23:04 +00:00
Karl Heuer
8c8c10fe07
(PLIST_ELT_P): Avoid assignments in arguments to a type-test macro.
1994-11-15 22:54:15 +00:00
Richard M. Stallman
919fa9cbf0
(Fset_text_properties): Special case for getting
...
rid of all properties of a string.
1994-10-15 21:29:19 +00:00
Karl Heuer
330e7312a3
(validate_interval_range): Don't use XFASTINT as an lvalue.
1994-10-04 17:19:36 +00:00
Karl Heuer
e9c4fbcd66
(Fnext_property_change, property_change_between_p,
...
Fnext_single_property_change, Fprevious_property_change,
Fprevious_single_property_change, copy_text_properties): Don't use XFASTINT as
an lvalue.
1994-10-04 16:14:59 +00:00
Karl Heuer
c8a4fc3d27
(Ftext_properties_at, Fget_char_property, Fnext_property_change,
...
property_change_between_p, Fnext_single_property_change,
Fprevious_property_change, Fprevious_single_property_change,
Fadd_text_properties, Fset_text_properties, Fremove_text_properties,
Ftext_property_any, Ftext_property_not_all, Ferase_text_properties): Use new
accessor macros instead of calling XSET directly.
1994-10-04 12:27:29 +00:00
Karl Heuer
5d2fa46f6a
(validate_interval_range, add_properties, remove_properties,
...
Fnext_property_change, Fnext_single_property_change,
Fprevious_property_change, Fprevious_single_property_change,
Ftext_property_any, Ftext_property_not_all): Use type test macros.
1994-09-27 01:16:02 +00:00