1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
Commit graph

70 commits

Author SHA1 Message Date
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
Richard M. Stallman
33d7d0df73 (syms_of_textprop): Doc fix.
(Fset_text_properties): Don't let validate_interval_range
increment START and END twice.
1994-09-24 07:24:30 +00:00
Richard M. Stallman
59a486aba0 (Fget_char_property): Pass new arg to overlays_at.
(NULL): Define if not defined.
1994-09-21 06:25:26 +00:00
Karl Heuer
64a49ca7b1 (validate_interval_range, property_value, Fget_char_property,
Fnext_property_change, Fnext_single_property_change,
Fprevious_property_change, Fprevious_single_property_change): Fix Lisp_Object
vs. int problems.
1994-09-19 00:18:27 +00:00
Richard M. Stallman
33ca35042a (property_value): Declare args plist, prop. 1994-09-17 05:46:25 +00:00
Richard M. Stallman
f2495b93d4 (syms_of_textprop): Delete Lisp var interval-balance-threshold. 1994-09-15 21:24:37 +00:00
Richard M. Stallman
facc570e2b (Fset_text_properties):
Return early if buffer has no intervals and PROPS is nil.
1994-09-02 23:27:04 +00:00
Richard M. Stallman
46bb7c2b49 (Fget_text_property): Simplify using Ftext_properties_at. 1994-07-17 23:53:10 +00:00
Karl Heuer
6873cfa393 (Fprevious_single_property_change): Check for null interval after correcting
for edge effects.
1994-06-03 04:08:32 +00:00
Richard M. Stallman
eb769fd77c (syms_of_textprop): Set up Lisp fn get-char-property. 1994-05-20 05:29:50 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Karl Heuer
1387d54e38 (F*_property_change): Typecheck limit argument. 1994-04-25 20:30:56 +00:00
Karl Heuer
46b4e74145 (syms_of_textprop): Initialize Qintangible. 1994-04-08 07:10:05 +00:00
Karl Heuer
75dddf59e8 (Fget_char_property): Doc fix. 1994-04-05 06:10:01 +00:00
Karl Heuer
3814ccf5ee (add_properties, remove_properties): Use assignment, not initialization. 1994-03-25 00:40:44 +00:00
Karl Heuer
99830d6315 (Fget_char_property): Fix docstring. 1994-02-24 19:24:37 +00:00
Karl Heuer
f5957179cf (Fget_char_property): New function. 1994-02-24 19:18:32 +00:00
Richard M. Stallman
364a6ae392 Doc fix. 1994-01-20 19:58:44 +00:00
Richard M. Stallman
5abb9556a4 Doc fixes. 1994-01-20 19:56:36 +00:00
Richard M. Stallman
53b7feeccb (Fprevious_property_change): Move back at least 1 char.
(Fprevious_single_property_change): Likewise.
1994-01-20 19:54:47 +00:00
Richard M. Stallman
916a311917 (Ftext_property_not_all): For trivial yes, return start, not Qt. 1993-11-22 19:47:26 +00:00
Richard M. Stallman
111b637db6 (Ftext_property_not_all): Swap t and nil values in
the case where there are no intervals.
(Fprevious_single_property_change, Fprevious_property_change)
Extra arg LIMIT.  Return value was off by 1.
(Fnext_single_property_change, Fnext_property_change):
Extra arg LIMIT.
(Fnext_single_property_change): Require at least 2 args.
1993-11-20 09:44:27 +00:00
Richard M. Stallman
da625a3c9b (Fnext_single_property_change): Fix missing \n\. 1993-11-15 06:41:45 +00:00
Richard M. Stallman
93fda17869 (Fprevious_single_property_change): Fix missing \n\. 1993-11-12 20:38:30 +00:00
Brian Fox
4d780c768d (validate_plist): Add argument declaration for `list'. 1993-09-28 09:52:13 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Roland McGrath
252e4dba33 (F{next,previous}_single_property_change): Doc fix. 1993-08-19 20:18:46 +00:00
Richard M. Stallman
e050ef745e (property_change_between_p): Test NULL_INTERVAL_P
in loop, before looking at next->position.
1993-08-14 04:36:08 +00:00
Richard M. Stallman
19e1c4260a (Qfront_sticky, Qrear_nonsticky): New variables.
(syms_of_textprop): Set them up.

(Qhidden): New variable.
(syms_of_textprop): Set up Qhidden.

(property_change_between_p): New function.
1993-07-31 21:54:10 +00:00
Richard M. Stallman
688a5a0f3e (syms_of_textprop): Set up Lisp var Vinhibit_point_motion_hooks. 1993-07-23 07:58:22 +00:00
Richard M. Stallman
1110dff341 (Qmodification_hooks, Qinsert_in_front_hooks)
(Qinsert_behind_hooks): Moved to buffer.c.
(syms_of_textprop): Lisp vars setup deleted.
1993-07-21 22:33:37 +00:00
Jim Blandy
ad9c19400f * intervals.c (split_interval_left, split_interval_right): Change
OFFSET argument of these functions to be origin 0, not origin 1.
	This is what all the callers currently want.
	* intervals.c, textprop.c: All callers changed.

	* textprop.c (Ftext_property_not_all): Renamed from
	Ftext_property_all, and changed sense of return value, so that it
	returns useful information if not all characters have properties
	EQ to value.  Now all the existential and universal questions can
	be asked.

	* textprop.c (syms_of_textprop): Don't forget defsubr for
	Stext_property_all.

	* textprop.c (Ftext_property_any, Ftext_property_all): Use EQ to
	compare property values, not Fequal.

	* textprop.c (Ftext_property_any, Ftext_property_all): New
	functions, from David Gillespie.
	* intervals.h (Ftext_property_any, Ftext_property_all): Declare them.
1993-07-18 06:28:12 +00:00
Richard M. Stallman
f7a9275a0e (Qinsert_in_front_hooks, Qinsert_behind_hooks): New vars.
(syms_of_textprop): Set them up.

(set_properties): Call modify_region.
(remove_properties): Call modify_region before record_property_change.
(add_properties): Likewise.
1993-07-13 21:04:07 +00:00
Jim Blandy
15e4954b14 * textprop.c (copy_text_properties): Pass a copy of POS to
validate_interval_range; that function increments its arguments,
	which isn't what we want.

	* intervals.c (find_interval): Consistently treat POSITION as an
	actual buffer position, i.e. origin 1.  The old code seemed
	undecided on this point.  Treat the end of the buffer as being
	part of the rightmost interval.
	(adjust_intervals_for_insertion): Consistently treat POSITION as
	origin 1.
	(interval_deletion_adjustment): The exception: FROM should be
	origin zero here.  Consistently treat it as such.  Simplify code
	which shrinks and possibly deletes intervals.
	(adjust_intervals_for_deletion): Treat start as origin 1; our
	caller does.
	(set_point): Use buffer positions throughout, not a mix of buffer
	posns and origin zero posns.
	(get_local_map): Remove special case for POSITION at end of buffer;
	find_interval handles that case correctly.
	(verify_interval_modification): Remove special case for START at
	end of buffer.
	* textprop.c (validate_interval_range): End-of-buffer/string
	positions no longer need special handling.

	* textprop.c (copy_text_properties): New function, from David
	Gillespie.
	* intervals.h: Declare copy_text_properties.
	* fns.c: #include "intervals.h".
	(Fsubstring): Copy text properties to result string.
	(concat): Copy text properties to result string.
	* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
1993-07-06 14:55:20 +00:00
Jim Blandy
734c51b2dd Compare the values of text properties using EQ, not Fequal.
* intervals.c (intervals_equal): Call EQ, not Fequal.
	* textprop.c (interval_has_all_properties, add_properties): Same.
1993-07-06 02:23:22 +00:00
Jim Blandy
b1e94638f6 * textprop.c (validate_interval_range): Don't increment both
*begin and *end if they point to the same thing.
	(validate_plist): Call QUIT while scanning LIST.
1993-07-05 08:13:50 +00:00
Jim Blandy
d7b4e137ca * textprop.c (set_properties): Add undo records to remove entirely
new properties.  Only record old property values for those
	properties whose values have changed.

	* textprop.c (set_properties): Don't try to make undo records if
	OBJECT is a string.
1993-07-02 22:50:40 +00:00
Richard M. Stallman
05d5b93e40 (Fremove_text_properties, Fadd_text_properties):
Really do next_interval when skipping the first interval.
1993-06-21 19:37:49 +00:00