Commit e6c6c8c7 authored by Paul Eggert's avatar Paul Eggert

* intervals.c (get_local_map): Actually clip POSITION

Fixes: debbugs:14753
parent adc5dbce
2013-06-30 Paul Eggert <>
* intervals.c (get_local_map): Actually clip POSITION (Bug#14753).
2013-06-30 Eli Zaretskii <>
* intervals.c (get_local_map): Instead of aborting, clip POSITION
......@@ -2199,13 +2199,12 @@ get_property_and_range (ptrdiff_t pos, Lisp_Object prop, Lisp_Object *val,
`local-map' use BUFFER's local map. */
get_local_map (register ptrdiff_t position, register struct buffer *buffer,
Lisp_Object type)
get_local_map (ptrdiff_t position, struct buffer *buffer, Lisp_Object type)
Lisp_Object prop, lispy_position, lispy_buffer;
ptrdiff_t old_begv, old_zv, old_begv_byte, old_zv_byte;
clip_to_bounds (BUF_BEGV (buffer), position, BUF_ZV (buffer));
position = clip_to_bounds (BUF_BEGV (buffer), position, BUF_ZV (buffer));
/* Ignore narrowing, so that a local map continues to be valid even if
the visible region contains no characters and hence no properties. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment