Mercurial > emacs
changeset 12641:aadec66110fd
(Fget_char_property): If OBJECT is non-current buffer,
use it properly for overlays_at.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 22 Jul 1995 16:11:48 +0000 |
parents | d194c63cb75c |
children | cdfbcff1f22a |
files | src/textprop.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/textprop.c Sat Jul 22 15:17:54 1995 +0000 +++ b/src/textprop.c Sat Jul 22 16:11:48 1995 +0000 @@ -556,6 +556,9 @@ 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 @@ } noverlays = sort_overlays (overlay_vec, noverlays, w); + set_buffer_temp (obuf); + /* Now check the overlays in order of decreasing priority. */ while (--noverlays >= 0) {