comparison src/ChangeLog.multi-tty @ 83689:aabfc0168925

Some more tidying and simplification pending merge.
author Glenn Morris <rgm@gnu.org>
date Tue, 28 Aug 2007 06:56:37 +0000
parents e95ba23e6638
children 6ca88c61f592
comparison
equal deleted inserted replaced
83688:b97a348dd7c7 83689:aabfc0168925
16 16
17 * xselect.c (x_handle_selection_clear): Only access 17 * xselect.c (x_handle_selection_clear): Only access
18 terminal->kboard when MULTI_KBOARD is defined. 18 terminal->kboard when MULTI_KBOARD is defined.
19 19
20 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD 20 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21 is defined. Better initialize ttys in windows. Use terminal 21 is defined. Better initialize ttys in windows. Use terminal
22 specific mouse_position_hook. 22 specific mouse_position_hook.
23 23
24 * sysdep.c: Comment out text after #endif. 24 * sysdep.c: Comment out text after #endif.
25 25
26 * config.in: Disable multi-keyboard support on a mac. 26 * config.in: Disable multi-keyboard support on a mac.
45 (Fx_popup_menu): Use terminal specific mouse_position_hook. 45 (Fx_popup_menu): Use terminal specific mouse_position_hook.
46 46
47 * macfns.c (x_set_mouse_color): Get rif from the frame. 47 * macfns.c (x_set_mouse_color): Get rif from the frame.
48 (x_set_tool_bar_lines): Don't use updating_frame. 48 (x_set_tool_bar_lines): Don't use updating_frame.
49 (mac_window): Add 2 new parameters for consistency with other 49 (mac_window): Add 2 new parameters for consistency with other
50 systems. 50 systems.
51 (Fx_create_frame): Fix doc string. Rename the parameter. 51 (Fx_create_frame): Fix doc string. Rename the parameter.
52 (Fx_create_frame): Set the frame parameters following what is done 52 (Fx_create_frame): Set the frame parameters following what is done
53 in X11 and w32. 53 in X11 and w32.
54 (Fx_open_connection): Remove window-system check. 54 (Fx_open_connection): Remove window-system check.
55 (start_hourglass): Likewise. 55 (start_hourglass): Likewise.
56 (x_create_tip_frame): Get the keyboard from the terminal. 56 (x_create_tip_frame): Get the keyboard from the terminal.
85 (w32_term_init): Create a terminal. 85 (w32_term_init): Create a terminal.
86 (w32_initialize): Move terminal specific initialization to 86 (w32_initialize): Move terminal specific initialization to
87 w32_create_terminal. 87 w32_create_terminal.
88 88
89 * makefile.w32-in: Update dependancies from Makefile.in 89 * makefile.w32-in: Update dependancies from Makefile.in
90 (OBJ1): Add terminal.$(O)
90 91
91 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD 92 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD
92 defined. 93 defined.
93 (make_terminal_frame) [WINDOWSNT]: Initialize terminal. 94 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
94 95
95 * keyboard.c (restore_kboard_configuration): Only define when 96 * keyboard.c (restore_kboard_configuration): Only define when
96 MULTI_KBOARD defined.
97
98 * terminal.c (init_initial_terminal): Only set initial_kboard when
99 MULTI_KBOARD defined. 97 MULTI_KBOARD defined.
100 98
101 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: Don't 99 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: Don't
102 define function body. 100 define function body.
103 (init_tty) [WINDOWSNT]: Use selected_frame for initializing. 101 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
128 (create_w32cons_output): New function. 126 (create_w32cons_output): New function.
129 127
130 * w32menu.c (Fx_popup_menu): Use terminal specific 128 * w32menu.c (Fx_popup_menu): Use terminal specific
131 mouse_position_hook. 129 mouse_position_hook.
132 130
133 * makefile.w32-in (OBJ1): Add terminal.$(O)
134
135 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. 131 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
136 132
133 0000-00-00 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
134
135 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
136 Fix get_named_tty calls for the controlling tty.
137
138 0000-00-00 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
139
140 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
141
142 0000-00-00 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
143
144 * term.c (tty_insert_glyphs): Add missing first parameter.
145
137 0000-00-00 Karoly Lorentey <karoly@lorentey.hu> 146 0000-00-00 Karoly Lorentey <karoly@lorentey.hu>
138 147
139 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): 148 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
140 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): 149 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
141 Remove redundant definition. 150 Remove redundant definition.
142 151
143 * macfns.c (x_set_mouse_color,x_make_gc): Use 152 * macfns.c (x_set_mouse_color,x_make_gc): Use
144 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 153 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
145 154
146 * msdos.c (ScreenVisualBell,internal_terminal_init): Use 155 * msdos.c (ScreenVisualBell,internal_terminal_init): Use
148 * w32term.c (x_free_frame_resources): Use 157 * w32term.c (x_free_frame_resources): Use
149 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. 158 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
150 * w32term.c (w32_initialize): Use the accessor macros for terminal 159 * w32term.c (w32_initialize): Use the accessor macros for terminal
151 characteristics. 160 characteristics.
152 161
153 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. Use 162 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
154 the accessor macros for terminal characteristics. 163 Use the accessor macros for terminal characteristics.
155 * msdos.c (internal_terminal_init): Use the accessor macros for 164 * msdos.c (internal_terminal_init): Use the accessor macros for
156 terminal characteristics. 165 terminal characteristics.
157 166
158 * cm.h (emacs_tputs): New macro to set current_tty, and then call 167 * cm.h (emacs_tputs): New macro to set current_tty, and then call
159 tputs(). 168 tputs().
160 (current_tty): New variable, for cmputc(). 169 (current_tty): New variable, for cmputc().
161 (cmcheckmagic, cmputc, cmgoto): Added prototypes. 170 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
162 171
163 * cm.c (current_tty): New variable, for cmputc(). 172 * cm.c (current_tty): New variable, for cmputc().
164 (cmputc): Use it. 173 (cmputc): Use it.
165 (cmcheckmagic): Added tty parameter, look up terminal streams 174 (cmcheckmagic): Add tty parameter, look up terminal streams
166 there. 175 there.
167 (calccost): Added tty parameter. Use emacs_tputs() instead of 176 (calccost): Add tty parameter. Use emacs_tputs() instead of
168 tputs(). 177 tputs().
169 (cmgoto): Added tty parameter. Pass it on to calccost(). Use 178 (cmgoto): Add tty parameter. Pass it on to calccost(). Use
170 emacs_tputs() instead of tputs(). 179 emacs_tputs() instead of tputs().
171 180
172 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. 181 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
173 (internal_condition_case, internal_condition_case_1) 182 (internal_condition_case, internal_condition_case_1)
174 (internal_condition_case_2): Don't abort when x_catching_errors. 183 (internal_condition_case_2): Don't abort when x_catching_errors.
175 184
176 * keymap.h (Fset_keymap_parent): Add EXFUN. 185 * keymap.h (Fset_keymap_parent): Add EXFUN.
177 186
178 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty 187 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty
179 terminals. 188 terminals.
180 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to 189 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
181 prevent crashes caused by bogus longjmps in read_char. 190 prevent crashes caused by bogus longjmps in read_char.
182 191
183 * termopts.h (no_redraw_on_reenter): Declare. 192 * termopts.h (no_redraw_on_reenter): Declare.
184 193
185 2007-04-22 Karoly Lorentey <karoly@lorentey.hu> 194 2007-04-22 Karoly Lorentey <karoly@lorentey.hu>
197 frames. 206 frames.
198 207
199 2006-10-14 Karoly Lorentey <lorentey@elte.hu> 208 2006-10-14 Karoly Lorentey <lorentey@elte.hu>
200 209
201 * alloc.c (emacs_blocked_malloc): Disable mallopt call. 210 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
202
203 2006-07-29 Karoly Lorentey <lorentey@elte.hu>
204
205 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
206 Fix get_named_tty calls for the controlling tty.
207 (Patch by Kalle Olavi Niemitalo <kon@iki.fi>)
208 211
209 2006-07-29 Karoly Lorentey <lorentey@elte.hu> 212 2006-07-29 Karoly Lorentey <lorentey@elte.hu>
210 213
211 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: 214 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]:
212 Rename from Fmenu_bar_open. 215 Rename from Fmenu_bar_open.
256 Doc update. 259 Doc update.
257 260
258 * termhooks.h (terminal) <name>: Explain why identifying terminals 261 * termhooks.h (terminal) <name>: Explain why identifying terminals
259 by name is a bad idea. 262 by name is a bad idea.
260 263
261 * terminal.c (delete_terminal): Doc update.
262
263 * xterm.c (XTread_socket): Disable loop on all X displays. 264 * xterm.c (XTread_socket): Disable loop on all X displays.
264 265
265 * xterm.c (x_delete_display): Doc update to reflect changes in 266 * xterm.c (x_delete_display): Doc update to reflect changes in
266 delete_terminal. 267 delete_terminal.
267 268
275 276
276 * termhooks.h (terminal) <deleted>: New member. 277 * termhooks.h (terminal) <deleted>: New member.
277 278
278 * term.c (delete_tty): Use it. 279 * term.c (delete_tty): Use it.
279 (deleting_tty): Remove old variable. 280 (deleting_tty): Remove old variable.
280
281 * terminal.c (delete_terminal): Use terminal->deleted.
282 281
283 * xterm.c (x_delete_terminal): Use terminal->deleted. Delete all 282 * xterm.c (x_delete_terminal): Use terminal->deleted. Delete all
284 frames on the display explicitly. 283 frames on the display explicitly.
285 284
286 2006-05-20 Karoly Lorentey <lorentey@elte.hu> 285 2006-05-20 Karoly Lorentey <lorentey@elte.hu>
358 * xfns.c (Fx_create_frame): Use `store_frame_param' to set 357 * xfns.c (Fx_create_frame): Use `store_frame_param' to set
359 `window-system' frame parameter, and make sure it overrides any 358 `window-system' frame parameter, and make sure it overrides any
360 user-supplied setting. 359 user-supplied setting.
361 360
362 * xfns.c (x_icon): Disable redundant call to 361 * xfns.c (x_icon): Disable redundant call to
363 `x_wm_set_window_state'. (Also applied in CVS.) 362 `x_wm_set_window_state'. (Also applied in CVS.)
364 363
365 2006-03-08 Karoly Lorentey <lorentey@elte.hu> 364 2006-03-08 Karoly Lorentey <lorentey@elte.hu>
366 365
367 * frame.c (Fmake_terminal_frame): Handle NULL tty names correctly. 366 * frame.c (Fmake_terminal_frame): Handle NULL tty names correctly.
368 367
408 parameter. Use it in call to `read_char'. 407 parameter. Use it in call to `read_char'.
409 408
410 2006-01-17 Karoly Lorentey <lorentey@elte.hu> 409 2006-01-17 Karoly Lorentey <lorentey@elte.hu>
411 410
412 * Makefile.in (SOME_MACHINE_LISP): Fix typo. 411 * Makefile.in (SOME_MACHINE_LISP): Fix typo.
412 (lisp, shortlisp): Add termdev.elc.
413 413
414 2006-01-11 Karoly Lorentey <lorentey@elte.hu> 414 2006-01-11 Karoly Lorentey <lorentey@elte.hu>
415 415
416 * process.c (Fmake_network_process): Don't unrequest_sigio on modern 416 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
417 systems. 417 systems.
423 423
424 2006-01-05 Karoly Lorentey <lorentey@elte.hu> 424 2006-01-05 Karoly Lorentey <lorentey@elte.hu>
425 425
426 * keyboard.c (read_char): Enhance comment before extra longjmp to 426 * keyboard.c (read_char): Enhance comment before extra longjmp to
427 wrong_kboard_jmpbuf. 427 wrong_kboard_jmpbuf.
428 (read_key_sequence): Handle deleted interrupted_kboards correctly; that 428 (read_key_sequence): Handle deleted interrupted_kboards correctly;
429 is a legal case. 429 that is a legal case.
430 430
431 2006-01-03 Karoly Lorentey <lorentey@elte.hu> 431 2006-01-03 Karoly Lorentey <lorentey@elte.hu>
432 432
433 * callint.c (Fcall_interactively): Update call to 433 * callint.c (Fcall_interactively): Update call to
434 `temporarily_switch_to_single_kboard'. 434 `temporarily_switch_to_single_kboard'.
504 504
505 2005-12-31 Karoly Lorentey <lorentey@elte.hu> 505 2005-12-31 Karoly Lorentey <lorentey@elte.hu>
506 506
507 * frame.c (Fframe_with_environment): Fix typo. 507 * frame.c (Fframe_with_environment): Fix typo.
508 508
509 2005-12-31 Karoly Lorentey <lorentey@elte.hu>
510
511 * terminal.c: Include <stdio.h>.
512
513 2005-12-30 Karoly Lorentey <lorentey@elte.hu> 509 2005-12-30 Karoly Lorentey <lorentey@elte.hu>
514 510
515 * xdisp.c (get_glyph_string_clip_rects): Add extra parentheses and 511 * xdisp.c (get_glyph_string_clip_rects): Add extra parentheses and
516 braces to prevent compiler warnings. 512 braces to prevent compiler warnings.
517 (calc_pixel_width_or_height): Add xassert to check that the 513 (calc_pixel_width_or_height): Add xassert to check that the
547 543
548 * lisp.h (set_process_environment): Rename to `set_global_environment'. 544 * lisp.h (set_process_environment): Rename to `set_global_environment'.
549 (device): Rename to `terminal'. 545 (device): Rename to `terminal'.
550 546
551 * dispextern.h: Update declarations and macro definitions. 547 * dispextern.h: Update declarations and macro definitions.
552
553 * terminal.c (device_list): Rename to `terminal_list'.
554 (next_device_id): Rename to `next_terminal_id'.
555 (initial_device): Rename to `initial_terminal'.
556 (get_device): Rename to `get_terminal'.
557 (create_device): Rename to `create_terminal'.
558 (mark_devices): Rename to `mark_terminals'.
559 (delete_device): Rename to `delete_terminal'.
560 (Fdelete_display): Rename to `Fdelete_terminal'.
561 (Fframe_terminal): Move here from frame.c.
562 (Fdisplay_live_p): Rename to `Fterminal_live_p'.
563 (Fdisplay_list): Rename to `Fterminal_list'.
564 (Fdisplay_name): Rename to `Fterminal_name'.
565 (init_initial_device): Rename to `init_initial_terminal'.
566 (delete_initial_device): Rename to `delete_initial_terminal'.
567 (ring_bell, update_begin, update_end, set_terminal_window)
568 (cursor_to, raw_cursor_to, clear_to_end, clear_frame)
569 (clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
570 (ins_del_lines, get_terminal_param, store_terminal_param)
571 (Fterminal_parameters, Fterminal_parameter)
572 (Fmodify_terminal_parameters, Fset_terminal_parameter)
573 (syms_of_terminal): Update for renames.
574 548
575 * term.c (get_tty_device): Rename to `get_tty_terminal'. Update. 549 * term.c (get_tty_device): Rename to `get_tty_terminal'. Update.
576 (Fdisplay_tty_type): Rename to `Ftty_type'. 550 (Fdisplay_tty_type): Rename to `Ftty_type'.
577 (Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'. 551 (Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'.
578 (delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes) 552 (delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes)
644 618
645 * callproc.c (child_setup, getenv_internal, Fgetenv_internal): 619 * callproc.c (child_setup, getenv_internal, Fgetenv_internal):
646 Store the local environment in a frame (not terminal) parameter. 620 Store the local environment in a frame (not terminal) parameter.
647 Update doc strings. 621 Update doc strings.
648 (syms_of_callproc): Update doc strings. 622 (syms_of_callproc): Update doc strings.
649 (Qenvironment): Moved to frame.c. 623 (Qenvironment): Move to frame.c.
650 624
651 * frame.c (Qenvironment): Move here from callproc.c. 625 * frame.c (Qenvironment): Move here from callproc.c.
652 (Fdelete_frame): Don't allow other frames to refer to a deleted frame 626 (Fdelete_frame): Don't allow other frames to refer to a deleted frame
653 in their 'environment parameter. 627 in their 'environment parameter.
654 (Fframe_with_environment): New function. 628 (Fframe_with_environment): New function.
842 816
843 * keyboard.c (mark_kboards): Also mark Vkeyboard_translate_table. 817 * keyboard.c (mark_kboards): Also mark Vkeyboard_translate_table.
844 818
845 2005-10-28 Karoly Lorentey <lorentey@elte.hu> 819 2005-10-28 Karoly Lorentey <lorentey@elte.hu>
846 820
847 * keyboard.c (Vkeyboard_translate_table): Moved to struct kboard. 821 * keyboard.c (Vkeyboard_translate_table): Move to struct kboard.
848 * keyboard.h (Vkeyboard_translate_table): Moved to struct kboard. 822 * keyboard.h (Vkeyboard_translate_table): Move to struct kboard.
849 823
850 * keyboard.c (read_char): Use current_kboard to access 824 * keyboard.c (read_char): Use current_kboard to access
851 Vkeyboard_translate_table. 825 Vkeyboard_translate_table.
852 * keymap.c (Fdescribe_buffer_bindings): Ditto. 826 * keymap.c (Fdescribe_buffer_bindings): Ditto.
853 827
854 * keyboard.c (init_kboard): Initialize Vkeyboard_translate_table. 828 * keyboard.c (init_kboard): Initialize Vkeyboard_translate_table.
855 829
856 * keyboard.c (syms_of_keyboard): Use DEFVAR_KBOARD to define 830 * keyboard.c (syms_of_keyboard): Use DEFVAR_KBOARD to define
857 Vkeyboard_translate_table. Update doc strings. 831 Vkeyboard_translate_table. Update doc strings.
858 832
859 2005-10-28 Karoly Lorentey <lorentey@elte.hu> 833 2005-10-28 Karoly Lorentey <lorentey@elte.hu>
860 834
861 * keyboard.c (syms_of_keyboard): Update docs of 835 * keyboard.c (syms_of_keyboard): Update docs of
862 local-function-key-map and function-key-map. 836 local-function-key-map and function-key-map.
883 857
884 * keyboard.c: Add forward declaration of restore_kboard_configuration. 858 * keyboard.c: Add forward declaration of restore_kboard_configuration.
885 859
886 * callint.c (Fcall_interactively): Use 860 * callint.c (Fcall_interactively): Use
887 temporarily_switch_to_single_kboard instead of single_kboard_state. 861 temporarily_switch_to_single_kboard instead of single_kboard_state.
888 Make sure it is correctly unwinded. 862 Make sure it is correctly unwound.
889 863
890 * keyboard.c (recursive_edit_unwind): Remove single_kboard stuff. 864 * keyboard.c (recursive_edit_unwind): Remove single_kboard stuff.
891 (Frecursive_edit): Use temporarily_switch_to_single_kboard for 865 (Frecursive_edit): Use temporarily_switch_to_single_kboard for
892 single_kboard state management. 866 single_kboard state management.
893 867
1052 * term.c (term_init): Move maybe_fatal declaration to top-level to 1026 * term.c (term_init): Move maybe_fatal declaration to top-level to
1053 prevent complaints from GCC 4.0. 1027 prevent complaints from GCC 4.0.
1054 1028
1055 2005-07-06 Karoly Lorentey <lorentey@elte.hu> 1029 2005-07-06 Karoly Lorentey <lorentey@elte.hu>
1056 1030
1057 * frame.c (syms_of_frame): Add warning to `delete-frame-functions' description. 1031 * frame.c (syms_of_frame): Add warning to `delete-frame-functions'
1032 description.
1058 1033
1059 2005-07-03 Karoly Lorentey <lorentey@elte.hu> 1034 2005-07-03 Karoly Lorentey <lorentey@elte.hu>
1060 1035
1061 * term.c (tty_set_terminal_modes, tty_reset_terminal_modes): Flush 1036 * term.c (tty_set_terminal_modes, tty_reset_terminal_modes): Flush
1062 tty output before returning. 1037 tty output before returning.
1216 1191
1217 2005-03-19 Karoly Lorentey <lorentey@elte.hu> 1192 2005-03-19 Karoly Lorentey <lorentey@elte.hu>
1218 1193
1219 * xfns.c (Fx_close_connection): Remove declaration cruft. 1194 * xfns.c (Fx_close_connection): Remove declaration cruft.
1220 1195
1221 * xterm.c (x_delete_frame_display): Declare i. Fix initialization of 1196 * xterm.c (x_delete_frame_display): Declare i. Fix initialization of
1222 dpyinfo. 1197 dpyinfo.
1223 1198
1224 2005-03-19 Karoly Lorentey <lorentey@elte.hu> 1199 2005-03-19 Karoly Lorentey <lorentey@elte.hu>
1225 1200
1226 * xfns.c (Fx_close_connection): Move code to x_delete_frame_display. 1201 * xfns.c (Fx_close_connection): Move code to x_delete_frame_display.
1285 vertical borders on tty frames. 1260 vertical borders on tty frames.
1286 (display_line): Remove superflous #ifdefs. 1261 (display_line): Remove superflous #ifdefs.
1287 1262
1288 2004-10-08 Karoly Lorentey <lorentey@elte.hu> 1263 2004-10-08 Karoly Lorentey <lorentey@elte.hu>
1289 1264
1290 * fringe.c (init_fringe_bitmap): Removed C99ism. 1265 * fringe.c (init_fringe_bitmap): Remove C99ism.
1291 1266
1292 2004-09-13 Karoly Lorentey <lorentey@elte.hu> 1267 2004-09-13 Karoly Lorentey <lorentey@elte.hu>
1293 1268
1294 * Makefile.in (minibuf.o): Fix typo. 1269 * Makefile.in (minibuf.o): Fix typo.
1295 1270
1322 * term.c (get_tty_display): Don't signal an error on the initial frame. 1297 * term.c (get_tty_display): Don't signal an error on the initial frame.
1323 1298
1324 2004-07-04 Karoly Lorentey <lorentey@elte.hu> 1299 2004-07-04 Karoly Lorentey <lorentey@elte.hu>
1325 1300
1326 * dispextern.h (get_display, Fdisplay_tty_type): New prototypes. 1301 * dispextern.h (get_display, Fdisplay_tty_type): New prototypes.
1327 (Fframe_tty_type): Removed. 1302 (Fframe_tty_type): Remove.
1328 1303
1329 * dispnew.c (init_display): Use Fdisplay_tty_type, not Fframe_tty_type. 1304 * dispnew.c (init_display): Use Fdisplay_tty_type, not Fframe_tty_type.
1330 1305
1331 * frame.c (Qdisplay_id, Qdisplay_live_p): New symbols. 1306 * frame.c (Qdisplay_id, Qdisplay_live_p): New symbols.
1332 (make_terminal_frame): Get display as a parameter. 1307 (make_terminal_frame): Get display as a parameter.
1335 (Fframe_display): New function. 1310 (Fframe_display): New function.
1336 (Fdelete_frame): Stop if the hook deleted the frame. 1311 (Fdelete_frame): Stop if the hook deleted the frame.
1337 (syms_of_frame): Register new stuff. 1312 (syms_of_frame): Register new stuff.
1338 1313
1339 * frame.h (Qdisplay_id, Qdisplay_live_p, make_terminal_frame): 1314 * frame.h (Qdisplay_id, Qdisplay_live_p, make_terminal_frame):
1340 Updated prototypes. 1315 Update prototypes.
1341 1316
1342 * keyboard.c (interrupt_signal): Updated comment. 1317 * keyboard.c (interrupt_signal): Update comment.
1343 1318
1344 * term.c (Vdelete_tty_after_functions): Removed variable. 1319 * term.c (Vdelete_tty_after_functions): Remove variable.
1345 (Qframe_tty_name, Qframe_tty_type): Removed. 1320 (Qframe_tty_name, Qframe_tty_type): Remove.
1346 (next_display_id): New var. 1321 (next_display_id): New var.
1347 (tty_ring_bell): Don't do anything on suspended frames. 1322 (tty_ring_bell): Don't do anything on suspended frames.
1348 (Ftty_display_color_p, Ftty_display_color_cells): Doc update. 1323 (Ftty_display_color_p, Ftty_display_color_cells): Doc update.
1349 (get_display): New function. 1324 (get_display): New function.
1350 (get_tty_display): Use it. 1325 (get_tty_display): Use it.
1351 (get_named_tty_display): Ignore suspended displays. 1326 (get_named_tty_display): Ignore suspended displays.
1352 (Fframe_tty_name): Renamed to Fdisplay_name. Handle all kinds of 1327 (Fframe_tty_name): Rename to Fdisplay_name. Handle all kinds of
1353 displays. 1328 displays.
1354 (Fframe_tty_type): Renamed to Fdisplay_tty_type. 1329 (Fframe_tty_type): Rename to Fdisplay_tty_type.
1355 (init_initial_display): Set display name. 1330 (init_initial_display): Set display name.
1356 (term_init): Allow more displays on the same device. Set display name. 1331 (term_init): Allow more displays on the same device. Set display name.
1357 (Fdelete_tty): Removed. 1332 (Fdelete_tty): Remove.
1358 (delete_tty): Don't run hooks. 1333 (delete_tty): Don't run hooks.
1359 (create_display): Set display id. 1334 (create_display): Set display id.
1360 (delete_display): Free display name. 1335 (delete_display): Free display name.
1361 (Fdelete_display, Fdisplay_live_p, Fdisplay_list): New functions. 1336 (Fdelete_display, Fdisplay_live_p, Fdisplay_list): New functions.
1362 (Fsuspend_tty): Call hook with display id. Doc update. 1337 (Fsuspend_tty): Call hook with display id. Doc update.
1363 (Fresume_tty): Refuse to resume when there is already an active display 1338 (Fresume_tty): Refuse to resume when there is already an active display
1364 on the same device. Call hook with display id. Doc update. 1339 on the same device. Call hook with display id. Doc update.
1365 (syms_of_term): Reflect above changes. 1340 (syms_of_term): Reflect above changes.
1366 1341
1367 * termhooks.h (struct display): Added `id' and `name' members. 1342 * termhooks.h (struct display): Add `id' and `name' members.
1368 (DISPLAY_ACTIVE_P): New macro. 1343 (DISPLAY_ACTIVE_P): New macro.
1369 1344
1370 * xfns.c (check_x_display_info): Handle display ids. 1345 * xfns.c (check_x_display_info): Handle display ids.
1371 (Fx_create_frame): Try to get display from `display-id' parameter. 1346 (Fx_create_frame): Try to get display from `display-id' parameter.
1372 1347
1376 2004-06-15 Karoly Lorentey <lorentey@elte.hu> 1351 2004-06-15 Karoly Lorentey <lorentey@elte.hu>
1377 1352
1378 * term.c (Ftty_display_color_cells): Return 0 in case of an error, 1353 * term.c (Ftty_display_color_cells): Return 0 in case of an error,
1379 not nil. 1354 not nil.
1380 1355
1381 2004-06-11 Karoly Lorentey <lorentey@elte.hu>
1382
1383 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
1384 (Contributed by ARISAWA Akihiro <ari@mbf.ocn.ne.jp>).
1385
1386 2004-06-08 Karoly Lorentey <lorentey@elte.hu> 1356 2004-06-08 Karoly Lorentey <lorentey@elte.hu>
1387 1357
1388 * term.c (dissociate_if_controlling_tty): On some systems TIOCNOTTY 1358 * term.c (dissociate_if_controlling_tty): On some systems TIOCNOTTY
1389 works only on /dev/tty. Adapt the function accordingly. 1359 works only on /dev/tty. Adapt the function accordingly.
1390 1360
1398 * keyboard.c (command_loop): Clear single_kboard each time Emacs 1368 * keyboard.c (command_loop): Clear single_kboard each time Emacs
1399 returns to top-level. 1369 returns to top-level.
1400 1370
1401 2004-06-06 Karoly Lorentey <lorentey@elte.hu> 1371 2004-06-06 Karoly Lorentey <lorentey@elte.hu>
1402 1372
1403 * term.c (tty_insert_glyphs): Added missing first 1373 * term.c (encode_terminal_code): Convert to use ANSI prototype
1404 parameter (contributed by Yoshiaki Kasahara 1374 syntax.
1405 <kasahara@nc.kyushu-u.ac.jp>).
1406 (encode_terminal_code): Converted to use ANSI prototype syntax.
1407 1375
1408 2004-06-05 Karoly Lorentey <lorentey@elte.hu> 1376 2004-06-05 Karoly Lorentey <lorentey@elte.hu>
1409 1377
1410 * dispnew.c (init_display): Always install handler for SIGWINCH. 1378 * dispnew.c (init_display): Always install handler for SIGWINCH.
1411 (Reported by Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>.) 1379 Reported by Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>.
1412 1380
1413 * term.c: Massive updates throuout the file. 1381 * term.c: Massive updates throuout the file.
1414 (TS_*, TN_*): Moved to struct tty_output. 1382 (TS_*, TN_*)
1415 (RPov, delete_in_insert_mode se_is_so, costs_set, insert_mode): 1383 (RPov, delete_in_insert_mode se_is_so, costs_set, insert_mode)
1416 Ditto. 1384 (standout_mode, specified_window, tty_cursor_hidden): Move to
1417 (standout_mode, specified_window, tty_cursor_hidden): Ditto. 1385 struct tty_output.
1418 (tty_set_terminal_modes, tty_reset_terminal_modes): New functions. 1386 (tty_set_terminal_modes, tty_reset_terminal_modes)
1419 (turn_on_insert, turn_off_insert): Added tty parameter. 1387 (delete_tty, delete_tty_1): New functions.
1420 (turn_on_highlight, turn_off_highlight, toggle_highlight): Added 1388 (turn_on_insert, turn_off_insert)
1421 tty parameter. 1389 (turn_on_highlight, turn_off_highlight, toggle_highlight)
1422 (tty_hide_cursor, tty_show_cursor): Ditto. 1390 (tty_hide_cursor, tty_show_cursor)
1423 (background_highlight, highlight_if_desired): Ditto. 1391 (background_highlight, highlight_if_desired): Add tty parameter.
1424 (tty_capable_p): Changed first parameter to tty_output. 1392 (tty_capable_p): Change first parameter to tty_output.
1425 (term_init): Make sure top_frame is initialized. Don't exit on 1393 (term_init): Make sure top_frame is initialized. Don't exit on
1426 errors if this would have been a secondary terminal. Call 1394 errors if this would have been a secondary terminal. Call
1427 set_terminal_modes on the end. 1395 set_terminal_modes on the end.
1428 (delete_tty): New function.
1429 (delete_tty_1): New function.
1430 (print_all_frames): New function, marginally useful for debugging. 1396 (print_all_frames): New function, marginally useful for debugging.
1431 1397
1432 * termchar.h (struct tty_output): Changed old_tty to be a pointer. 1398 * termchar.h (struct tty_output): Change old_tty to be a pointer.
1433 Removed old_tty_valid member. Added tty-specific variables from 1399 Remove old_tty_valid member. Add tty-specific variables from term.c.
1434 term.c.
1435 1400
1436 * xfaces.c (Ftty_supports_face_attributes_p): Update for new 1401 * xfaces.c (Ftty_supports_face_attributes_p): Update for new
1437 tty_capable_p. 1402 tty_capable_p.
1438 1403
1439 2003-12-25 Karoly Lorentey <lorentey@elte.hu> 1404 2003-12-25 Karoly Lorentey <lorentey@elte.hu>
1440 1405
1441 * term.c (clear_end_of_line): Use updating_frame instead of 1406 * term.c (clear_end_of_line, set_scroll_region, clear_to_end)
1442 selected_frame. 1407 (clear_frame, tty_show_cursor, tty_hide_cursor, turn_on_highlight)
1443 (set_scroll_region, clear_to_end, clear_frame, tty_show_cursor): 1408 (turn_off_highlight, turn_on_insert, turn_off_insert): Use
1444 Ditto. 1409 updating_frame instead of selected_frame.
1445 (tty_hide_cursor, turn_on_highlight, turn_off_highlight): Ditto. 1410
1446 (turn_on_insert, turn_off_insert): Ditto. 1411 * termchar.h (struct terminal): Rename to struct tty_output.
1447 1412 Add name, type, input, output, termscript, old_tty,
1448 * termchar.h (struct terminal): Renamed to struct tty_output.
1449 Added name, type, input, output, termscript, old_tty,
1450 term_initted, old_tty_valid, background_pixel, foreground_pixel, 1413 term_initted, old_tty_valid, background_pixel, foreground_pixel,
1451 next fields. 1414 next fields.
1452 (TTY_*): New macros. 1415 (TTY_*): New macros.
1453 (CURRENT_TERMINAL): New macro.
1454 (tty_list): New variable. 1416 (tty_list): New variable.
1455 (FRAME_TTY): New function. 1417 (FRAME_TTY): New function.
1456 (TTY_NAME, TTY_TYPE): New macros. 1418 (CURRENT_TERMINAL, TTY_NAME, TTY_TYPE): New macros.
1457 1419
1458 * term.c (tty_list): New variable. 1420 * term.c (tty_list): New variable.
1459 (OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF): Added tty 1421 (OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF)
1460 parameter. 1422 (set_terminal_modes, reset_terminal_modes): Add tty parameter.
1461 (set_terminal_modes): Added tty parameter. 1423 (cursor_to, raw_cursor_to): Update cmgoto() calls.
1462 (reset_terminal_modes): Added tty parameter.
1463 (cursor_to, raw_cursor_to): Updated cmgoto() calls.
1464 (clear_end_of_line, write_glyphs): Add indirection to terminal 1424 (clear_end_of_line, write_glyphs): Add indirection to terminal
1465 output, updated cmcheckmagic() calls. 1425 output, update cmcheckmagic() calls.
1466 (get_named_tty): New function. 1426 (get_named_tty, term_dummy_init): New functions.
1467 (term_dummy_init): New function. 1427 (term_init): Add name parameter, add tty_output return value.
1468 (term_init): Added name parameter, added tty_output return value. 1428 Change algorithm to update tty_list. Call init_sys_modes() to
1469 Changed algorithm to update tty_list. Call init_sys_modes() to
1470 set up tty mode on the newly opened terminal device. 1429 set up tty mode on the newly opened terminal device.
1471 (get_current_tty): New function, intended for debugging. 1430 (get_current_tty): New function, intended for debugging.
1472 1431
1473 * termhooks.h (termscript): Removed. 1432 * termhooks.h (termscript): Remove.
1474 1433
1475 * window.c (init_window_once): Call make_terminal_frame with two 1434 * window.c (init_window_once): Call make_terminal_frame with two
1476 zero parameters. 1435 zero parameters.
1477 1436
1478 * dispextern.h (set_terminal_modes, reset_terminal_modes): Added 1437 * dispextern.h (set_terminal_modes, reset_terminal_modes): Add
1479 tty parameter. 1438 tty parameter.
1480 (term_init): Added name parameter (the filename of the terminal 1439 (term_init): Add name parameter (the filename of the terminal
1481 device). Added return value (struct tty_output). 1440 device). Add return value (struct tty_output).
1482 1441
1483 * dispnew.c: Replace CURTTY() with local variables throughout the 1442 * dispnew.c: Replace CURTTY() with local variables throughout the
1484 file (where applicable). 1443 file (where applicable).
1485 (termscript): Moved to struct tty_output. 1444 (termscript): Move to struct tty_output.
1486 (terminal_type): Removed. 1445 (terminal_type): Remove.
1487 1446
1488 * emacs.c (main): Don't call init_sys_modes(), the new term_init() 1447 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
1489 already does that during init_display(). 1448 already does that during init_display().
1490 (shut_down_emacs): Call reset_all_sys_modes() instead of 1449 (shut_down_emacs): Call reset_all_sys_modes() instead of
1491 reset_sys_modes(). 1450 reset_sys_modes().
1492 1451
1493 * frame.c (Qtty, Qtty_type): New variables. 1452 * frame.c (Qtty, Qtty_type): New variables.
1494 (syms_of_frame): Initialize them. 1453 (syms_of_frame): Initialize them.
1495 (tty_display): Removed. 1454 (tty_display): Remove.
1496 (make_terminal_frame): New parameters (tty filename and type). 1455 (make_terminal_frame): New parameters (tty filename and type).
1497 Initialize output_data.tty field instead of output_data.x. Use 1456 Initialize output_data.tty field instead of output_data.x. Use
1498 term_init() to find the right tty_output. (Use term_dummy_init() 1457 term_init() to find the right tty_output. (Use term_dummy_init()
1499 during bootstrap.) 1458 during bootstrap.)
1500 (Fmake_terminal_frame): Get device filename and type from frame 1459 (Fmake_terminal_frame): Get device filename and type from frame
1501 parameters. 1460 parameters.
1502 1461
1503 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Do the 1462 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Do the
1504 right thing if the frame is a tty. 1463 right thing if the frame is a tty.
1505 (struct frame): New member in output_data: tty. 1464 (struct frame): New member in output_data: tty.
1506 (make_terminal_frame): Updated of prototype. 1465 (make_terminal_frame): Update of prototype.
1507 1466
1508 * keyboard.c (Fset_input_mode): Call reset_all_sys_modes(), not 1467 * keyboard.c (Fset_input_mode): Call reset_all_sys_modes(), not
1509 reset_sys_modes(). Ditto with init_sys_modes(). 1468 reset_sys_modes(). Ditto with init_sys_modes().
1510 1469
1511 * lisp.h (tty_output): Added forward declaration. 1470 * lisp.h (tty_output): Add forward declaration.
1512 (init_sys_modes, reset_sys_modes): Updated prototype. 1471 (init_sys_modes, reset_sys_modes): Update prototype.
1513 (init_all_sys_modes, reset_all_sys_modes): New prototypes. 1472 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
1514 1473
1515 * scroll.c: Replace CURTTY() with local variables throughout the 1474 * scroll.c: Replace CURTTY() with local variables throughout the
1516 file (where applicable). 1475 file (where applicable).
1517 1476
1518 * sysdep.c (old_tty, term_initted, old_tty_valid): Moved to struct 1477 * sysdep.c (old_tty, term_initted, old_tty_valid): Move to struct
1519 tty_output. 1478 tty_output.
1520 (init_all_sys_modes): New function. 1479 (init_all_sys_modes): New function.
1521 (init_sys_modes): Added tty_output parameter. Use it. 1480 (init_sys_modes): Add tty_output parameter. Use it.
1522 (reset_all_sys_modes): New function. 1481 (reset_all_sys_modes): New function.
1523 (reset_sys_modes): Added tty_output parameter. Use it. 1482 (reset_sys_modes): Add tty_output parameter. Use it.
1524 1483
1525 * Makefile.in: Update dependencies. 1484 * Makefile.in: Update dependencies.
1526 1485
1527 2003-12-24 Karoly Lorentey <lorentey@elte.hu> 1486 2003-12-24 Karoly Lorentey <lorentey@elte.hu>
1528 1487
1529 * termchar.h (struct terminal): New struct. 1488 * termchar.h (struct terminal): New struct.
1530 (must_write_spaces, min_padding_speed, line_ins_del_ok) 1489 (must_write_spaces, min_padding_speed, line_ins_del_ok)
1531 (char_ins_del_ok, scroll_region_ok, scroll_region_cost) 1490 (char_ins_del_ok, scroll_region_ok, scroll_region_cost)
1532 (memory_below_frame, fast_clear_end_of_line): Moved to struct 1491 (memory_below_frame, fast_clear_end_of_line): Move to struct
1533 terminal. 1492 terminal.
1534 (min_padding_speed, dont_calculate_costs): Commented out (unused). 1493 (min_padding_speed, dont_calculate_costs): Comment out (unused).
1535 1494
1536 * term.c (set_terminal_window, ins_del_lines, calculate_costs) 1495 * term.c (set_terminal_window, ins_del_lines, calculate_costs)
1537 (term_init): Use the accessor macros for terminal characteristics. 1496 (term_init): Use the accessor macros for terminal characteristics.
1538 * dispnew.c (line_hash_code, line_draw_cost) 1497 * dispnew.c (line_hash_code, line_draw_cost)
1539 (direct_output_for_insert, update_frame_1, scrolling) 1498 (direct_output_for_insert, update_frame_1, scrolling)