aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorKaroly Lorentey2004-01-23 21:48:58 +0000
committerKaroly Lorentey2004-01-23 21:48:58 +0000
commitd448e98221f74c780d5163ed819b782ee32f7d74 (patch)
treee4957b71e9a3aa7732f23b5c2bd1b2f1f884809a /src/termhooks.h
parent6c3d443b13f9db58f54057b1061b1853c47cc6b8 (diff)
downloademacs-d448e98221f74c780d5163ed819b782ee32f7d74.tar.gz
emacs-d448e98221f74c780d5163ed819b782ee32f7d74.zip
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
lisp/startup.el (command-line): Always call tty-register-default-colors. src/dispextern.h (delete_tty): Added missing prototype. src/keyboard.c (read_avail_input): Close display gracefully if needed. Kill Emacs if the last display is to be closed. (tty_read_avail_input): Don't call delete_tty and don't signal hangup here; return -2 instead to indicate the non-transient failure to read_avail_input. src/term.c (delete_tty): Removed superflous wiping of the deleted frames' output_data field. (delete_display): Check for and close live frames that are still on the display. src/termhooks.h (read_socket_hook, delete_display_hook): Added detailed comment. src/xfaces.c (realize_face): Create a dummy face for the initial frame. (Reported by Robert J. Chassell (bob at rattlenake dot com).) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-61
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h36
1 files changed, 30 insertions, 6 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 7dda9e2ef07..8a0c37434e1 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -472,8 +472,27 @@ struct display
472 void (*judge_scroll_bars_hook) P_ ((struct frame *FRAME)); 472 void (*judge_scroll_bars_hook) P_ ((struct frame *FRAME));
473 473
474 474
475 /* Called to read input events. */ 475 /* Called to read input events.
476 int (*read_socket_hook) P_ ((struct display *, struct input_event *, int, int)); 476
477 DISPLAY indicates which display to read from. Input events
478 should be read into BUF, the size of which is given in SIZE.
479 EXPECTED is non-zero if the caller suspects that new input is
480 available.
481
482 A positive return value indicates that that many input events
483 where read into BUF.
484 Zero means no events were immediately available.
485 A value of -1 means a transient read error, while -2 indicates
486 that the display was closed (hangup), and it should be deleted.
487
488 XXX Please note that a non-zero value of EXPECTED only means that
489 there is available input on at least one of the currently opened
490 display devices -- but not necessarily on this device.
491 Therefore, in most cases EXPECTED should be simply ignored.
492 */
493 int (*read_socket_hook) P_ ((struct display *display,
494 struct input_event *buf,
495 int size, int expected));
477 496
478 /* Called when a frame's display becomes entirely up to date. */ 497 /* Called when a frame's display becomes entirely up to date. */
479 void (*frame_up_to_date_hook) P_ ((struct frame *)); 498 void (*frame_up_to_date_hook) P_ ((struct frame *));
@@ -483,11 +502,16 @@ struct display
483 on this display. */ 502 on this display. */
484 void (*delete_frame_hook) P_ ((struct frame *)); 503 void (*delete_frame_hook) P_ ((struct frame *));
485 504
486 /* Called after the last frame on this display is deleted. 505 /* Called after the last frame on this display is deleted, or when
487 If this is NULL, then the generic delete_frame() is called. 506 the display device was closed (hangup).
507
508 If this is NULL, then the generic delete_frame() is called
509 instead.
488 510
489 Fdelete_frame ensures that there are no live frames on the 511 The hook must check for and close any live frames that are still
490 display when it calls this hook. */ 512 on the display. Fdelete_frame ensures that there are no live
513 frames on the display when it calls this hook, so infinite
514 recursion is prevented. */
491 void (*delete_display_hook) P_ ((struct display *)); 515 void (*delete_display_hook) P_ ((struct display *));
492 516
493}; 517};