summaryrefslogtreecommitdiff
path: root/src/textprop.c
Commit message (Collapse)AuthorAgeFilesLines
* (Fget_char_property): If OBJECT is non-current buffer,Richard M. Stallman1995-07-221-0/+5
| | | | use it properly for overlays_at.
* (Vdefault_text_properties): name changed from Vdefault_properties.Boris Goldowsky1995-03-271-5/+5
|
* (Fnext_property_change): Fix previous change.Karl Heuer1995-03-241-1/+6
|
* (Fnext_property_change): Handle LIMIT = t.Richard M. Stallman1995-03-111-1/+9
|
* (Vdefault_properties): New vbl.Boris Goldowsky1995-03-061-0/+7
|
* (Ftext_property_any): Handle the trivial case specially.Karl Heuer1995-01-201-1/+3
|
* (validate_interval_range): Use BUF_INTERVALS.Richard M. Stallman1995-01-021-1/+1
|
* (add_properties): Add gcpro's.Richard M. Stallman1994-12-141-8/+40
| | | | (Fadd_text_properties, copy_text_properties): Likewise.
* (PLIST_ELT_P): Avoid assignments in arguments to a type-test macro.Karl Heuer1994-11-151-1/+1
|
* (Fset_text_properties): Special case for gettingRichard M. Stallman1994-10-151-0/+11
| | | | rid of all properties of a string.
* (validate_interval_range): Don't use XFASTINT as an lvalue.Karl Heuer1994-10-041-2/+2
|
* (Fnext_property_change, property_change_between_p,Karl Heuer1994-10-041-8/+8
| | | | | | Fnext_single_property_change, Fprevious_property_change, Fprevious_single_property_change, copy_text_properties): Don't use XFASTINT as an lvalue.
* (Ftext_properties_at, Fget_char_property, Fnext_property_change,Karl Heuer1994-10-041-13/+13
| | | | | | | | 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.
* (validate_interval_range, add_properties, remove_properties,Karl Heuer1994-09-271-11/+11
| | | | | | 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.
* (syms_of_textprop): Doc fix.Richard M. Stallman1994-09-241-2/+11
| | | | | (Fset_text_properties): Don't let validate_interval_range increment START and END twice.
* (Fget_char_property): Pass new arg to overlays_at.Richard M. Stallman1994-09-211-2/+8
| | | | (NULL): Define if not defined.
* (validate_interval_range, property_value, Fget_char_property,Karl Heuer1994-09-191-9/+13
| | | | | | Fnext_property_change, Fnext_single_property_change, Fprevious_property_change, Fprevious_single_property_change): Fix Lisp_Object vs. int problems.
* (property_value): Declare args plist, prop.Richard M. Stallman1994-09-171-0/+1
|
* (syms_of_textprop): Delete Lisp var interval-balance-threshold.Richard M. Stallman1994-09-151-5/+0
|
* (Fset_text_properties):Richard M. Stallman1994-09-021-2/+11
| | | | Return early if buffer has no intervals and PROPS is nil.
* (Fget_text_property): Simplify using Ftext_properties_at.Richard M. Stallman1994-07-171-18/+2
|
* (Fprevious_single_property_change): Check for null interval after correctingKarl Heuer1994-06-031-3/+4
| | | | for edge effects.
* (syms_of_textprop): Set up Lisp fn get-char-property.Richard M. Stallman1994-05-201-0/+1
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (F*_property_change): Typecheck limit argument.Karl Heuer1994-04-251-0/+12
|
* (syms_of_textprop): Initialize Qintangible.Karl Heuer1994-04-081-3/+3
|
* (Fget_char_property): Doc fix.Karl Heuer1994-04-051-1/+1
|
* (add_properties, remove_properties): Use assignment, not initialization.Karl Heuer1994-03-251-4/+6
|
* (Fget_char_property): Fix docstring.Karl Heuer1994-02-241-2/+2
|
* (Fget_char_property): New function.Karl Heuer1994-02-241-0/+62
|
* Doc fix.Richard M. Stallman1994-01-201-1/+1
|
* Doc fixes.Richard M. Stallman1994-01-201-3/+3
|
* (Fprevious_property_change): Move back at least 1 char.Richard M. Stallman1994-01-201-0/+8
| | | | (Fprevious_single_property_change): Likewise.
* (Ftext_property_not_all): For trivial yes, return start, not Qt.Richard M. Stallman1993-11-221-1/+1
|
* (Ftext_property_not_all): Swap t and nil values inRichard M. Stallman1993-11-201-31/+55
| | | | | | | | | 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.
* (Fnext_single_property_change): Fix missing \n\.Richard M. Stallman1993-11-151-1/+1
|
* (Fprevious_single_property_change): Fix missing \n\.Richard M. Stallman1993-11-121-1/+1
|
* (validate_plist): Add argument declaration for `list'.Brian Fox1993-09-281-0/+1
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (F{next,previous}_single_property_change): Doc fix.Roland McGrath1993-08-191-0/+2
|
* (property_change_between_p): Test NULL_INTERVAL_PRichard M. Stallman1993-08-141-0/+2
| | | | in loop, before looking at next->position.
* (Qfront_sticky, Qrear_nonsticky): New variables.Richard M. Stallman1993-07-311-2/+40
| | | | | | | | | (syms_of_textprop): Set them up. (Qhidden): New variable. (syms_of_textprop): Set up Qhidden. (property_change_between_p): New function.
* (syms_of_textprop): Set up Lisp var Vinhibit_point_motion_hooks.Richard M. Stallman1993-07-231-0/+7
|
* (Qmodification_hooks, Qinsert_in_front_hooks)Richard M. Stallman1993-07-211-9/+0
| | | | | (Qinsert_behind_hooks): Moved to buffer.c. (syms_of_textprop): Lisp vars setup deleted.
* * intervals.c (split_interval_left, split_interval_right): ChangeJim Blandy1993-07-181-10/+82
| | | | | | | | | | | | | | | | | | | | | | 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.
* (Qinsert_in_front_hooks, Qinsert_behind_hooks): New vars.Richard M. Stallman1993-07-131-15/+31
| | | | | | | | (syms_of_textprop): Set them up. (set_properties): Call modify_region. (remove_properties): Call modify_region before record_property_change. (add_properties): Likewise.
* * textprop.c (copy_text_properties): Pass a copy of POS toJim Blandy1993-07-061-10/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Compare the values of text properties using EQ, not Fequal.Jim Blandy1993-07-061-3/+2
| | | | | * intervals.c (intervals_equal): Call EQ, not Fequal. * textprop.c (interval_has_all_properties, add_properties): Same.
* * textprop.c (validate_interval_range): Don't increment bothJim Blandy1993-07-051-2/+6
| | | | | *begin and *end if they point to the same thing. (validate_plist): Call QUIT while scanning LIST.
* * textprop.c (set_properties): Add undo records to remove entirelyJim Blandy1993-07-021-11/+46
| | | | | | | | 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.