diff options
| author | Roland McGrath | 1994-11-16 16:57:31 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-11-16 16:57:31 +0000 |
| commit | 58fcaaf1757decf9af8d014acfe784f05f8ffef3 (patch) | |
| tree | 693dfc320eebbb5053eb1455be2be80baff6054d /src | |
| parent | 0694d58c7f2b36eabb1affbe98a940274047bb20 (diff) | |
| download | emacs-58fcaaf1757decf9af8d014acfe784f05f8ffef3.tar.gz emacs-58fcaaf1757decf9af8d014acfe784f05f8ffef3.zip | |
(try_window): Don't pass window to Fget_char_property; pass its buffer.
(display_text_line): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 6dc5f1811d5..bfb2b139d30 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1447,15 +1447,19 @@ try_window (window, pos) | |||
| 1447 | if (val.vpos) tab_offset = 0; | 1447 | if (val.vpos) tab_offset = 0; |
| 1448 | vpos++; | 1448 | vpos++; |
| 1449 | if (pos != val.bufpos) | 1449 | if (pos != val.bufpos) |
| 1450 | last_text_vpos | 1450 | { |
| 1451 | /* Next line, unless prev line ended in end of buffer with no cr */ | 1451 | last_text_vpos = vpos; |
| 1452 | = vpos - (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n' | 1452 | /* Next line, unless prev line ended in end of buffer with no cr. */ |
| 1453 | if (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n' | ||
| 1453 | #ifdef USE_TEXT_PROPERTIES | 1454 | #ifdef USE_TEXT_PROPERTIES |
| 1454 | || ! NILP (Fget_char_property (val.bufpos-1, | 1455 | || ! NILP (Fget_char_property |
| 1455 | Qinvisible, | 1456 | (val.bufpos-1, |
| 1456 | window)) | 1457 | Qinvisible, |
| 1458 | XWINDOW (window)->buffer)) | ||
| 1457 | #endif | 1459 | #endif |
| 1458 | )); | 1460 | )) |
| 1461 | --last_text_vpos; | ||
| 1462 | } | ||
| 1459 | pos = val.bufpos; | 1463 | pos = val.bufpos; |
| 1460 | } | 1464 | } |
| 1461 | 1465 | ||
| @@ -2252,17 +2256,17 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 2252 | the next property change */ | 2256 | the next property change */ |
| 2253 | while (pos == next_invisible && pos < end) | 2257 | while (pos == next_invisible && pos < end) |
| 2254 | { | 2258 | { |
| 2255 | Lisp_Object position, limit, endpos, prop, ww; | 2259 | Lisp_Object position, limit, endpos, prop; |
| 2256 | XSETFASTINT (position, pos); | 2260 | XSETFASTINT (position, pos); |
| 2257 | XSETWINDOW (ww, w); | 2261 | prop = Fget_char_property (position, Qinvisible, w->buffer); |
| 2258 | prop = Fget_char_property (position, Qinvisible, ww); | ||
| 2259 | /* This is just an estimate to give reasonable | 2262 | /* This is just an estimate to give reasonable |
| 2260 | performance; nothing should go wrong if it is too small. */ | 2263 | performance; nothing should go wrong if it is too small. */ |
| 2261 | limit = Fnext_overlay_change (position); | 2264 | limit = Fnext_overlay_change (position); |
| 2262 | if (XFASTINT (limit) > pos + 50) | 2265 | if (XFASTINT (limit) > pos + 50) |
| 2263 | XSETFASTINT (limit, pos + 50); | 2266 | XSETFASTINT (limit, pos + 50); |
| 2264 | endpos = Fnext_single_property_change (position, Qinvisible, | 2267 | endpos = Fnext_single_property_change (position, Qinvisible, |
| 2265 | Fcurrent_buffer (), limit); | 2268 | Fcurrent_buffer (), |
| 2269 | limit); | ||
| 2266 | if (INTEGERP (endpos)) | 2270 | if (INTEGERP (endpos)) |
| 2267 | next_invisible = XINT (endpos); | 2271 | next_invisible = XINT (endpos); |
| 2268 | else | 2272 | else |