(get_char_property_and_overlay):
Signal error if POSITION is out of range in a buffer.
This commit is contained in:
parent
d50e9d5b17
commit
dd6f28023d
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-12-30 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* textprop.c (get_char_property_and_overlay):
|
||||
Signal error if POSITION is out of range in a buffer.
|
||||
|
||||
2007-12-29 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* w32fns.c (Fx_create_frame): Make copy of frame parameters
|
||||
|
|
|
@ -646,6 +646,10 @@ get_char_property_and_overlay (position, prop, object, overlay)
|
|||
Lisp_Object *overlay_vec;
|
||||
struct buffer *obuf = current_buffer;
|
||||
|
||||
if (XINT (position) < BUF_BEGV (XBUFFER (object))
|
||||
|| XINT (position) > BUF_ZV (XBUFFER (object)))
|
||||
xsignal1 (Qargs_out_of_range, position);
|
||||
|
||||
set_buffer_temp (XBUFFER (object));
|
||||
|
||||
GET_OVERLAYS_AT (XINT (position), overlay_vec, noverlays, NULL, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue