aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-07-22 16:11:48 +0000
committerRichard M. Stallman <[email protected]>1995-07-22 16:11:48 +0000
commitcbc55f55696b257a75007fefbfc57bec7dc67ab8 (patch)
treec49c55e8ea39805a986fc7eacd8b3f8593dc6942 /src
parent645c4f6a8f8582b0a84dcc42d3b064e856d5a88c (diff)
(Fget_char_property): If OBJECT is non-current buffer,
use it properly for overlays_at.
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 5b8dada604..c41757388c 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -556,6 +556,9 @@ overlays are considered only if they are associated with OBJECT.")
Lisp_Object *overlay_vec, tem;
int next_overlay;
int len;
+ struct buffer *obuf = current_buffer;
+
+ set_buffer_temp (XBUFFER (object));
/* First try with room for 40 overlays. */
len = 40;
@@ -575,6 +578,8 @@ overlays are considered only if they are associated with OBJECT.")
}
noverlays = sort_overlays (overlay_vec, noverlays, w);
+ set_buffer_temp (obuf);
+
/* Now check the overlays in order of decreasing priority. */
while (--noverlays >= 0)
{