diff src/redisplay-output.c @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents b2472a1930f2
children c42ec1d1cded
line wrap: on
line diff
--- a/src/redisplay-output.c	Mon Aug 13 10:27:41 2007 +0200
+++ b/src/redisplay-output.c	Mon Aug 13 10:28:48 2007 +0200
@@ -44,7 +44,6 @@
 			  struct rune *drb);
 static void redraw_cursor_in_window (struct window *w,
 				     int run_end_begin_glyphs);
-void redisplay_output_window (struct window *w);
 
 /*****************************************************************************
  sync_rune_structs
@@ -274,7 +273,7 @@
 			      int *cursor_height)
 {
   struct rune *rb;
-  Lisp_Object window = Qnil;
+  Lisp_Object window;
   int defheight, defwidth;
 
   if (Dynarr_length (db->runes) <= cursor_location)
@@ -748,8 +747,6 @@
   int x = w->last_point_x[CURRENT_DISP];
   int y = w->last_point_y[CURRENT_DISP];
 
-  extern int cursor_in_echo_area;
-
   /*
    * Bail if cursor_in_echo_area is non-zero and we're fiddling with
    * the cursor in a non-active minibuffer window, since that is a
@@ -928,7 +925,6 @@
   struct display_line *dl;
   struct display_block *db;
   struct rune *rb;
-  extern int cursor_in_echo_area;
 
   int x = w->last_point_x[CURRENT_DISP];
   int y = w->last_point_y[CURRENT_DISP];
@@ -980,21 +976,16 @@
 void
 redisplay_redraw_cursor (struct frame *f, int run_end_begin_meths)
 {
-  struct window *w = XWINDOW (FRAME_SELECTED_WINDOW (f));
-  extern int cursor_in_echo_area; 
- 
-  if (cursor_in_echo_area)
-    {
-    if (FRAME_HAS_MINIBUF_P (f)) 
-      { 
-	w = XWINDOW (FRAME_MINIBUF_WINDOW (f)); 
-      }
-    else
-      {
-      return;
-      }
-    }
-  redraw_cursor_in_window (w, run_end_begin_meths);
+  Lisp_Object window;
+
+  if (!cursor_in_echo_area)
+    window = FRAME_SELECTED_WINDOW (f);
+  else if (FRAME_HAS_MINIBUF_P (f))
+    window = FRAME_MINIBUF_WINDOW (f);
+  else
+    return;
+
+  redraw_cursor_in_window (XWINDOW (window), run_end_begin_meths);
 }
 
 /*****************************************************************************