Mercurial > emacs
changeset 36949:88b92b222846
(init_iterator): Check WINDOWP before using XWINDOW.
(string_buffer_position): Use `make_number'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 23 Mar 2001 04:24:29 +0000 |
parents | fabff5d240fb |
children | d2c829c88d41 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Fri Mar 23 04:24:23 2001 +0000 +++ b/src/xdisp.c Fri Mar 23 04:24:29 2001 +0000 @@ -1524,6 +1524,7 @@ /* Or show the region if we are in the mini-buffer and W is the window the mini-buffer refers to. */ || (MINI_WINDOW_P (XWINDOW (selected_window)) + && WINDOWP (Vminibuf_scroll_window) && w == XWINDOW (Vminibuf_scroll_window)))) { int charpos = marker_position (current_buffer->mark); @@ -3093,7 +3094,7 @@ const int MAX_DISTANCE = 1000; int found = 0; - pos = around_charpos; + pos = make_number (around_charpos); limit = make_number (min (XINT (pos) + MAX_DISTANCE, ZV)); while (!found && !EQ (pos, limit)) { @@ -3106,7 +3107,7 @@ if (!found) { - pos = around_charpos; + pos = make_number (around_charpos); limit = make_number (max (XINT (pos) - MAX_DISTANCE, BEGV)); while (!found && !EQ (pos, limit)) {