2006-03-26 Karoly Lorentey <lorentey@elte.hu>
* term.c: Include errno.h.
- (Fcontrolling_tty_p): Compare name with "/dev/tty", not NULL.
(Fresume_tty): Handle errors on reopening ttys. Don't dissociate
if terminal was explicitly opened on the controlling terminal.
(init_tty): Initialize local pointers. Always set name (use
* term.c (get_tty_device): Rename to `get_tty_terminal'. Update.
(Fdisplay_tty_type): Rename to `Ftty_type'.
- (Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'.
(delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes)
(Ftty_display_color_p, Ftty_display_color_cells, get_named_tty)
(Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
* frame.c (Qdevice): Rename to `Qterminal'.
(Qdisplay_live_p): Rename to `Qterminal_live_p'.
(terminal_frame_count): Rename to `tty_frame_count'.
- (Fframe_display): Move to terminal.c, rename to `Fframe_terminal'.
(make_frame_without_minibuffer, make_initial_frame)
(make_terminal_frame, Fmodify_frame_parameters)
(do_switch_frame, Fdelete_frame, Fmouse_position)
(set_terminal_window, cursor_to, raw_cursor_to)
(clear_to_end, clear_frame, clear_end_of_line)
(write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
- (get_device, Fdisplay_name, create_device, delete_device)
- (Fdelete_display, Fdisplay_live_p, Fdisplay_list)
- Move to terminal.c.
+ (get_device, Fdisplay_name, create_device, delete_device): Move to
+ terminal.c.
(syms_of_term): Move their initialization to terminal.c.
* terminal.c: New file.
(cursor_to, raw_cursor_to, clear_to_end, clear_frame)
(clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
(ins_del_lines, get_device, create_device, delete_device)
- (Fdelete_display, Fdisplay_live_p, Fdisplay_list, Fdisplay_name):
- Move here.
+ (Fdisplay_name): Move here.
(mark_devices, get_terminal_param, store_terminal_param)
(Fterminal_parameters, Fterminal_parameter)
(Fmodify_terminal_parameters, Fset_terminal_parameter)
(Fkeyboard_coding_system): Add DISPLAY parameter.
* term.c (get_display): Add THROW parameter.
- (get_tty_display, Fdisplay_name, Fdisplay_tty_type)
- (Fdisplay_controlling_tty_p, Fdelete_display, Fdisplay_live_p):
- Update callers.
+ (get_tty_display, Fdisplay_name, Fdisplay_tty_type): Update callers.
* xfns.c (check_x_display_info): Ditto.
- * frame.c (Fmake_terminal_frame, Fframe_display): Ditto.
+ * frame.c (Fmake_terminal_frame): Ditto.
* dispextern.h (get_display): Update prototype.
2004-07-10 Karoly Lorentey <lorentey@elte.hu>
- * term.c (Fdisplay_controlling_tty_p): New function.
-
- * term.c (syms_of_term): Initialize Sdisplay_controlling_tty_p.
+ * term.c (Fcontrolling_tty_p): New function.
+ (syms_of_term): Initialize Sdisplay_controlling_tty_p.
* keyboard.c (Fsuspend_emacs): Give a better error message when
there are multiple open tty devices.
-
-2004-07-05 Karoly Lorentey <lorentey@elte.hu>
-
- * keyboard.c (interrupt_signal): Don't call fatal_error_signal with
- an extra parameter.
+ (interrupt_signal): Don't call fatal_error_signal with an extra
+ parameter.
2004-07-04 Karoly Lorentey <lorentey@elte.hu>
2004-07-04 Karoly Lorentey <lorentey@elte.hu>
- * dispextern.h (get_display, Fdisplay_tty_type): New prototypes.
+ * dispextern.h (get_display, Fdisplay_tty_type): New prototypes.
(Fframe_tty_type): Remove.
* dispnew.c (init_display): Use Fdisplay_tty_type, not Fframe_tty_type.
(make_terminal_frame): Get display as a parameter.
(Fmake_terminal_frame): Get/create display here; pass it to
make_terminal_frame.
- (Fframe_display): New function.
(Fdelete_frame): Stop if the hook deleted the frame.
(syms_of_frame): Register new stuff.
(delete_tty): Don't run hooks.
(create_display): Set display id.
(delete_display): Free display name.
- (Fdelete_display, Fdisplay_live_p, Fdisplay_list): New functions.
(Fsuspend_tty): Call hook with display id. Doc update.
(Fresume_tty): Refuse to resume when there is already an active display
on the same device. Call hook with display id. Doc update.
* term.c (Ftty_display_color_cells): Return 0 in case of an error,
not nil.
-
-2004-06-08 Karoly Lorentey <lorentey@elte.hu>
-
- * term.c (dissociate_if_controlling_tty): On some systems TIOCNOTTY
+ (dissociate_if_controlling_tty): On some systems TIOCNOTTY
works only on /dev/tty. Adapt the function accordingly.
2004-06-08 Karoly Lorentey <lorentey@elte.hu>
* keyboard.c (interrupt_signal): Don't call Fkill_emacs from a
signal handler; use fatal_error_signal instead.
-
-2004-06-07 Karoly Lorentey <lorentey@elte.hu>
-
- * keyboard.c (command_loop): Clear single_kboard each time Emacs
- returns to top-level.
+ (command_loop): Clear single_kboard each time Emacs returns to
+ top-level.
2004-06-06 Karoly Lorentey <lorentey@elte.hu>
- * term.c (encode_terminal_code): Convert to use ANSI prototype
- syntax.
+ * term.c (encode_terminal_code): Convert to use ANSI prototype syntax.
2004-06-05 Karoly Lorentey <lorentey@elte.hu>
updating_frame instead of selected_frame.
* termchar.h (struct terminal): Rename to struct tty_output.
- Add name, type, input, output, termscript, old_tty,
- term_initted, old_tty_valid, background_pixel, foreground_pixel,
- next fields.
- (TTY_*): New macros.
+ Add name, type, input, output, termscript, old_tty, term_initted,
+ old_tty_valid, background_pixel, foreground_pixel, next fields.
(tty_list): New variable.
(FRAME_TTY): New function.
- (CURRENT_TERMINAL, TTY_NAME, TTY_TYPE): New macros.
+ (TTY_*, CURRENT_TERMINAL, TTY_NAME, TTY_TYPE): New macros.
* term.c (tty_list): New variable.
(OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF)
* termchar.h (struct terminal): New struct.
(must_write_spaces, min_padding_speed, line_ins_del_ok)
(char_ins_del_ok, scroll_region_ok, scroll_region_cost)
- (memory_below_frame, fast_clear_end_of_line): Move to struct
- terminal.
+ (memory_below_frame, fast_clear_end_of_line): Move to struct terminal.
(min_padding_speed, dont_calculate_costs): Comment out (unused).
* term.c (set_terminal_window, ins_del_lines, calculate_costs)
- (term_init): Use the accessor macros for terminal characteristics.
+ (term_init)
* dispnew.c (line_hash_code, line_draw_cost)
(direct_output_for_insert, update_frame_1, scrolling)
- (update_frame_line): Ditto.
+ (update_frame_line):
* scroll.c (calculate_scrolling, calculate_direct_scrolling)
- (scrolling_1, scroll_cost): Ditto.
- * sysdep.c (hft_init): Ditto.
- * xdisp.c (try_window_id): Ditto.
- * xterm.c (x_initialize): Ditto.
+ (scrolling_1, scroll_cost):
+ * sysdep.c (hft_init):
+ * xdisp.c (try_window_id):
+ * xterm.c (x_initialize): Use the accessor macros for terminal
+ characteristics.
2004-07-12 Karoly Lorentey <lorentey@elte.hu>