comparison src/keyboard.c @ 83025:c66ebcc29777

Removed %T in mode-line-format. Trivial documentation changes. lisp/bindings.el (mode-line-buffer-identification): Use the conditional formatting feature instead of builtin support. src/buffer.c (Vmode_line_format): Removed %T documentation. src/xdisp.c (decode_mode_spec): Removed %T processing. lib-src/emacsclient.c (pass_signal_to_emacs, init_signals): Added comment. src/cm.c: Cosmetic changes. src/termchar.h: Ditto. src/keyboard.c (interrupt_signal, handle_interrupt): Updated documentation. src/process.c (add_keyboard_wait_descriptor): Added docs. src/sysdep.c (init_all_sys_modes, init_sys_modes) (reset_all_sys_modes): Added docs. src/term.c (tty_ring_bell, tty_set_terminal_modes) (tty_reset_terminal_modes, tty_update_end, set_terminal_window) (tty_set_terminal_window, clear_to_end, tty_clear_to_end) (tty_clear_frame, tty_clear_end_of_line, write_glyphs) (tty_write_glyphs, insert_glyphs, tty_insert_glyphs, delete_glyphs) (tty_delete_glyphs, tty_ins_del_lines, get_named_tty_display) (init_initial_display, delete_tty): Added docs. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-65
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 25 Jan 2004 00:43:38 +0000
parents 32bf8e7cc0c2
children 77cfe20c109c
comparison
equal deleted inserted replaced
83024:e66f69c4f2c5 83025:c66ebcc29777
10229 /* Tell handle_interrupt not to throw back to read_char, */ 10229 /* Tell handle_interrupt not to throw back to read_char, */
10230 waiting_for_input = 0; 10230 waiting_for_input = 0;
10231 input_available_clear_time = 0; 10231 input_available_clear_time = 0;
10232 } 10232 }
10233 10233
10234 /* This routine is called at interrupt level in response to C-g. 10234 /* The SIGINT handler.
10235 10235
10236 If interrupt_input, this is the handler for SIGINT. Otherwise, it 10236 If we have a frame on the controlling tty, the SIGINT was generated
10237 is called from kbd_buffer_store_event, in handling SIGIO or 10237 by C-g, so we call handle_interrupt. Otherwise, the handler kills
10238 SIGTINT. 10238 Emacs. */
10239
10240 If `waiting_for_input' is non zero, then unless `echoing' is
10241 nonzero, immediately throw back to read_char.
10242
10243 Otherwise it sets the Lisp variable quit-flag not-nil. This causes
10244 eval to throw, when it gets a chance. If quit-flag is already
10245 non-nil, it stops the job right away.
10246
10247 XXX This comment needs to be updated. */
10248 10239
10249 static SIGTYPE 10240 static SIGTYPE
10250 interrupt_signal (signalnum) /* If we don't have an argument, */ 10241 interrupt_signal (signalnum) /* If we don't have an argument, */
10251 int signalnum; /* some compilers complain in signal calls. */ 10242 int signalnum; /* some compilers complain in signal calls. */
10252 { 10243 {
10278 interrupt key on secondary ttys, so the SIGINT must have come 10269 interrupt key on secondary ttys, so the SIGINT must have come
10279 from the controlling tty. */ 10270 from the controlling tty. */
10280 internal_last_event_frame = display->display_info.tty->top_frame; 10271 internal_last_event_frame = display->display_info.tty->top_frame;
10281 10272
10282 handle_interrupt (); 10273 handle_interrupt ();
10283
10284 } 10274 }
10285 10275
10286 errno = old_errno; 10276 errno = old_errno;
10287 } 10277 }
10288 10278
10289 /* C-g processing, signal independent code. 10279 /* This routine is called at interrupt level in response to C-g.
10290 10280
10291 XXX Expand this comment. */ 10281 It is called from the SIGINT handler or kbd_buffer_store_event.
10282
10283 If `waiting_for_input' is non zero, then unless `echoing' is
10284 nonzero, immediately throw back to read_char.
10285
10286 Otherwise it sets the Lisp variable quit-flag not-nil. This causes
10287 eval to throw, when it gets a chance. If quit-flag is already
10288 non-nil, it stops the job right away. */
10289
10292 static void 10290 static void
10293 handle_interrupt () 10291 handle_interrupt ()
10294 { 10292 {
10295 char c; 10293 char c;
10296 struct frame *sf = SELECTED_FRAME (); 10294 struct frame *sf = SELECTED_FRAME ();