comparison src/dispnew.c @ 1766:be62942446f0

(Fredraw_display): Redraw all visible frames. Make the non-multi-frame version interactive.
author Richard M. Stallman <rms@gnu.org>
date Wed, 13 Jan 1993 05:17:34 +0000
parents a688543448e7
children 4edfaa19c7a7
comparison
equal deleted inserted replaced
1765:1cc3ee5afc82 1766:be62942446f0
163 f->garbaged = 0; 163 f->garbaged = 0;
164 return Qnil; 164 return Qnil;
165 } 165 }
166 166
167 DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "", 167 DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "",
168 "Redraw all frames marked as having their images garbled.") 168 "Clear and redisplay all visible frames."
169 () 169 ()
170 { 170 {
171 Lisp_Object frame, tail; 171 Lisp_Object frame, tail;
172 172
173 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr) 173 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr)
174 { 174 {
175 frame = XCONS (tail)->car; 175 frame = XCONS (tail)->car;
176 if (FRAME_GARBAGED_P (XFRAME (frame)) && FRAME_VISIBLE_P (XFRAME (frame))) 176 if (FRAME_VISIBLE_P (XFRAME (frame)))
177 Fredraw_frame (frame); 177 Fredraw_frame (frame);
178 } 178 }
179 return Qnil; 179 return Qnil;
180 } 180 }
181 181
187 Fredraw_frame (frame); 187 Fredraw_frame (frame);
188 } 188 }
189 189
190 #else /* not MULTI_FRAME */ 190 #else /* not MULTI_FRAME */
191 191
192 DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, 0, 192 DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "",
193 "Clear screen and output again what is supposed to appear on it.") 193 "Clear screen and output again what is supposed to appear on it.")
194 () 194 ()
195 { 195 {
196 update_begin (0); 196 update_begin (0);
197 set_terminal_modes (); 197 set_terminal_modes ();