diff options
| author | Richard M. Stallman | 1995-07-22 16:11:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-22 16:11:48 +0000 |
| commit | cbc55f55696b257a75007fefbfc57bec7dc67ab8 (patch) | |
| tree | c49c55e8ea39805a986fc7eacd8b3f8593dc6942 | |
| parent | 645c4f6a8f8582b0a84dcc42d3b064e856d5a88c (diff) | |
| download | emacs-cbc55f55696b257a75007fefbfc57bec7dc67ab8.tar.gz emacs-cbc55f55696b257a75007fefbfc57bec7dc67ab8.zip | |
(Fget_char_property): If OBJECT is non-current buffer,
use it properly for overlays_at.
| -rw-r--r-- | src/textprop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c index 5b8dada6042..c41757388c7 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -556,6 +556,9 @@ overlays are considered only if they are associated with OBJECT.") | |||
| 556 | Lisp_Object *overlay_vec, tem; | 556 | Lisp_Object *overlay_vec, tem; |
| 557 | int next_overlay; | 557 | int next_overlay; |
| 558 | int len; | 558 | int len; |
| 559 | struct buffer *obuf = current_buffer; | ||
| 560 | |||
| 561 | set_buffer_temp (XBUFFER (object)); | ||
| 559 | 562 | ||
| 560 | /* First try with room for 40 overlays. */ | 563 | /* First try with room for 40 overlays. */ |
| 561 | len = 40; | 564 | len = 40; |
| @@ -575,6 +578,8 @@ overlays are considered only if they are associated with OBJECT.") | |||
| 575 | } | 578 | } |
| 576 | noverlays = sort_overlays (overlay_vec, noverlays, w); | 579 | noverlays = sort_overlays (overlay_vec, noverlays, w); |
| 577 | 580 | ||
| 581 | set_buffer_temp (obuf); | ||
| 582 | |||
| 578 | /* Now check the overlays in order of decreasing priority. */ | 583 | /* Now check the overlays in order of decreasing priority. */ |
| 579 | while (--noverlays >= 0) | 584 | while (--noverlays >= 0) |
| 580 | { | 585 | { |