Commit cbc55f55 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fget_char_property): If OBJECT is non-current buffer,

use it properly for overlays_at.
parent 645c4f6a
...@@ -556,6 +556,9 @@ overlays are considered only if they are associated with OBJECT.") ...@@ -556,6 +556,9 @@ overlays are considered only if they are associated with OBJECT.")
Lisp_Object *overlay_vec, tem; Lisp_Object *overlay_vec, tem;
int next_overlay; int next_overlay;
int len; int len;
struct buffer *obuf = current_buffer;
set_buffer_temp (XBUFFER (object));
/* First try with room for 40 overlays. */ /* First try with room for 40 overlays. */
len = 40; len = 40;
...@@ -575,6 +578,8 @@ overlays are considered only if they are associated with OBJECT.") ...@@ -575,6 +578,8 @@ overlays are considered only if they are associated with OBJECT.")
} }
noverlays = sort_overlays (overlay_vec, noverlays, w); noverlays = sort_overlays (overlay_vec, noverlays, w);
set_buffer_temp (obuf);
/* Now check the overlays in order of decreasing priority. */ /* Now check the overlays in order of decreasing priority. */
while (--noverlays >= 0) while (--noverlays >= 0)
{ {
......
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