Signal error if POSITION is out of range in a buffer.
+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
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);