[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/dispnew.c,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/src/dispnew.c,v |
Date: |
Tue, 13 May 2008 21:19:07 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/05/13 21:19:05
Index: dispnew.c
===================================================================
RCS file: /sources/emacs/emacs/src/dispnew.c,v
retrieving revision 1.405
retrieving revision 1.406
diff -u -b -r1.405 -r1.406
--- dispnew.c 1 May 2008 10:12:50 -0000 1.405
+++ dispnew.c 13 May 2008 21:19:03 -0000 1.406
@@ -5302,11 +5302,14 @@
Also flush out if likely to have more than 1k buffered
otherwise. I'm told that some telnet connections get
really screwed by more than 1k output at once. */
- int outq = PENDING_OUTPUT_COUNT (FRAME_TTY (f)->output);
+ FILE *display_output = FRAME_TTY (f)->output;
+ if (display_output)
+ {
+ int outq = PENDING_OUTPUT_COUNT (display_output);
if (outq > 900
|| (outq > 20 && ((i - 1) % preempt_count == 0)))
{
- fflush (FRAME_TTY (f)->output);
+ fflush (display_output);
if (preempt_count == 1)
{
#ifdef EMACS_OUTQSIZE
@@ -5321,6 +5324,7 @@
}
}
}
+ }
#if PERIODIC_PREEMPTION_CHECKING
if (!force_p)