#include "termchar.h"
#include "termopts.h"
#include "termhooks.h"
-#ifdef HAVE_NTGUI
+/* cm.h must come after dispextern.h on Windows. */
#include "dispextern.h"
#include "cm.h"
-#else
-#include "cm.h"
-#include "dispextern.h"
-#endif /* HAVE_NTGUI */
#include "buffer.h"
#include "frame.h"
#include "window.h"
if (! current_frame->highlight[vpos])
{
if (!must_write_spaces)
- while (obody[olen - 1] == SPACEGLYPH && olen > 0)
+ while (olen > 0 && obody[olen - 1] == SPACEGLYPH)
olen--;
}
else
Ssend_string_to_terminal, 1, 1, 0,
"Send STRING to the terminal without alteration.\n\
Control characters in STRING will have terminal-dependent effects.")
- (str)
- Lisp_Object str;
+ (string)
+ Lisp_Object string;
{
- CHECK_STRING (str, 0);
- fwrite (XSTRING (str)->data, 1, XSTRING (str)->size, stdout);
+ CHECK_STRING (string, 0);
+ fwrite (XSTRING (string)->data, 1, XSTRING (string)->size, stdout);
fflush (stdout);
if (termscript)
{
- fwrite (XSTRING (str)->data, 1, XSTRING (str)->size, termscript);
+ fwrite (XSTRING (string)->data, 1, XSTRING (string)->size, termscript);
fflush (termscript);
}
return Qnil;
additional wait period, in milliseconds; this may be useful if your\n\
Emacs was built without floating point support.\n\
\(Not all operating systems support waiting for a fraction of a second.)\n\
-Optional third arg non-nil means don't redisplay, just wait for input.\n\
+Optional third arg NODISP non-nil means don't redisplay, just wait for input.\n\
Redisplay is preempted as always if input arrives, and does not happen\n\
if input is available before it starts.\n\
Value is t if waited the full time with no input arriving.")