diff options
| author | Karl Heuer | 1994-02-24 20:00:34 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-02-24 20:00:34 +0000 |
| commit | 3ae8ced7cb508d0b2958f78a9a47be9215bfe76b (patch) | |
| tree | 282aa8f028da71ed67b945fbfb8bf21fd7526b10 /src | |
| parent | e885523c6eceac2ab2c2f1d8e7792d83b0ad301a (diff) | |
| download | emacs-3ae8ced7cb508d0b2958f78a9a47be9215bfe76b.tar.gz emacs-3ae8ced7cb508d0b2958f78a9a47be9215bfe76b.zip | |
(try_window, display_text_line): Use Fget_char_property to test for invisibility.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index f109060287c..da7af7d5b73 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1369,9 +1369,9 @@ try_window (window, pos) | |||
| 1369 | /* Next line, unless prev line ended in end of buffer with no cr */ | 1369 | /* Next line, unless prev line ended in end of buffer with no cr */ |
| 1370 | = vpos - (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n' | 1370 | = vpos - (val.vpos && (FETCH_CHAR (val.bufpos - 1) != '\n' |
| 1371 | #ifdef USE_TEXT_PROPERTIES | 1371 | #ifdef USE_TEXT_PROPERTIES |
| 1372 | || ! NILP (Fget_text_property (val.bufpos-1, | 1372 | || ! NILP (Fget_char_property (val.bufpos-1, |
| 1373 | Qinvisible, | 1373 | Qinvisible, |
| 1374 | Fcurrent_buffer ())) | 1374 | window)) |
| 1375 | #endif | 1375 | #endif |
| 1376 | )); | 1376 | )); |
| 1377 | pos = val.bufpos; | 1377 | pos = val.bufpos; |
| @@ -2056,10 +2056,10 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 2056 | the next property change */ | 2056 | the next property change */ |
| 2057 | while (pos == next_invisible && pos < end) | 2057 | while (pos == next_invisible && pos < end) |
| 2058 | { | 2058 | { |
| 2059 | Lisp_Object position, limit, endpos, prop; | 2059 | Lisp_Object position, limit, endpos, prop, ww; |
| 2060 | XFASTINT (position) = pos; | 2060 | XFASTINT (position) = pos; |
| 2061 | prop = Fget_text_property (position, Qinvisible, | 2061 | XSET (ww, Lisp_Window, w); |
| 2062 | Fcurrent_buffer ()); | 2062 | prop = Fget_char_property (position, Qinvisible, ww); |
| 2063 | /* This is just an estimate to give reasonable | 2063 | /* This is just an estimate to give reasonable |
| 2064 | performance; nothing should go wrong if it is too small. */ | 2064 | performance; nothing should go wrong if it is too small. */ |
| 2065 | XFASTINT (limit) = pos + 50; | 2065 | XFASTINT (limit) = pos + 50; |