aboutsummaryrefslogtreecommitdiffstats
path: root/src/textprop.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (Fremove_text_properties, Fadd_text_properties):Richard M. Stallman1993-06-211-0/+2
| | | | Really do next_interval when skipping the first interval.
* Refer to GPL version two.Jim Blandy1993-06-121-1/+1
|
* (Fset_text_properties): No special case for props = nil.Richard M. Stallman1993-06-111-2/+0
|
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-1/+1
|
* (Fadd_text_properties): Don't treat the initialRichard M. Stallman1993-06-071-30/+9
| | | | | | | | | 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.
* The text property routines can now modify buffers otherJim Blandy1993-05-141-4/+8
| | | | | | | | | | | | 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.
* * textprop.c (Fnext_single_property_change,Jim Blandy1993-05-131-4/+5
| | | | | Fprevious_single_property_change): Pass arguments to textget in the right order.
* * textprop.c (Fadd_text_properties): Initialize the modified flag.Jim Blandy1993-03-111-4/+4
| | | | | | Use a "for (;;)" loop at the end of the function, to indicate that all exiting is taken care of inside the loop. (Fremove_text_properties): Same.
* (Fget_text_property): Use textget.Richard M. Stallman1993-03-071-12/+11
| | | | | | | (Fnext_single_property_change): Likewise. (Fprevious_single_property_change): Likewise. (syms_of_textprop): Set up Qcategory, Qlocal_map.
* (Qmodification_hooks): Renamed from Qmodification.Richard M. Stallman1993-03-071-4/+4
| | | | (syms_of_textprop): Changed accordingly.
* (Fadd_text_properties, Fremove_text_properties):Richard M. Stallman1993-03-011-41/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * textprop.c (Fget_text_property): Fix typo in function's declaration.Jim Blandy1993-02-221-2/+2
| | | | | | * keyboard.c (Fread_key_sequence): Backslash the newlines in this docstring. * textprop.c (Fget_text_property): Same.
* (Fadd_text_properties): Put OBJECT arg last. Make it optional.Richard M. Stallman1993-02-131-57/+132
| | | | | | | | (Fset_text_properties, Fremove_text_properties): Likewise. (Fnext_single_property_change, Fprevious_single_property_change): (Fnext_property_change, Fprevious_property_change): Likewise. (Ferase_text_properties): #if 0. (Fget_text_property): New function.
* * floatfns.c (Flog): Fix unescaped newline in string.Jim Blandy1992-12-241-2/+2
| | | | | | | * frame.c (Fnext_frame): Same. * textprop.c (Fprevious_single_property_change): Same. (syms_of_textprop): Same, for DEFVAR for `interval_balance_threshold'.
* Fixed typeos.Joseph Arceneaux1992-10-021-1/+1
|
* * textprop.c: Conditionalize all functions onJoseph Arceneaux1992-10-021-0/+8
| | | | "USE_TEXT_PROPERTIES".
* Minor optimizations of Fset_text_properties and Ferase_text_properties.Joseph Arceneaux1992-10-011-31/+27
|
* Mods to Ferase_text_propertiesJoseph Arceneaux1992-09-301-21/+59
|
* See ChangeLogJoseph Arceneaux1992-09-241-9/+80
|
* entered into RCSJoseph Arceneaux1992-08-301-4/+9
|