Mercurial > emacs
comparison src/ChangeLog @ 83767:a39ca39dfa6f
*** empty log message ***
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 29 Aug 2007 21:50:15 +0000 |
parents | 0ce482dc32a6 |
children | 7b7c42786f4a |
comparison
equal
deleted
inserted
replaced
83766:77882096d1d7 | 83767:a39ca39dfa6f |
---|---|
1 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> | |
2 | |
3 * lisp.h (set_initial_environment): Rename from set_global_environment. | |
4 | |
5 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been | |
6 removed by mistake on the multi-tty branch. | |
7 | |
8 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. | |
9 (Fmodify_frame_parameters): Return a value. | |
10 | |
11 * image.c (png_load): Comment-out var only used in commented-out code. | |
12 | |
13 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) | |
14 before passing it to mark_object. | |
15 | |
16 * xfaces.c (internal_resolve_face_name): Return a value. | |
17 (internal_resolve_face_name, resolve_face_name_error): Comment out. | |
18 | |
19 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. | |
20 (x_icon): Comment-out var only used in commented-out code. | |
21 | |
1 2007-08-29 Romain Francoise <romain@orebokech.com> | 22 2007-08-29 Romain Francoise <romain@orebokech.com> |
2 | 23 |
3 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if | 24 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if |
4 QUIT hasn't been provided. | 25 QUIT hasn't been provided. |
5 | 26 |
50 is defined. Better initialize ttys in windows. Use terminal | 71 is defined. Better initialize ttys in windows. Use terminal |
51 specific mouse_position_hook. | 72 specific mouse_position_hook. |
52 | 73 |
53 * termhooks.h (union display_info): Add mac_display_info. | 74 * termhooks.h (union display_info): Add mac_display_info. |
54 | 75 |
55 * w32fns.c (Fx_create_frame): Use kboard from the terminal. Set | 76 * w32fns.c (Fx_create_frame): Use kboard from the terminal. |
56 the default minibuffer frame, window_system and the rest of the | 77 Set the default minibuffer frame, window_system and the rest of the |
57 frame parameters following what is done in X11. | 78 frame parameters following what is done in X11. |
58 | 79 |
59 * w32term.c (w32_initialize): Make static. | 80 * w32term.c (w32_initialize): Make static. |
60 | 81 |
61 * xselect.c (x_handle_selection_clear): Only access | 82 * xselect.c (x_handle_selection_clear): Only access |
76 MULTI_KBOARD defined. | 97 MULTI_KBOARD defined. |
77 | 98 |
78 * makefile.w32-in: Update dependancies from Makefile.in | 99 * makefile.w32-in: Update dependancies from Makefile.in |
79 (OBJ1): Add terminal.$(O) | 100 (OBJ1): Add terminal.$(O) |
80 | 101 |
81 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: Don't | 102 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: |
82 define function body. | 103 Don't define function body. |
83 (init_tty) [WINDOWSNT]: Use selected_frame for initializing. | 104 (init_tty) [WINDOWSNT]: Use selected_frame for initializing. |
84 | 105 |
85 * termhooks.h (display_info) [WINDOWSNT]: Add w32. | 106 * termhooks.h (display_info) [WINDOWSNT]: Add w32. |
86 | 107 |
87 * w32.c (request_sigio, unrequest_sigio): Remove. | 108 * w32.c (request_sigio, unrequest_sigio): Remove. |
89 * w32console.c (w32con_move_cursor, w32con_clear_to_end) | 110 * w32console.c (w32con_move_cursor, w32con_clear_to_end) |
90 (w32con_clear_frame, w32con_clear_end_of_line) | 111 (w32con_clear_frame, w32con_clear_end_of_line) |
91 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) | 112 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) |
92 (w32con_delete_glyphs, w32con_set_terminal_window) | 113 (w32con_delete_glyphs, w32con_set_terminal_window) |
93 (scroll_line, w32_sys_ring_bell): Add frame arg. | 114 (scroll_line, w32_sys_ring_bell): Add frame arg. |
94 (w32con_set_terminal_modes, w32con_reset_terminal_modes): Add | 115 (w32con_set_terminal_modes, w32con_reset_terminal_modes): |
95 terminal arg. | 116 Add terminal arg. |
96 (PICK_FRAME): Remove. | 117 (PICK_FRAME): Remove. |
97 (w32con_write_glyphs): Use frame specific terminal coding. | 118 (w32con_write_glyphs): Use frame specific terminal coding. |
98 (one_and_only_w32cons): New global variable. | 119 (one_and_only_w32cons): New global variable. |
99 (initialize_w32_display): Use it for storing hooks. | 120 (initialize_w32_display): Use it for storing hooks. |
100 (create_w32cons_output): New function. | 121 (create_w32cons_output): New function. |
101 | 122 |
102 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first | 123 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first |
103 arg a frame. | 124 arg a frame. |
104 | 125 |
105 * w32fns.c (x_create_tip_frame): Set terminal and ref count. Set | 126 * w32fns.c (x_create_tip_frame): Set terminal and ref count. |
106 window_system. | 127 Set window_system. |
107 (x_set_tool_bar_lines): Don't use updating_frame. | 128 (x_set_tool_bar_lines): Don't use updating_frame. |
108 (Fx_create_frame): Set terminal and ref count. | 129 (Fx_create_frame): Set terminal and ref count. |
109 (Fx_open_connection): Remove window-system check. | 130 (Fx_open_connection): Remove window-system check. |
110 | 131 |
111 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. | 132 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. |
117 (x_delete_terminal, w32_create_terminal): New functions. | 138 (x_delete_terminal, w32_create_terminal): New functions. |
118 (w32_term_init): Create a terminal. | 139 (w32_term_init): Create a terminal. |
119 (w32_initialize): Move terminal specific initialization to | 140 (w32_initialize): Move terminal specific initialization to |
120 w32_create_terminal. | 141 w32_create_terminal. |
121 | 142 |
122 * w32term.h (x_output): Remove foreground_pixel and | 143 * w32term.h (x_output): Remove foreground_pixel and background_pixel. |
123 background_pixel. | |
124 (w32_clear_rect, w32_clear_area): Use background from frame. | 144 (w32_clear_rect, w32_clear_area): Use background from frame. |
125 (w32_display_info): Add terminal. | 145 (w32_display_info): Add terminal. |
126 (w32_sys_ring_bell, x_delete_display): Declare here. | 146 (w32_sys_ring_bell, x_delete_display): Declare here. |
127 | 147 |
128 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. | 148 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. |
142 | 162 |
143 * term.c (tty_insert_glyphs): Add missing first parameter. | 163 * term.c (tty_insert_glyphs): Add missing first parameter. |
144 | 164 |
145 2007-08-29 Karoly Lorentey <karoly@lorentey.hu> | 165 2007-08-29 Karoly Lorentey <karoly@lorentey.hu> |
146 | 166 |
147 * buffer.c (Fbuffer_list, Fbury_buffer): Take | 167 * buffer.c (Fbuffer_list, Fbury_buffer): |
148 frame->buried_buffer_list into account. | 168 Take frame->buried_buffer_list into account. |
149 | 169 |
150 * cm.c (current_tty): New variable, for cmputc(). | 170 * cm.c (current_tty): New variable, for cmputc(). |
151 (cmputc): Use it. | 171 (cmputc): Use it. |
152 (cmcheckmagic): Add tty parameter, look up terminal streams there. | 172 (cmcheckmagic): Add tty parameter, look up terminal streams there. |
153 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). | 173 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). |
154 (cmgoto): Add tty parameter. Pass it on to calccost(). Use | 174 (cmgoto): Add tty parameter. Pass it on to calccost(). |
155 emacs_tputs() instead of tputs(). | 175 Use emacs_tputs() instead of tputs(). |
156 | 176 |
157 * cm.h (emacs_tputs): New macro to set current_tty, and then call | 177 * cm.h (emacs_tputs): New macro to set current_tty, and then call |
158 tputs(). | 178 tputs(). |
159 (current_tty): New variable, for cmputc(). | 179 (current_tty): New variable, for cmputc(). |
160 (cmcheckmagic, cmputc, cmgoto): Add prototypes. | 180 (cmcheckmagic, cmputc, cmgoto): Add prototypes. |
171 | 191 |
172 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | 192 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) |
173 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): | 193 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
174 Remove redundant definition. | 194 Remove redundant definition. |
175 | 195 |
176 * macfns.c (x_set_mouse_color, x_make_gc): Use | 196 * macfns.c (x_set_mouse_color, x_make_gc): |
177 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | 197 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
178 | 198 |
179 * w32term.c (x_free_frame_resources): Use | 199 * w32term.c (x_free_frame_resources): |
180 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | 200 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
181 (w32_initialize): Use the accessor macros for terminal characteristics. | 201 (w32_initialize): Use the accessor macros for terminal characteristics. |
182 | 202 |
183 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. | 203 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. |
184 Use the accessor macros for terminal characteristics. | 204 Use the accessor macros for terminal characteristics. |
185 * msdos.c (internal_terminal_init): Use the accessor macros for | 205 * msdos.c (internal_terminal_init): Use the accessor macros for |
186 terminal characteristics. | 206 terminal characteristics. |
187 (ScreenVisualBell, internal_terminal_init): Use | 207 (ScreenVisualBell, internal_terminal_init): |
188 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | 208 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
189 | 209 |
190 * termopts.h (no_redraw_on_reenter): Declare. | 210 * termopts.h (no_redraw_on_reenter): Declare. |
191 | 211 |
192 * alloc.c (emacs_blocked_malloc): Disable mallopt call. | 212 * alloc.c (emacs_blocked_malloc): Disable mallopt call. |
193 (mark_terminals, mark_ttys): Declare. | 213 (mark_terminals, mark_ttys): Declare. |
212 FRAME_FOREGROUND_PIXEL. | 232 FRAME_FOREGROUND_PIXEL. |
213 | 233 |
214 * print.c (print_preprocess): Don't lose print_depth levels while | 234 * print.c (print_preprocess): Don't lose print_depth levels while |
215 iterating. | 235 iterating. |
216 | 236 |
217 * widget.c (update_from_various_frame_slots): Use | 237 * widget.c (update_from_various_frame_slots): |
218 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | 238 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
219 | 239 |
220 * window.c (set_window_buffer): Don't call clear_mouse_face on tty | 240 * window.c (set_window_buffer): Don't call clear_mouse_face on tty |
221 frames. | 241 frames. |
222 (window_internal_height): Remove bogus make_number call. | 242 (window_internal_height): Remove bogus make_number call. |
223 (init_window_once): Call make_terminal_frame with two zero | 243 (init_window_once): Call make_terminal_frame with two zero parameters. |
224 parameters. | |
225 | 244 |
226 * fileio.c (Fread_file_name): Update comment. | 245 * fileio.c (Fread_file_name): Update comment. |
227 | 246 |
228 * callint.c (Fcall_interactively): Use | 247 * callint.c (Fcall_interactively): |
229 temporarily_switch_to_single_kboard instead of single_kboard_state. | 248 Use temporarily_switch_to_single_kboard instead of single_kboard_state. |
230 Make sure it is correctly unwound. | 249 Make sure it is correctly unwound. |
231 | 250 |
232 * xsmfns.c (x_session_close): New function. | 251 * xsmfns.c (x_session_close): New function. |
233 | 252 |
234 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): | 253 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): |
242 | 261 |
243 * lread.c: Include setjmp.h. Update declaration of `read_char'. | 262 * lread.c: Include setjmp.h. Update declaration of `read_char'. |
244 (read_filtered_event): Call `read_char' with a local | 263 (read_filtered_event): Call `read_char' with a local |
245 `wrong_kboard_jmpbuf'. | 264 `wrong_kboard_jmpbuf'. |
246 | 265 |
247 * minibuf.c (read_minibuf): Call | 266 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. |
248 temporarily_switch_to_single_kboard. Don't call | 267 Don't call single_kboard_state. Use FRAME_RIF. |
249 single_kboard_state. Use FRAME_RIF. | |
250 | 268 |
251 * process.c (Fmake_network_process): Don't unrequest_sigio on modern | 269 * process.c (Fmake_network_process): Don't unrequest_sigio on modern |
252 systems. | 270 systems. |
253 | 271 |
254 * lisp.h (set_process_environment): Rename to | 272 * lisp.h (set_process_environment): Rename to `set_global_environment'. |
255 `set_global_environment'. | |
256 (Fframe_with_environment, Fset_input_meta_mode) | 273 (Fframe_with_environment, Fset_input_meta_mode) |
257 (Fset_quit_char): EXFUN. | 274 (Fset_quit_char): EXFUN. |
258 (x_create_device, tty_output, terminal, tty_display_info): Declare. | 275 (x_create_device, tty_output, terminal, tty_display_info): Declare. |
259 (init_sys_modes, reset_sys_modes): Update prototypes. | 276 (init_sys_modes, reset_sys_modes): Update prototypes. |
260 (init_all_sys_modes, reset_all_sys_modes): New prototypes. | 277 (init_all_sys_modes, reset_all_sys_modes): New prototypes. |
261 | 278 |
262 * keyboard.h (struct kboard): Add new fields: | 279 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, |
263 Vlocal_function_key_map, Vlocal_key_translation_map, | 280 Vlocal_key_translation_map, and Vkeyboard_translate_table. |
264 Vkeyboard_translate_table. | |
265 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): | 281 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): |
266 Delete declarations. | 282 Delete declarations. |
267 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) | 283 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) |
268 (temporarily_switch_to_single_kboard, tty_read_avail_input): | 284 (temporarily_switch_to_single_kboard, tty_read_avail_input): |
269 New declarations. | 285 New declarations. |
270 | 286 |
271 * emacs.c (main): Don't call init_sys_modes(), the new term_init() | 287 * emacs.c (main): Don't call init_sys_modes(), the new term_init() |
272 already does that during init_display(). Call syms_of_keymap | 288 already does that during init_display(). Call syms_of_keymap |
273 before syms_of_keyboard. Call `syms_of_terminal'. Call | 289 before syms_of_keyboard. Call `syms_of_terminal'. |
274 set_initial_environment, not set_process_environment. | 290 Call set_initial_environment, not set_process_environment. |
275 (shut_down_emacs): Call reset_all_sys_modes() instead of | 291 (shut_down_emacs): Call reset_all_sys_modes() instead of |
276 reset_sys_modes(). | 292 reset_sys_modes(). |
277 | 293 |
278 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. | 294 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. |
279 (internal_resolve_face_name, resolve_face_name_error): New functions. | 295 (internal_resolve_face_name, resolve_face_name_error): New functions. |
286 (calculate_scrolling, calculate_direct_scrolling) | 302 (calculate_scrolling, calculate_direct_scrolling) |
287 (scrolling_1, scroll_cost): Use the accessor macros for terminal | 303 (scrolling_1, scroll_cost): Use the accessor macros for terminal |
288 characteristics. | 304 characteristics. |
289 | 305 |
290 * keymap.c (Vfunction_key_map): Remove. | 306 * keymap.c (Vfunction_key_map): Remove. |
291 (Fdescribe_buffer_bindings): Update references to | 307 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. |
292 Vfunction_key_map. | |
293 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. | 308 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. |
294 (Vkey_translation_map): Remove. | 309 (Vkey_translation_map): Remove. |
295 (syms_of_keymap): Remove DEFVAR for key-translation-map. | 310 (syms_of_keymap): Remove DEFVAR for key-translation-map. |
296 (Fdescribe_buffer_bindings): | 311 (Fdescribe_buffer_bindings): |
297 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): | 312 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): |
343 (delete_tty, updating_frame) | 358 (delete_tty, updating_frame) |
344 (produce_special_glyphs, produce_glyphs, write_glyphs) | 359 (produce_special_glyphs, produce_glyphs, write_glyphs) |
345 (insert_glyphs): Remove. | 360 (insert_glyphs): Remove. |
346 (raw_cursor_to, clear_to_end, tty_turn_off_insert) | 361 (raw_cursor_to, clear_to_end, tty_turn_off_insert) |
347 (tty_turn_off_highlight, get_tty_size): Add declaration. | 362 (tty_turn_off_highlight, get_tty_size): Add declaration. |
348 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update | 363 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. |
349 prototypes. | |
350 | 364 |
351 * frame.h (enum output_method): Add output_initial. | 365 * frame.h (enum output_method): Add output_initial. |
352 (struct x_output): Delete. | 366 (struct x_output): Delete. |
353 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Access | 367 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
354 foreground_pixel and background_pixel directly from the frame. | 368 Access foreground_pixel and background_pixel directly from the frame. |
355 (tty_display): Delete. | 369 (tty_display): Delete. |
356 (struct frame): Add buried_buffer_list, foreground_pixel, | 370 (struct frame): Add buried_buffer_list, foreground_pixel, |
357 background_pixel and terminal. Delete kboard | 371 background_pixel and terminal. Delete kboard |
358 (union output_data): Add tty. | 372 (union output_data): Add tty. |
359 (FRAME_KBOARD): Get the kboard from the terminal. | 373 (FRAME_KBOARD): Get the kboard from the terminal. |
360 (FRAME_INITIAL_P): New macro. | 374 (FRAME_INITIAL_P): New macro. |
361 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) | 375 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) |
362 (Qterm_environment_variable, Qdisplay_environment_variable) | 376 (Qterm_environment_variable, Qdisplay_environment_variable) |
363 (make_terminal_frame, Qburied_buffer_list, Qwindow_system): New | 377 (make_terminal_frame, Qburied_buffer_list, Qwindow_system): |
364 declarations. | 378 New declarations. |
365 | 379 |
366 * termchar.h (tty_output, tty_display_info): New structures. | 380 * termchar.h (tty_output, tty_display_info): New structures. |
367 (tty_list): Declare. | 381 (tty_list): Declare. |
368 (FRAME_TTY, CURTTY): New macros. | 382 (FRAME_TTY, CURTTY): New macros. |
369 (must_write_spaces, min_padding_speed, fast_clear_end_of_line) | 383 (must_write_spaces, min_padding_speed, fast_clear_end_of_line) |
373 | 387 |
374 * callproc.c: Include frame.h and termhooks.h, for terminal | 388 * callproc.c: Include frame.h and termhooks.h, for terminal |
375 parameters. | 389 parameters. |
376 (add_env): New function. | 390 (add_env): New function. |
377 (child_setup): Use it. | 391 (child_setup): Use it. |
378 (child_setup, getenv_internal): Handle the new | 392 (child_setup, getenv_internal): Handle the new Vprocess_environment. |
379 Vprocess_environment. | |
380 (getenv_internal): Fix get_terminal_param call. | 393 (getenv_internal): Fix get_terminal_param call. |
381 (Fgetenv_internal, egetenv): Update doc. | 394 (Fgetenv_internal, egetenv): Update doc. |
382 (syms_of_callproc): Initialize Vprocess_environment to nil. | 395 (syms_of_callproc): Initialize Vprocess_environment to nil. |
383 Register and initialize them. Remove obsolete defvars. Update doc | 396 Register and initialize them. Remove obsolete defvars. Update doc |
384 strings. | 397 strings. |
385 (child_setup): Handle Vlocal_environment_variables. | 398 (child_setup): Handle Vlocal_environment_variables. |
386 (getenv_internal): Add terminal parameter. Handle | 399 (getenv_internal): Add terminal parameter. |
387 Vlocal_environment_variables. | 400 Handle Vlocal_environment_variables. |
388 (Fgetenv_internal): Add terminal parameter. | 401 (Fgetenv_internal): Add terminal parameter. |
389 (child_setup, getenv_internal, Fgetenv_internal): Store the local | 402 (child_setup, getenv_internal, Fgetenv_internal): Store the local |
390 environment in a frame (not terminal) parameter. Update doc | 403 environment in a frame (not terminal) parameter. Update doc strings. |
391 strings. | |
392 (set_initial_environment): Rename from set_global_environment. | 404 (set_initial_environment): Rename from set_global_environment. |
393 Store Emacs environment in initial frame parameter. | 405 Store Emacs environment in initial frame parameter. |
394 | 406 |
395 * xdisp.c (redisplay_internal): Update references to | 407 * xdisp.c (redisplay_internal): Update references to |
396 `previous_terminal_frame'. | 408 `previous_terminal_frame'. |
411 (Fx_display_backing_store, Fx_display_visual_class) | 423 (Fx_display_backing_store, Fx_display_visual_class) |
412 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): | 424 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): |
413 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. | 425 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. |
414 | 426 |
415 * xfns.c (x_set_foreground_color x_set_background_color) | 427 * xfns.c (x_set_foreground_color x_set_background_color) |
416 (x_set_mouse_color, x_set_cursor_color, x_make_gc): Use | 428 (x_set_mouse_color, x_set_cursor_color, x_make_gc): |
417 FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | 429 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. |
418 (Fx_create_frame, x_create_tip_frame, build_string, x_window) | 430 (Fx_create_frame, x_create_tip_frame, build_string, x_window) |
419 (Fx_create_frame, x_create_tip_frame): Don't create frames on a | 431 (Fx_create_frame, x_create_tip_frame): Don't create frames on a |
420 terminal that is being deleted. | 432 terminal that is being deleted. |
421 (Fx_create_frame): Use `store_frame_param' to set `window-system' | 433 (Fx_create_frame): Use `store_frame_param' to set `window-system' |
422 frame parameter, and make sure it overrides any user-supplied | 434 frame parameter, and make sure it overrides any user-supplied setting. |
423 setting. | |
424 (Fx_close_connection, Fx_synchronize): Unify argument names with | 435 (Fx_close_connection, Fx_synchronize): Unify argument names with |
425 the rest of the DEFUNs. | 436 the rest of the DEFUNs. |
426 | 437 |
427 * dispnew.c (Fsend_string_to_terminal): Update call to | 438 * dispnew.c (Fsend_string_to_terminal): Update call to |
428 `get_tty_terminal'. | 439 `get_tty_terminal'. |
473 X connections. | 484 X connections. |
474 | 485 |
475 * frame.c (Fframep): Deal with output_initial. | 486 * frame.c (Fframep): Deal with output_initial. |
476 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty) | 487 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty) |
477 (Qtty_type, Qwindow_system, Qenvironment) | 488 (Qtty_type, Qwindow_system, Qenvironment) |
478 (Qterm_environment_variable, Qdisplay_environment_variable): New | 489 (Qterm_environment_variable, Qdisplay_environment_variable): New vars. |
479 variables. | |
480 (x_set_screen_gamma, store_frame_param): Fix compilation errors. | 490 (x_set_screen_gamma, store_frame_param): Fix compilation errors. |
481 (make_terminal_frame): Don't create frames on a terminal that is | 491 (make_terminal_frame): Don't create frames on a terminal that is |
482 being deleted. | 492 being deleted. |
483 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and | 493 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and |
484 FRAME_FOREGROUND_PIXEL. | 494 FRAME_FOREGROUND_PIXEL. |
485 (store_frame_param): Check for found_for_frame before calling | 495 (store_frame_param): Check for found_for_frame before calling XFRAME. |
486 XFRAME. | |
487 (Fmake_terminal_frame): Handle NULL tty names correctly. | 496 (Fmake_terminal_frame): Handle NULL tty names correctly. |
488 (syms_of_frame): Enhance doc string of `default-frame-alist'. | 497 (syms_of_frame): Enhance doc string of `default-frame-alist'. |
489 (Fdelete_frame): Remove unused variable `count'. | 498 (Fdelete_frame): Remove unused variable `count'. |
490 (Qenvironment): New variable. | 499 (Qenvironment): New variable. |
491 (Fdelete_frame): Don't allow other frames to refer to a deleted | 500 (Fdelete_frame): Don't allow other frames to refer to a deleted |
492 frame in their 'environment parameter. | 501 frame in their 'environment parameter. |
493 (Fframe_with_environment): New function. | 502 (Fframe_with_environment): New function. |
494 (syms_of_frame): Defsubr it. Initialize and staticpro | 503 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. |
495 Qenvironment. | |
496 (get_future_frame_param): New function. | 504 (get_future_frame_param): New function. |
497 (Fmake_terminal_frame): Use it. | 505 (Fmake_terminal_frame): Use it. |
498 | 506 |
499 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. | 507 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. |
500 * sysdep.c (reset_sys_modes): Update for renames. | 508 * sysdep.c (reset_sys_modes): Update for renames. |
505 (Fset_input_meta_mode, Fset_quit_char): New functions. | 513 (Fset_input_meta_mode, Fset_quit_char): New functions. |
506 (Fset_input_mode): Split to above functions. | 514 (Fset_input_mode): Split to above functions. |
507 | 515 |
508 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf | 516 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf |
509 parameter. Use it in call to `read_char'. | 517 parameter. Use it in call to `read_char'. |
510 (read_char): Declare. Update call to | 518 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. |
511 `read_char_minibuf_menu_prompt'. Set wrong_kboard_jmpbuf | 519 Set wrong_kboard_jmpbuf correctly in recursive calls. |
512 correctly in recursive calls. Use current_kboard to access | 520 Use current_kboard to access Vkeyboard_translate_table. |
513 Vkeyboard_translate_table. Enhance comment before extra longjmp | 521 Enhance comment before extra longjmp to wrong_kboard_jmpbuf. |
514 to wrong_kboard_jmpbuf. Add wrong_kboard_jmpbuf parameter to | 522 Add wrong_kboard_jmpbuf parameter to allow for recursive calls. |
515 allow for recursive calls. Update longjmp invocations. Remember | 523 Update longjmp invocations. Remember the original current_kboard, |
516 the original current_kboard, and longjmp to `wrong_kboard_jmpbuf' | 524 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel |
517 when a filter, timer or sentinel changes it. Comment out | 525 changes it. Comment out unnecessary calls to |
518 unnecessary calls to `record_single_kboard_state' and | 526 `record_single_kboard_state' and `any_kboard_state'. |
519 `any_kboard_state'. Update recursive calls. | 527 Update recursive calls. |
520 (wrong_kboard_jmpbuf): Remove global variable. | 528 (wrong_kboard_jmpbuf): Remove global variable. |
521 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. | 529 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. |
522 Handle deleted interrupted_kboards correctly; that is a legal | 530 Handle deleted interrupted_kboards correctly; that is a legal |
523 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp | 531 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp |
524 and read_char calls. Abort if interrupted_kboard died in | 532 and read_char calls. Abort if interrupted_kboard died in read_char. |
525 read_char. | |
526 (any_kboard_state, single_kboard_state) | 533 (any_kboard_state, single_kboard_state) |
527 (push_frame_kboard): Remove function. | 534 (push_frame_kboard): Remove function. |
528 (pop_kboard): Switch out of single_kboard mode if the kboard has | 535 (pop_kboard): Switch out of single_kboard mode if the kboard has |
529 been deleted. Remove unused variable. Help debugging by not | 536 been deleted. Remove unused variable. Help debugging by not |
530 changing current_kboard unnecessarily. Set current_kboard to the | 537 changing current_kboard unnecessarily. Set current_kboard to the |
538 (restore_kboard_configuration): Abort if pop_kboard changed the | 545 (restore_kboard_configuration): Abort if pop_kboard changed the |
539 kboard in single_kboard mode. Call pop_kboard only after setting | 546 kboard in single_kboard mode. Call pop_kboard only after setting |
540 up single_kboard mode. | 547 up single_kboard mode. |
541 (Frecursive_edit): Switch to single_kboard mode only in nested | 548 (Frecursive_edit): Switch to single_kboard mode only in nested |
542 command loops. | 549 command loops. |
543 (cmd_error, command_loop, command_loop_1, timer_check): Comment | 550 (cmd_error, command_loop, command_loop_1, timer_check): |
544 out unnecessary call to `any_kboard_state' and | 551 Comment out unnecessary call to `any_kboard_state' and |
545 `record_single_kboard_state'. | 552 `record_single_kboard_state'. |
546 (delete_kboard): Exit single_kboard mode if we have just deleted | 553 (delete_kboard): Exit single_kboard mode if we have just deleted |
547 that kboard. Use FRAME_KBOARD. | 554 that kboard. Use FRAME_KBOARD. |
548 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not | 555 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not |
549 `fatal_error_signal'. | 556 `fatal_error_signal'. |