From: Eli Zaretskii Date: Sat, 4 Oct 2008 15:27:56 +0000 (+0000) Subject: (update_frame): Flush termscript for MSDOS frames as well as for TTY. X-Git-Tag: emacs-pretest-23.0.90~2651 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d2f1216b7ef820bd964b5fe0ca7d38be8e8fd2e;p=emacs.git (update_frame): Flush termscript for MSDOS frames as well as for TTY. (Fopen_termscript): Allow opening a termscript on MSDOS frames as well as on a TTY. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8485c24e645..46f8ab3b60e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,13 @@ 2008-10-04 Eli Zaretskii + * xdisp.c (redisplay_internal): If frame switched, redisplay the + whole thing on MSDOS frames as well as on a TTY. + + * dispnew.c (update_frame): Flush termscript for MSDOS frames as + well as for TTY. + (Fopen_termscript): Allow opening a termscript on MSDOS frames as + well as on a TTY. + * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames as well as for TTY. diff --git a/src/dispnew.c b/src/dispnew.c index afb60ab89d0..45b5756665c 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3954,11 +3954,12 @@ update_frame (f, force_p, inhibit_hairy_id_p) paused_p = update_frame_1 (f, force_p, inhibit_hairy_id_p); update_end (f); - if (FRAME_TERMCAP_P (f)) + if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) { if (FRAME_TTY (f)->termscript) fflush (FRAME_TTY (f)->termscript); - fflush (FRAME_TTY (f)->output); + if (FRAME_TERMCAP_P (f)) + fflush (FRAME_TTY (f)->output); } /* Check window matrices for lost pointers. */ @@ -6421,7 +6422,8 @@ FILE = nil means just close any termscript file currently open. */) { struct tty_display_info *tty; - if (! FRAME_TERMCAP_P (SELECTED_FRAME ())) + if (! FRAME_TERMCAP_P (SELECTED_FRAME ()) + && ! FRAME_MSDOS_P (SELECTED_FRAME ())) error ("Current frame is not on a tty device"); tty = CURTTY ();