Chong Yidong
52c0f270f2
* textprop.c (Fnext_property_change, Fnext_single_property_change)
...
(Fprevious_property_change, Fprevious_single_property_change):
Avoid changing limit, so we can correctly catch the case where the
property is constant up to limit.
2006-09-12 16:47:26 +00:00
Chong Yidong
3e1451520b
* buffer.h (struct buffer_text): New field chars_modiff.
...
(CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
* buffer.c (Fbuffer_chars_modified_tick): New function returning
value of BUF_CHARS_MODIFF.
(syms_of_buffer): Defsubr it.
(Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
* insdel.c (modify_region): New argument preserve_chars_modiff.
Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
(insert_1_both, insert_from_string_1, insert_from_buffer_1)
(adjust_after_replace, adjust_after_replace_noundo)
(replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
* lisp.h (modify_region): Add fourth argument in extern.
* casefiddle.c (casify_region): Call modify_region with fourth
argument zero to assert that CHARS_MODIFF is updated.
* editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
(Ftranspose_regions): Likewise.
* textprop.c (Fadd_text_properties, Fset_text_properties)
(Fremove_text_properties, Fremove_list_of_text_properties):
Call modify_region with fourth argument 1 to avoid that
CHARS_MODIFF is updated.
2006-09-01 13:28:13 +00:00
Dan Nicolaescu
2381d38d0a
* ebrowse.c (usage, version): Mark as NO_RETURN.
...
* emacsclient.c (print_help_and_exit): Likewise.
* xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
* textprop.c (text_read_only): Likewise.
* lread.c (end_of_file_error): Likewise.
* lisp.h (circular_list_error, memory_full, buffer_memory_full):
Likewise.
* eval.c (unwind_to_catch): Likewise.
* buffer.h (buffer_slot_type_mismatch): Likewise.
2006-07-18 16:33:45 +00:00
Kim F. Storm
d0a29e1de7
(text_read_only): Use xsignal0, xsignal1.
2006-07-18 13:29:40 +00:00
Richard M. Stallman
9555514514
(Fget_char_property_and_overlay): Doc fix.
2006-07-03 15:41:50 +00:00
Chong Yidong
506d2f9a54
* textprop.c (text_property_stickiness): doc fix.
2006-06-28 00:02:57 +00:00
Richard M. Stallman
85cc6738ed
(Fnext_single_char_property_change)
...
(Fprevious_single_char_property_change):
Don't allow returning value beyond LIMIT in any cases.
(Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
2006-05-14 21:55:34 +00:00
Lars Hansen
9b17c9f5cd
(Fremove_list_of_text_properties): Ensure
...
modify_region is called only when buffer is modified and that
signal_after_change is allways called in that case.
2006-04-20 11:36:50 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
Luc Teirlinck
537562fa44
(set_text_properties): Reword description of return value.
...
Return Qnil if caller wants to remove all text properties from a
string and the string already has no intervals.
2005-12-30 23:15:03 +00:00
Thien-Thi Nguyen
0b5538bd85
Update years in copyright notice; nfc.
2005-08-07 12:33:19 +00:00
Juanma Barranquero
a41292c235
(Fnext_char_property_change, Fprevious_char_property_change): Doc fixes.
2005-07-21 16:32:33 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
David Kastrup
d615870ac5
(Fnext_char_property_change)
...
(Fprevious_char_property_change): allow marker as limit.
(Fnext_single_char_property_change)
(Fprevious_single_char_property_change): Check that limit is a
number in strings.
(Fnext_single_char_property_change): Coerce position to integer.
(Fprevious_single_char_property_change): Same here.
2005-03-22 16:04:02 +00:00
Stefan Monnier
98ebf86079
(syms_of_textprop): Add `syntax-table' to the nonsticky props.
2004-10-13 16:58:45 +00:00
Kim F. Storm
b5be4dbe96
(get_char_property_and_overlay): Use GET_OVERLAYS_AT.
2004-05-17 22:48:07 +00:00
Luc Teirlinck
97a1bc6376
(Fget_char_property_and_overlay): New function.
...
(syms_of_textprop): Defsubr it.
2003-11-30 17:08:28 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Stefan Monnier
6f71664498
(text_property_stickiness): New arg `buffer'.
2003-05-17 18:46:36 +00:00
Francesco Potortì
81f6e55f76
(Ftext_properties_at, Fnext_char_property_change)
...
(Fprevious_char_property_change)
(Fnext_single_char_property_change)
(Fprevious_single_char_property_change, 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, Fremove_list_of_text_properties)
(Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
2003-01-14 23:13:05 +00:00
Stefan Monnier
bcf9734920
(text_read_only): New arg `propval'.
...
(get_char_property_and_overlay): Remove unused var `next_overlay'.
(verify_interval_modification): Use text_read_only's new arg.
2002-12-14 00:11:38 +00:00
Ken Raeburn
943afcc71e
(validate_interval_range, interval_of): Use string macros instead of
...
Lisp_String fields.
2002-07-16 17:37:31 +00:00
Ken Raeburn
9056febe2c
* textprop.c (set_text_properties): Use STRING_SET_INTERVALS.
2002-07-15 06:57:04 +00:00
Ken Raeburn
d5db40779d
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
...
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
aed1337830
Use macro SPECPDL_INDEX.
2002-07-11 14:18:02 +00:00
Colin Walters
49d110a8aa
(Vchar_property_alias_alist): New variable.
...
(syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
2002-06-08 20:24:35 +00:00
Stefan Monnier
b079118d83
(remove_properties): Don't use XCAR without CONSP.
2002-04-29 19:29:58 +00:00
Kim F. Storm
f25d60d646
(remove_properties): Fixed trap for malformed plist.
2002-04-22 17:59:02 +00:00
Richard M. Stallman
11713b6daf
(remove_properties): New arg LIST allows scanning
...
either a list or a plist.
(interval_has_some_properties_list): New function, like
interval_has_some_properties using list instead of plist.
All callers changed.
(Fremove_list_of_text_properties): New function.
(syms_of_textprop): Defsubr it.
2002-04-19 00:14:14 +00:00
Miles Bader
e138dfdc9d
(text_property_stickiness): Function moved here from `editfns.c'.
2002-03-14 08:10:35 +00:00
Stefan Monnier
3a232704c3
(Fnext_property_change, Fnext_single_property_change)
...
(Fprevious_property_change, Fprevious_single_property_change):
Stay within the narrowed-buffer boundaries.
2002-01-25 22:42:13 +00:00
Richard M. Stallman
49f68fd22b
(set_text_properties_1): Allow args in either order.
...
Do nothing if range is empty.
2001-11-26 20:10:04 +00:00
Stefan Monnier
ce768453c1
(set_text_properties_1): Clearly mark that the interval should not be empty.
2001-11-26 02:19:38 +00:00
Pavel Janík
28ff42939f
(Fset_text_properties): Remove unused variables `unchanged',
...
`prev_changed', `s' and `len'.
2001-11-23 08:11:35 +00:00
Richard M. Stallman
78ff4175b9
(set_text_properties_1): New subroutine, broken out of set_text_properties.
...
(set_text_properties): Use set_text_properties_1.
2001-11-11 20:03:24 +00:00
Pavel Janík
b782650360
Update usage of CHECK_ macros (remove unused second argument).
2001-11-02 20:46:55 +00:00
Richard M. Stallman
8faef085c5
(Fget_char_property): Doc fix.
2001-11-02 07:12:33 +00:00
Pavel Janík
8c1a1077c0
Change doc-string comments to new style' [w/doc:' keyword].
2001-10-21 12:13:46 +00:00
Ken Raeburn
f3fbd15535
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
...
with lisp system changes.
2001-10-16 09:09:51 +00:00
Miles Bader
6d7a9ba198
(Fnext_char_property_change)
...
(Fprevious_char_property_change): Remove reference to non-existant
argument OBJECT from doc-string.
2001-10-02 01:53:10 +00:00
Gerd Moellmann
0ba7995bfe
(verify_interval_modification): Fix last change.
2001-09-11 12:45:24 +00:00
Gerd Moellmann
d4881c6acb
(verify_interval_modification): Don't run
...
modification-hooks if inhibit_modification_hooks.
2001-09-11 12:25:06 +00:00
Miles Bader
f621045e3e
(Fprevious_single_char_property_change)
...
(Fnext_single_char_property_change): Doc fixes.
2001-08-27 18:12:46 +00:00
Eli Zaretskii
25078b542c
(Fset_text_properties): Doc fix.
2001-02-15 12:36:44 +00:00
Dave Love
a63643cd04
(Fset_text_properties): Fix newline in doc string.
2001-01-31 01:00:17 +00:00
Eli Zaretskii
2b5f21c23c
(Fset_text_properties): Doc fix.
2001-01-29 16:49:57 +00:00
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