1. 28 Sep, 1993 1 commit
  2. 10 Sep, 1993 1 commit
  3. 19 Aug, 1993 1 commit
  4. 14 Aug, 1993 1 commit
  5. 31 Jul, 1993 1 commit
  6. 23 Jul, 1993 1 commit
  7. 21 Jul, 1993 1 commit
  8. 18 Jul, 1993 1 commit
    • Jim Blandy's avatar
      * intervals.c (split_interval_left, split_interval_right): Change · ad9c1940
      Jim Blandy authored
      	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.
      ad9c1940
  9. 13 Jul, 1993 1 commit
  10. 06 Jul, 1993 2 commits
    • Jim Blandy's avatar
      * textprop.c (copy_text_properties): Pass a copy of POS to · 15e4954b
      Jim Blandy authored
      	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.
      15e4954b
    • Jim Blandy's avatar
      Compare the values of text properties using EQ, not Fequal. · 734c51b2
      Jim Blandy authored
      	* intervals.c (intervals_equal): Call EQ, not Fequal.
      	* textprop.c (interval_has_all_properties, add_properties): Same.
      734c51b2
  11. 05 Jul, 1993 1 commit
  12. 02 Jul, 1993 1 commit
  13. 21 Jun, 1993 1 commit
  14. 12 Jun, 1993 1 commit
  15. 11 Jun, 1993 1 commit
  16. 09 Jun, 1993 1 commit
  17. 07 Jun, 1993 1 commit
    • Richard M. Stallman's avatar
      (Fadd_text_properties): Don't treat the initial · daa5e28f
      Richard M. Stallman authored
      interval specially, aside from splitting off the part starting
      where we want to start changing things.
      (Fremove_text_properties): Likewise.
      For ending interval, split it left as in Fadd_text_properties.
      (Fset_text_properties): Don't set starting interval if it goes
      past END.  Instead, split it left and set the left part.
      daa5e28f
  18. 14 May, 1993 1 commit
    • Jim Blandy's avatar
      The text property routines can now modify buffers other · 04a759c8
      Jim Blandy authored
      	than the current one.
      	* insdel.c (modify_region): New argument BUFFER.  Select that
      	buffer while we prepare for the modification, and switch back when
      	we're done.
      	* textprop.c (add_properties, remove_properties): Pass
      	the buffer being modified as the first argument to modify_region.
      	* editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the
      	current_buffer as the first argument to modify_region.
      	* casefiddle.c (casify_region): Same.
      04a759c8
  19. 13 May, 1993 1 commit
  20. 11 Mar, 1993 1 commit
  21. 07 Mar, 1993 2 commits
  22. 01 Mar, 1993 1 commit
    • Richard M. Stallman's avatar
      (Fadd_text_properties, Fremove_text_properties): · d4b530ad
      Richard M. Stallman authored
      Add len>0 as condition for main loop.
      Abort if reach a null interval.
      (Fset_text_properties): Abort if reach a null interval.
      (Ftext_properties_at, Fget_text_property):
      Return nil if POS is end of OBJECT.
      (add_properties): Use NILP to test result of Fequal.
      No longer inline.
      (remove_properties): No longer inline.
      (set_properties): Total rewrite as function.
      (validate_interval_range): Don't alter *begin at end of buffer.
      But do search for a position just before the end.
      Return null for an empty string.
      
      (validate_interval_range): Allow 0 as position in string.
      Add 1 to specified string positions.
      (Fprevious_single_property_change): Subtract 1 if object is string.
      (Fnext_single_property_change): Likewise.
      (Fprevious_property_change, Fnext_property_change): Likewise.
      
      (remove_properties): Call modify_buffer.
      (add_properties): Likewise.
      
      (Fadd_text_properties): Pass new arg to add_properties.
      (Fremove_text_properties): Likewise.
      (add_properties, remove_properties): New arg OBJECT.  Record undo info.
      (Fput_text_property): New function.
      d4b530ad
  23. 22 Feb, 1993 1 commit
  24. 13 Feb, 1993 1 commit
  25. 24 Dec, 1992 1 commit
  26. 02 Oct, 1992 2 commits
  27. 01 Oct, 1992 1 commit
  28. 30 Sep, 1992 1 commit
  29. 24 Sep, 1992 1 commit
  30. 30 Aug, 1992 1 commit
  31. 21 Aug, 1992 1 commit