[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r116990: * term.c (tty_send_additional_strings): No
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] trunk r116990: * term.c (tty_send_additional_strings): No need to fflush here, |
Date: |
Thu, 17 Apr 2014 14:59:25 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116990
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Thu 2014-04-17 07:59:22 -0700
message:
* term.c (tty_send_additional_strings): No need to fflush here,
as callers fflush.
(tty_set_terminal_modes): fflush after sending additional strings,
not before.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/term.c term.c-20091113204419-o5vbwnq5f7feedwu-220
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-04-17 07:54:23 +0000
+++ b/src/ChangeLog 2014-04-17 14:59:22 +0000
@@ -1,3 +1,10 @@
+2014-04-17 Paul Eggert <address@hidden>
+
+ * term.c (tty_send_additional_strings): No need to fflush here,
+ as callers fflush.
+ (tty_set_terminal_modes): fflush after sending additional strings,
+ not before.
+
2014-04-17 Daniel Colascione <address@hidden>
* term.c (Qtty_mode_set_strings, Qtty_mode_reset_strings): New
=== modified file 'src/term.c'
--- a/src/term.c 2014-04-17 07:54:23 +0000
+++ b/src/term.c 2014-04-17 14:59:22 +0000
@@ -165,7 +165,7 @@
/* Set up termcap modes for Emacs. */
static void
-tty_send_additional_strings (struct terminal* terminal, Lisp_Object sym)
+tty_send_additional_strings (struct terminal *terminal, Lisp_Object sym)
{
Lisp_Object lisp_terminal;
Lisp_Object extra_codes;
@@ -180,7 +180,6 @@
if (STRINGP (string))
{
fwrite (SDATA (string), 1, SBYTES (string), tty->output);
- fflush (tty->output);
if (tty->termscript)
fwrite (SDATA (string), 1, SBYTES (string), tty->termscript);
}
@@ -209,8 +208,8 @@
OUTPUT_IF (tty, visible_cursor ? tty->TS_cursor_visible :
tty->TS_cursor_normal);
OUTPUT_IF (tty, tty->TS_keypad_mode);
losecursor (tty);
- fflush (tty->output);
tty_send_additional_strings (terminal, Qtty_mode_set_strings);
+ fflush (tty->output);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r116990: * term.c (tty_send_additional_strings): No need to fflush here,,
Paul Eggert <=