(IT_update_begin, IT_update_end): Add termscript trace.

This commit is contained in:
Eli Zaretskii
2008-08-30 13:20:17 +00:00
parent b04021eb2a
commit 7ccd1dafc2
2 changed files with 9 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
* msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
only when the state changes.
(IT_update_begin, IT_update_end): Add termscript trace.
* w16select.c (Fw16_set_clipboard_data): Don't encode text if
clipboard is unavailable. Set dst to NULL if it doesn't point to

View File

@@ -1838,6 +1838,9 @@ IT_update_begin (struct frame *f)
struct tty_display_info *display_info = FRAME_X_DISPLAY_INFO (f);
struct frame *mouse_face_frame = display_info->mouse_face_mouse_frame;
if (display_info->termscript)
fprintf (display_info->termscript, "\n\n<UPDATE_BEGIN");
BLOCK_INPUT;
if (f && f == mouse_face_frame)
@@ -1894,7 +1897,11 @@ IT_update_begin (struct frame *f)
static void
IT_update_end (struct frame *f)
{
FRAME_X_DISPLAY_INFO (f)->mouse_face_defer = 0;
struct tty_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
if (dpyinfo->termscript)
fprintf (dpyinfo->termscript, "\n<UPDATE_END\n");
dpyinfo->mouse_face_defer = 0;
}
static void