1 2007-09-21 Markus Triska <markus.triska@gmx.at>
3 * xterm.c (x_delete_display): Compile session management
6 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
8 * callproc.c (getenv_internal_1): New function.
9 (getenv_internal): Use it.
10 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12 * terminal.c (get_terminal): Don't accept integers to represent terminals.
13 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
14 (Fset_terminal_parameter): Work with dead terminals as well.
15 (Fmodify_terminal_parameters): Remove.
17 * terminal.c (get_terminal): Handle terminals.
18 Make sure the terminal returned is live.
19 (create_terminal): Use allocate_terminal.
20 (mark_terminals): Move to alloc.c.
21 (delete_terminal): Use terminal->name as liveness status.
22 NULL out fields after freeing their contents.
23 Don't deallocate the object.
24 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26 (Fterminal_live_p): Accept non-integer arguments.
27 (Fterminal_list): Return terminal objects rather than an ints.
29 * alloc.c (enum mem_type): New member for `terminal' objects.
30 (allocate_terminal): New function.
31 (mark_maybe_pointer, valid_lisp_object_p, mark_object): Handle terminals.
32 (mark_terminal): New fun.
33 (mark_terminals): Move from terminal.c.
35 * term.c (get_tty_terminal): Don't treat output_initial specially.
36 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
37 (delete_tty): Use terminal->name as liveness status.
39 * termhooks.h (struct terminal): Make it into a pseudovector.
40 Remove `deleted' replaced by checking `name's nullness.
42 * print.c (print_object): Handle terminals.
44 * lisp.h (enum pvec_type): New `terminal' pseudovector.
45 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
47 * frame.c (make_terminal_frame):
48 * keyboard.c (tty_read_avail_input):
49 * w32term.c (x_delete_terminal):
50 * xfns.c (Fx_create_frame, x_create_tip_frame):
51 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
53 2007-09-20 Glenn Morris <rgm@gnu.org>
55 * process.c (Fmake_network_process): Doc fix.
57 2007-09-19 Jason Rumney <jasonr@gnu.org>
59 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
61 2007-09-19 Micha
\e,Ak
\e(Bl Cadilhac <michael@cadilhac.name>
63 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
64 Fix a C warning regarding variable constness.
66 * xterm.c (handle_one_xevent): Fix a C warning.
68 2007-09-18 Jason Rumney <jasonr@gnu.org>
70 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
72 2007-09-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
74 * gtkutil.c (gdpy_def): New variable.
75 (xg_initialize): Initialize gdpy_def.
76 (xg_display_close): If no other display exists, set gdpy_def to a
79 2007-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
81 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
82 when we have no file name for the icon.
83 (xg_tool_bar_expose_callback): Remove.
84 (xg_create_tool_bar): Don't connect expose signal to
85 xg_tool_bar_expose_callback.
86 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
88 2007-09-16 Andreas Schwab <schwab@suse.de>
90 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
91 values instead of zapping them.
93 2007-09-14 Glenn Morris <rgm@gnu.org>
95 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
96 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
97 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
98 scope and rename to omfib_buffer for clarity.
99 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
101 2007-09-14 Kenichi Handa <handa@m17n.org>
103 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
105 2007-09-13 Jason Rumney <jasonr@gnu.org>
107 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
109 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
111 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
112 (mac_term_init): Call here instead, passing rif.
114 2007-09-13 Glenn Morris <rgm@gnu.org>
116 * s/hpux.h: No longer define `static' as nothing.
118 2007-09-13 Johan Bockg
\e,Ae
\e(Brd <bojohan@gnu.org>
120 * callint.c (Fcall_interactively): Remove unused var `fun'.
122 2007-09-12 Romain Francoise <romain@orebokech.com>
124 * window.c (prefer_window_split_horizontally, display_buffer):
125 Revert 2007-09-08 change.
127 2007-09-12 Glenn Morris <rgm@gnu.org>
129 * alloca.c: Remove file.
130 * Makefile.in (alloca): Do not undef.
131 (allocaobj, alloca.o): Remove.
132 (otherobj): Remove allocaobj.
133 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
134 * regex.c (C_ALLOCA): Remove all references and code that was only
135 used when this was defined.
136 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
137 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
138 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
140 * Makefile.in (SOURCES, unlock, relock): Delete.
142 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
143 (menu_grab_callback): All uses changed.
145 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
146 (x_reply_selection_request): All uses changed.
148 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
150 * lread.c (load_warn_old_style_backquotes): Change message to look
151 better when it appears in the middle of byte-compiler messages.
153 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
155 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
157 * xterm.c (x_create_terminal): Add comment.
159 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
161 2007-09-10 Richard Stallman <rms@gnu.org>
163 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
165 2007-09-10 Micha
\e,Ak
\e(Bl Cadilhac <michael@cadilhac.name>
167 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
168 (DEFUN): Document `intspec', use it instead of `prompt'.
170 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
172 * data.c (Finteractive_form): If the interactive specification starts
173 with a `(', use it as a Lisp form.
175 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
178 * callint.c (Fcall_interactively): Comment fixes.
180 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
182 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
183 and compiled functions.
185 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
187 * window.c (prefer_window_split_horizontally): New variable.
188 (display_buffer): Consider splitting window horizontally depending
189 on prefer_window_split_horizontally.
191 2007-09-08 Eli Zaretskii <eliz@gnu.org>
193 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
195 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
197 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
199 * frame.c (x_set_frame_parameters): Check number is positive before
202 * window.c (freeze_window_start): Don't presume selected_window holds
204 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
206 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
208 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
210 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
212 * window.c (Vsplit_window_preferred_function): New var.
213 (Fdisplay_buffer): Use it.
214 (syms_of_window): Export, and initialize it.
216 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
218 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
220 2007-09-06 Glenn Morris <rgm@gnu.org>
222 * gtkutil.c (menu_grab_callback) <cnt>:
223 * xselect.c (x_reply_selection_request) <cnt>: Move static
224 variable to file scope.
226 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
228 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
229 consistent values of selected_frame and selected_window.
231 2007-09-04 Jason Rumney <jasonr@gnu.org>
233 * w32console.c (initialize_w32_display): Zero unused hooks.
235 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
237 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
238 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
240 2007-09-04 Jason Rumney <jasonr@gnu.org>
242 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
243 in w32console.c. Set up input. Remove XXX comments that have been
244 confirmed as correct.
246 * s/ms-w32.h (MULTI_KBOARD): Define.
248 * w32console.c (one_and_only_w32cons): Remove.
249 (initialize_w32_display): Take terminal argument.
251 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
252 initialize_w32_display.
253 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
255 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
257 * keyboard.c (discard_mouse_events): Discard it.
258 (make_lispy_event): Translate it to a lisp event.
259 (lispy_wheel_names): Add wheel-left and right events.
260 (syms_of_keyboard): Enlarge wheel_syms.
262 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
263 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
265 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
267 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
269 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
271 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
274 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
275 keyboard for the terminal.
277 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
279 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
280 (Vresume_tty_hook): Rename from Vresume_tty_functions.
281 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
282 and resume-tty-function to resume-tty-hook.
283 (Fsuspend_tty, Fresume_tty): Use new names.
285 2007-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
287 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
288 if it starts with "n:".
290 2007-08-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
292 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
294 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
297 * frame.c (Qterm_environment_variable): Remove.
298 (syms_of_frame): Don't init and staticpro it.
300 * callproc.c (getenv_internal): Remove special case for $TERM.
302 * callproc.c (Vinitial_environment): New variable.
303 (set_initial_environment): Initialize it.
304 (syms_of_callproc): Declare it.
305 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
306 TERM under which a process runs is never related to the TERM in which
309 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
311 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
312 * s/darwin.h: ... do it here.
314 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
316 * lisp.h (set_initial_environment): Rename from set_global_environment.
318 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
319 removed by mistake on the multi-tty branch.
321 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
322 (Fmodify_frame_parameters): Return a value.
324 * image.c (png_load): Comment-out var only used in commented-out code.
326 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
327 before passing it to mark_object.
329 * xfaces.c (internal_resolve_face_name): Return a value.
330 (internal_resolve_face_name, resolve_face_name_error): Comment out.
332 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
333 (x_icon): Comment-out var only used in commented-out code.
335 2007-08-29 Romain Francoise <romain@orebokech.com>
337 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
338 QUIT hasn't been provided.
340 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
342 * callproc.c (child_setup, getenv_internal): Use the
343 display-environment-variable and term-environment-variable frame
345 (set_initial_environment): Initialise Vprocess_environment.
347 * config.in: Disable multi-keyboard support on a mac.
349 * frame.c (Qterm_environment_variable)
350 (Qdisplay_environment_variable): New variables.
351 (syms_of_frame): Intern and staticpro them.
352 (Fmake_terminal_frame): Disable output method test.
354 * frame.h: Declare them here.
356 * macfns.c (x_set_mouse_color): Get rif from the frame.
357 (x_set_tool_bar_lines): Don't use updating_frame.
358 (mac_window): Add 2 new parameters for consistency with other systems.
359 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
360 frame parameters following what is done in X11 and w32. Don't use
361 FRAME_MAC_DISPLAY_INFO.
362 (Fx_open_connection, start_hourglass): Remove window-system check.
363 (x_create_tip_frame): Get the keyboard from the terminal.
365 * macmenu.c: Reorder includes.
366 (Fx_popup_menu): Use terminal specific mouse_position_hook.
368 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
370 (x_clear_frame): Add a frame parameter.
371 (note_mouse_movement): Get rif from the frame.
372 (mac_term_init): Initialize the terminal.
373 (mac_initialize): Make static and move terminal initialization ...
374 (mac_create_terminal): ... to this new function.
376 * macterm.h (struct mac_display_info): Add terminal.
377 (mac_initialize): Delete declaration.
379 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
381 * sysdep.c: Comment out text after #endif.
383 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
384 is defined. Better initialize ttys in windows. Use terminal
385 specific mouse_position_hook.
387 * termhooks.h (union display_info): Add mac_display_info.
389 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
390 Set the default minibuffer frame, window_system and the rest of the
391 frame parameters following what is done in X11.
393 * w32term.c (w32_initialize): Make static.
395 * xselect.c (x_handle_selection_clear): Only access
396 terminal->kboard when MULTI_KBOARD is defined.
398 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
399 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
401 2007-08-29 Jason Rumney <jasonr@gnu.org>
403 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
404 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
406 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
407 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
409 * keyboard.c (restore_kboard_configuration): Only define when
410 MULTI_KBOARD defined.
412 * makefile.w32-in: Update dependancies from Makefile.in
413 (OBJ1): Add terminal.$(O)
415 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
416 Don't define function body.
417 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
419 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
421 * w32.c (request_sigio, unrequest_sigio): Remove.
423 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
424 (w32con_clear_frame, w32con_clear_end_of_line)
425 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
426 (w32con_delete_glyphs, w32con_set_terminal_window)
427 (scroll_line, w32_sys_ring_bell): Add frame arg.
428 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
430 (PICK_FRAME): Remove.
431 (w32con_write_glyphs): Use frame specific terminal coding.
432 (one_and_only_w32cons): New global variable.
433 (initialize_w32_display): Use it for storing hooks.
434 (create_w32cons_output): New function.
436 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
439 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
441 (x_set_tool_bar_lines): Don't use updating_frame.
442 (Fx_create_frame): Set terminal and ref count.
443 (Fx_open_connection): Remove window-system check.
445 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
447 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
448 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
449 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
451 (x_delete_terminal, w32_create_terminal): New functions.
452 (w32_term_init): Create a terminal.
453 (w32_initialize): Move terminal specific initialization to
456 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
457 (w32_clear_rect, w32_clear_area): Use background from frame.
458 (w32_display_info): Add terminal.
459 (w32_sys_ring_bell, x_delete_display): Declare here.
461 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
463 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
465 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
467 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
468 Fix get_named_tty calls for the controlling tty.
470 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
472 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
474 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
476 * term.c (tty_insert_glyphs): Add missing first parameter.
478 2007-08-29 Karoly Lorentey <karoly@lorentey.hu>
480 * buffer.c (Fbuffer_list, Fbury_buffer):
481 Take frame->buried_buffer_list into account.
483 * cm.c (current_tty): New variable, for cmputc().
485 (cmcheckmagic): Add tty parameter, look up terminal streams there.
486 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
487 (cmgoto): Add tty parameter. Pass it on to calccost().
488 Use emacs_tputs() instead of tputs().
490 * cm.h (emacs_tputs): New macro to set current_tty, and then call
492 (current_tty): New variable, for cmputc().
493 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
495 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
496 (internal_condition_case, internal_condition_case_1)
497 (internal_condition_case_2): Don't abort when x_catching_errors.
499 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
500 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
501 prevent crashes caused by bogus longjmps in read_char.
503 * keymap.h (Fset_keymap_parent): Add EXFUN.
505 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
506 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
507 Remove redundant definition.
509 * macfns.c (x_set_mouse_color, x_make_gc):
510 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
512 * w32term.c (x_free_frame_resources):
513 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
514 (w32_initialize): Use the accessor macros for terminal characteristics.
516 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
517 Use the accessor macros for terminal characteristics.
518 * msdos.c (internal_terminal_init): Use the accessor macros for
519 terminal characteristics.
520 (ScreenVisualBell, internal_terminal_init):
521 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
523 * termopts.h (no_redraw_on_reenter): Declare.
525 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
526 (mark_terminals, mark_ttys): Declare.
527 (Fgarbage_collect): Call them.
528 (mark_object): Mark buried_buffer_list.
530 * prefix-args.c: Include stdlib.h for exit.
532 * syssignal.h: Add comment.
534 * indent.c: Include stdio.h.
536 * window.h (Vinitial_window_system): Declare.
537 (Vwindow_system): Delete declaration.
539 * fontset.c (Finternal_char_font): Use FRAME_RIF.
541 * image.c (lookup_image): Don't initialize `c' until the xasserts
544 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
545 FRAME_FOREGROUND_PIXEL.
547 * print.c (print_preprocess): Don't lose print_depth levels while
550 * widget.c (update_from_various_frame_slots):
551 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
553 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
555 (window_internal_height): Remove bogus make_number call.
556 (init_window_once): Call make_terminal_frame with two zero parameters.
558 * fileio.c (Fread_file_name): Update comment.
560 * callint.c (Fcall_interactively):
561 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
562 Make sure it is correctly unwound.
564 * xsmfns.c (x_session_close): New function.
566 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
569 * xterm.h: Remove declaration for x_fully_uncatch_errors.
570 (x_output): Remove background_pixel and foreground_pixel fields.
571 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
573 (x_session_close): Declare.
575 * lread.c: Include setjmp.h. Update declaration of `read_char'.
576 (read_filtered_event): Call `read_char' with a local
577 `wrong_kboard_jmpbuf'.
579 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
580 Don't call single_kboard_state. Use FRAME_RIF.
582 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
585 * lisp.h (set_process_environment): Rename to `set_global_environment'.
586 (Fframe_with_environment, Fset_input_meta_mode)
587 (Fset_quit_char): EXFUN.
588 (x_create_device, tty_output, terminal, tty_display_info): Declare.
589 (init_sys_modes, reset_sys_modes): Update prototypes.
590 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
592 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
593 Vlocal_key_translation_map, and Vkeyboard_translate_table.
594 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
596 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
597 (temporarily_switch_to_single_kboard, tty_read_avail_input):
600 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
601 already does that during init_display(). Call syms_of_keymap
602 before syms_of_keyboard. Call `syms_of_terminal'.
603 Call set_initial_environment, not set_process_environment.
604 (shut_down_emacs): Call reset_all_sys_modes() instead of
607 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
608 (internal_resolve_face_name, resolve_face_name_error): New functions.
609 (resolve_face_name): Protect against loops and errors thrown by Fget.
610 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
611 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
613 * scroll.c: Replace CURTTY() with local variables throughout the
614 file (where applicable).
615 (calculate_scrolling, calculate_direct_scrolling)
616 (scrolling_1, scroll_cost): Use the accessor macros for terminal
619 * keymap.c (Vfunction_key_map): Remove.
620 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
621 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
622 (Vkey_translation_map): Remove.
623 (syms_of_keymap): Remove DEFVAR for key-translation-map.
624 (Fdescribe_buffer_bindings):
625 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
626 Update for terminal-local key-translation-map.
628 * Makefile.in (callproc.o): Update dependencies.
629 (lisp, shortlisp): Add termdev.elc.
630 (obj): Add terminal.o.
631 (terminal.o): Add dependencies.
632 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
633 (data.o, fns.o): Add termhooks.h dependency.
634 (SOME_MACHINE_LISP): Add dnd.elc.
635 (minibuf.o): Fix typo.
638 * data.c (do_symval_forwarding, store_symval_forwarding)
639 (find_symbol_value): Use the selected frame's keyboard, not
642 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
645 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
647 (syms_of_xmenu): Update defsubr.
648 (mouse_position_for_popup, Fx_popup_menu)
649 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
650 (set_frame_menubar, free_frame_menubar)
651 (create_and_show_popup_menu, xmenu_show, )
652 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
655 * xselect.c (x_own_selection): Abort if not an X frame.
656 (some_frame_on_display): Check if it is an X frame.
657 (x_handle_selection_clear): Deal with MULTI_KBOARD.
659 * coding.c: Include frame.h and termhooks.h.
660 (terminal_coding, keyboard_coding): Delete.
661 (Fset_terminal_coding_system_internal):
662 (Fset_keyboard_coding_system_internal):
663 (Fkeyboard_coding_system):
664 (Fterminal_coding_system): Add a terminal parameter.
665 Get terminal_coding from the terminal.
666 (init_coding_once): Don't call setup_coding_system here.
668 * dispextern.h (set_scroll_region, turn_off_insert)
669 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
670 (tty_clear_end_of_line, tty_setup_colors)
671 (delete_tty, updating_frame)
672 (produce_special_glyphs, produce_glyphs, write_glyphs)
673 (insert_glyphs): Remove.
674 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
675 (tty_turn_off_highlight, get_tty_size): Add declaration.
676 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
678 * frame.h (enum output_method): Add output_initial.
679 (struct x_output): Delete.
680 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
681 Access foreground_pixel and background_pixel directly from the frame.
682 (tty_display): Delete.
683 (struct frame): Add buried_buffer_list, foreground_pixel,
684 background_pixel and terminal. Delete kboard
685 (union output_data): Add tty.
686 (FRAME_KBOARD): Get the kboard from the terminal.
687 (FRAME_INITIAL_P): New macro.
688 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
689 (Qterm_environment_variable, Qdisplay_environment_variable)
690 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
693 * termchar.h (tty_output, tty_display_info): New structures.
695 (FRAME_TTY, CURTTY): New macros.
696 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
697 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
698 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
699 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
701 * callproc.c: Include frame.h and termhooks.h, for terminal
703 (add_env): New function.
704 (child_setup): Use it.
705 (child_setup, getenv_internal): Handle the new Vprocess_environment.
706 (getenv_internal): Fix get_terminal_param call.
707 (Fgetenv_internal, egetenv): Update doc.
708 (syms_of_callproc): Initialize Vprocess_environment to nil.
709 Register and initialize them. Remove obsolete defvars. Update doc
711 (child_setup): Handle Vlocal_environment_variables.
712 (getenv_internal): Add terminal parameter.
713 Handle Vlocal_environment_variables.
714 (Fgetenv_internal): Add terminal parameter.
715 (child_setup, getenv_internal, Fgetenv_internal): Store the local
716 environment in a frame (not terminal) parameter. Update doc strings.
717 (set_initial_environment): Rename from set_global_environment.
718 Store Emacs environment in initial frame parameter.
720 * xdisp.c (redisplay_internal): Update references to
721 `previous_terminal_frame'.
722 (display_mode_line, Fformat_mode_line): Replace calls to
723 `push_frame_kboard' with `push_kboard'.
724 (get_glyph_string_clip_rects): Add extra parentheses and
725 braces to prevent compiler warnings.
726 (calc_pixel_width_or_height): Add xassert to check that the
727 frame is alive. Don't call `lookup_image' on a termcap frame.
728 (message2_nolog, message3_nolog, redisplay_internal)
729 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
730 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
731 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
732 (Fx_display_pixel_width, Fx_display_pixel_height)
733 (Fx_display_planes, Fx_display_color_cells)
734 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
735 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
736 (Fx_display_backing_store, Fx_display_visual_class)
737 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
738 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
740 * xfns.c (x_set_foreground_color x_set_background_color)
741 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
742 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
743 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
744 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
745 terminal that is being deleted.
746 (Fx_create_frame): Use `store_frame_param' to set `window-system'
747 frame parameter, and make sure it overrides any user-supplied setting.
748 (Fx_close_connection, Fx_synchronize): Unify argument names with
749 the rest of the DEFUNs.
751 * dispnew.c (Fsend_string_to_terminal): Update call to
753 (Fredraw_frame, Fsend_string_to_terminal)
754 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
755 FRAME_TERMCAP_P and FRAME_TTY.
756 (window_change_signal): Don't believe width/height values that are
758 (Vinitial_window_system): Rename from Vwindow_system.
759 (termscript, Wcm, rif): Delete.
761 * termhooks.h (struct terminal): New struct containing the
762 previously global text display hooks and new members NAME,
763 DELETED and PARAM_ALIST.
764 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
765 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
766 (FRAME_RIF): New macros.
767 (get_terminal_param, get_device): New declarations.
768 (termscript): Delete declaration.
770 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
771 (XTflash, x_free_frame_resources, x_scroll_bar_create)
772 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
773 FRAME_FOREGROUND_PIXEL.
774 (x_fully_uncatch_errors): Disable definition.
775 (x_scroll_bar_expose): Fix reference to foreground pixel.
776 (XTread_socket): Disable loop on all X displays.
777 (x_delete_terminal): Don't set terminal->deleted and let
778 delete_terminal delete the frames on the terminal.
779 (x_delete_display): Doc update to reflect changes in
781 (x_display_info) <terminal>: Move member earlier in the struct.
782 (deleting_tty): Remove old variable.
783 (Fsuspend_tty): Call clear_tty_hooks.
784 (Fresume_tty, init_tty): Call set_tty_hooks.
785 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
787 (x_catch_errors_unwind): Abort if x_error_message is NULL.
788 (handle_one_xevent): Initialize `f' to NULL.
789 (x_delete_terminal, x_create_terminal): New functions.
790 (XTset_terminal_modes, XTreset_terminal_modes)
791 (XTread_socket, x_connection_closed, x_term_init)
792 (x_term_init, x_delete_display): Add terminal parameter.
793 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
796 * frame.c (Fframep): Deal with output_initial.
797 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
798 (Qtty_type, Qwindow_system, Qenvironment)
799 (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
800 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
801 (make_terminal_frame): Don't create frames on a terminal that is
803 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
804 FRAME_FOREGROUND_PIXEL.
805 (store_frame_param): Check for found_for_frame before calling XFRAME.
806 (Fmake_terminal_frame): Handle NULL tty names correctly.
807 (syms_of_frame): Enhance doc string of `default-frame-alist'.
808 (Fdelete_frame): Remove unused variable `count'.
809 (Qenvironment): New variable.
810 (Fdelete_frame): Don't allow other frames to refer to a deleted
811 frame in their 'environment parameter.
812 (Fframe_with_environment): New function.
813 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
814 (get_future_frame_param): New function.
815 (Fmake_terminal_frame): Use it.
816 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
818 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
819 * sysdep.c (reset_sys_modes): Update for renames.
821 * keyboard.c (tty_read_avail_input): New function.
822 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
823 (syms_of_keyboard): Defsubr them.
824 (Fset_input_meta_mode, Fset_quit_char): New functions.
825 (Fset_input_mode): Split to above functions.
827 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
828 parameter. Use it in call to `read_char'.
829 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
830 Set wrong_kboard_jmpbuf correctly in recursive calls.
831 Use current_kboard to access Vkeyboard_translate_table.
832 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
833 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
834 Update longjmp invocations. Remember the original current_kboard,
835 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
836 changes it. Comment out unnecessary calls to
837 `record_single_kboard_state' and `any_kboard_state'.
838 Update recursive calls.
839 (wrong_kboard_jmpbuf): Remove global variable.
840 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
841 Handle deleted interrupted_kboards correctly; that is a legal
842 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
843 and read_char calls. Abort if interrupted_kboard died in read_char.
844 (any_kboard_state, single_kboard_state)
845 (push_frame_kboard): Remove function.
846 (pop_kboard): Switch out of single_kboard mode if the kboard has
847 been deleted. Remove unused variable. Help debugging by not
848 changing current_kboard unnecessarily. Set current_kboard to the
849 kboard of the selected frame when the stored kboard object has
850 been deleted before pop_kboard.
851 (temporarily_switch_to_single_kboard): Change first parameter to a
852 frame pointer. Throw an error when caller wants to change kboards
853 while in single_kboard mode. Don't push_kboard if we weren't in
854 single kboard state. Don't pop_kboard if we popped into any
856 (restore_kboard_configuration): Abort if pop_kboard changed the
857 kboard in single_kboard mode. Call pop_kboard only after setting
858 up single_kboard mode.
859 (Frecursive_edit): Switch to single_kboard mode only in nested
861 (cmd_error, command_loop, command_loop_1, timer_check):
862 Comment out unnecessary call to `any_kboard_state' and
863 `record_single_kboard_state'.
864 (delete_kboard): Exit single_kboard mode if we have just deleted
865 that kboard. Use FRAME_KBOARD.
866 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
867 `fatal_error_signal'.
868 (record_single_kboard_state): Don't push_kboard if we weren't in
869 single kboard state. Don't pop_kboard if we popped into any
871 (push_frame_kboard): Rename to push_kboard.
872 (kbd_buffer_get_event): Use FRAME_TERMINAL.
873 (read_avail_input): Read input from all terminals.
874 (mark_kboards): Also mark Vkeyboard_translate_table.
875 (kbd_buffer_store_event_hold): Simplify condition.
876 (read_key_sequence): Reinitialize fkey and keytran at each replay.
877 (Vkeyboard_translate_table): Move to struct kboard.
878 (init_kboard): Initialize Vkeyboard_translate_table.
879 (syms_of_keyboard): Use DEFVAR_KBOARD to define
880 Vkeyboard_translate_table. Update doc strings. Update docs of
881 local-function-key-map and function-key-map.
883 * terminal.c: New file.
885 * term.c: Include errno.h.
886 (Vring_bell_function, device_list, initial_device)
887 (next_device_id, ring_bell, update_begin, update_end)
888 (set_terminal_window, cursor_to, raw_cursor_to)
889 (clear_to_end, clear_frame, clear_end_of_line)
890 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
891 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
892 (syms_of_term): Move their initialization to terminal.c.
893 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
894 (Ftty_display_color_cells)
895 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
896 (clear_tty_hooks, set_tty_hooks)
897 (init_tty, maybe_fatal): New functions.
898 (Ftty_type): Return nil if terminal is not on a tty instead of
899 throwing an error. Doc update.
900 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
901 Doc update. Initialize new subrs and variables.
902 (delete_tty): Use terminal->deleted.
903 (tty_set_terminal_modes): Rename from set_terminal_modes.
904 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
905 (set_scroll_region): Rename to `tty_set_scroll_region'.
906 (turn_on_insert): Rename to `tty_turn_on_insert'.
907 (turn_off_insert): Rename to `tty_turn_off_insert'.
908 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
909 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
910 (toggle_highligh): Rename to `tty_toggle_highlight'.
911 (background_highlight): Rename to `tty_background_highlight'.
912 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
913 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
914 (tty_set_scroll_region, tty_background_highlight)
915 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
916 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
917 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
918 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
920 (tty_reset_terminal_modes, tty_set_terminal_window)
921 (tty_set_scroll_region, tty_background_highlight)
922 (tty_highlight_if_desired, tty_cursor_to)
923 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
924 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
925 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
928 2007-08-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
930 * keyboard.c: Qrtl is new.
931 (parse_tool_bar_item): Handle :rtl keyword.
932 (syms_of_keyboard): Intern :rtl keyword.
934 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
936 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
937 so no Lisp code is executed.
938 (file_for_image, find_rtl_image): New functions.
939 (xg_get_image_for_pixmap): Use file_for_image
940 (update_frame_tool_bar): If direction is RTL, use RTL image if
941 defined. Use Gtk stock images if defined.
943 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
945 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
946 for nonexistent or zero-width glyph in composition glyph.
948 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
950 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
952 * xdisp.c (Finvisible_p): New function.
953 (syms_of_xdisp): defsubr it.
955 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
957 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
960 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
962 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
964 2007-08-24 Martin Rudalics <rudalics@gmx.at>
966 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
967 whether decoding has modified buffer contents.
969 2007-08-24 Jason Rumney <jasonr@gnu.org>
971 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
972 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
973 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
974 (init_svg_functions) [HAVE_NTGUI]: New function.
975 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
976 (svg_load_image): Use them.
977 (svg_load_image) [HAVE_NTGUI]: Implement background.
979 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
981 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
982 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
983 (LIBX): Remove @RSVG_LIBS@.
984 (LIBES): Add $(RSVG_LIBS).
986 * image.c (svg_load_image): Blend with specified background if exists.
987 Use IMAGE_BACKGROUND. Add Mac OS Support.
989 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
990 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
992 [MAC_OSX] (socket_callback): Do nothing.
993 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
995 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
997 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
999 2007-08-22 Glenn Morris <rgm@gnu.org>
1001 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
1003 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
1005 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
1007 * image.c: Add support for SVG images. Some additional comments
1008 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
1009 (svg_image_p): New function to test for SVG image.
1010 (svg_load): New function to load SVG image.
1011 (svg_load_image): New function, helper for svg_load.
1012 (Qsvg): New Lisp_object.
1013 (svg_keyword_index): New enum.
1014 (svg_format): New static `image_keyword' struct.
1015 (svg_type): New static `image_type' struct.
1016 (librsvg/rsvg.h): Include it.
1018 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
1020 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1022 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1024 * lread.c (Qold_style_backquotes): New var.
1025 (syms_of_lread): Init and staticpro it.
1026 (load_warn_old_style_backquotes): New fun.
1027 (Fload): Use them to warn about old style backquotes.
1028 (end_of_file_error, Fload): Remove unused vars.
1030 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1032 * lread.c (Vold_style_backquotes): New var.
1033 (syms_of_lread): Init and export it to Elisp.
1034 (read1): Set it when we find an old-style (back)quote.
1036 2007-08-22 Jason Rumney <jasonr@gnu.org>
1038 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1040 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
1042 * puresize.h (BASE_PURESIZE): Increase to 1140000.
1044 2007-08-19 Richard Stallman <rms@gnu.org>
1046 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
1048 2007-08-19 Andreas Schwab <schwab@suse.de>
1050 * alloc.c (pure): Round PURESIZE up.
1052 2007-08-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1054 * xterm.c (handle_one_xevent): Remove check that mouse click is in
1057 2007-08-16 Richard Stallman <rms@gnu.org>
1059 * eval.c (Fcommandp): Add parens to clarify.
1061 * minibuf.c (Fall_completions): Use enum for type of table.
1063 * emacs.c (USAGE2): Improve text.
1065 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
1067 * term.c (tty_default_color_capabilities): Declare static
1068 variables in file scope, to avoid HPUX compiler problem.
1070 2007-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1072 * gtkutil.c (update_frame_tool_bar): Use -1 as index
1073 to gtk_toolbar_insert.
1075 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
1077 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
1079 * insdel.c (reset_var_on_error): New fun.
1080 (signal_before_change, signal_after_change):
1081 Use it to reset (after|before)-change-functions to nil in case of error.
1082 Bind inhibit-modification-hooks to t.
1083 Don't bind (after|before)-change-functions to nil while they run.
1085 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1087 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1088 filling pixmap with stippled background.
1090 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1092 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
1093 Don't use invisible frame as parent window for repositioning.
1095 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
1097 * print.c (new_backquote_output): Rename from old_backquote_output.
1098 (print): Inverse its logic (according to its name) so as to match the
1099 behavior of new_backquote_flag in lread.c.
1101 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1103 * gmalloc.c (posix_memalign): New function.
1105 * macterm.c (frame_highlight, frame_unhighlight): Don't call
1106 ActivateControl/DeactivateControl here.
1107 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
1108 frame-notice-user-settings is non-nil.
1109 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
1110 for kEventParamFMFontStyle.
1111 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
1112 mac_pass_command_to_system and mac_pass_control_to_system here.
1113 (XTread_socket): Call ActivateControl/DeactivateControl here.
1114 (XTread_socket) [TARGET_API_MAC_CARBON]:
1115 Check mac_pass_command_to_system and mac_pass_control_to_system here.
1116 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
1117 for window repositioning.
1119 2007-08-08 Glenn Morris <rgm@gnu.org>
1121 * Replace `iff' in doc-strings and comments.
1123 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
1125 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1127 2007-08-07 Martin Rudalics <rudalics@gmx.at>
1129 * fileio.c (Finsert_file_contents): Run format-decode and
1130 after_insert_file_functions on entire buffer when REPLACE is
1131 non-nil and inhibit modification_hooks and point_motion_hooks.
1132 For consistency, run after_insert_file_functions iff something
1133 got inserted. Move signal_after_change and update_compositions
1134 after code running after_insert_file_functions. Make sure that
1135 undo_list doesn't record intermediate steps of the decoding process.
1137 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1140 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1141 Call malloc_enable_thread on interactive startup.
1143 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
1144 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1145 [USE_PTHREAD]: Conditionalize with it.
1146 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1147 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1150 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
1152 * xdisp.c (redisplay_window): When restoring original buffer
1153 position, make sure it is still valid.
1155 * image.c (png_load): Ignore png-supplied background color.
1157 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1159 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
1160 Use kCFAbsoluteTimeIntervalSince1970.
1162 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
1164 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
1165 event loop should be quit.
1166 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
1167 Quit dialog event loop if quit_dialog_event_loop is set.
1169 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
1170 (Selection): New typedef. Use instead of ScrapRef.
1171 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
1172 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
1173 (mac_clear_selection): Rename from clear_scrap.
1174 (get_flavor_type_from_symbol): New argument SEL and subsume function of
1175 scrap_has_target_type. All uses changed.
1176 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1177 (mac_selection_has_target_p): New functions.
1178 (mac_put_selection_value): Rename from put_scrap_string.
1179 (mac_get_selection_value): Rename from get_scrap_string.
1180 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
1181 (put_scrap_private_timestamp, scrap_has_target_type)
1182 (get_scrap_private_timestamp): Remove functions.
1183 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
1184 (x_own_selection, x_get_local_selection):
1185 Use mac_valid_selection_value_p.
1186 (x_own_selection): Don't use put_scrap_private_timestamp.
1187 Record OWNERSHIP-INFO into Vselection_alist instead.
1188 (x_get_local_selection): Don't check type if request is local.
1189 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
1190 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
1192 2007-08-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1194 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
1195 add comment explaining why.
1197 2007-08-03 Richard Stallman <rms@gnu.org>
1199 * fileio.c (Fvisited_file_modtime): Use make_time.
1201 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
1203 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1206 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
1208 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
1210 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
1212 * puresize.h (BASE_PURESIZE): Increase to 1130000.
1214 2007-07-30 Richard Stallman <rms@gnu.org>
1216 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
1218 2007-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1220 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
1222 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
1224 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
1225 remote default-directory.
1227 * buffer.c (mode-line-format): Update doc string.
1229 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1231 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
1233 (x_scroll_bar_create): Set bar->fringe_extended_p.
1234 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
1235 on frame edge. Check fringe background extension. Don't clear
1236 extended fringe background area.
1238 * w32term.h (struct scroll_bar): New member fringe_extended_p.
1239 (w32_fill_area): Enclose multiple statements with do ... while (0).
1241 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
1242 Extend fringe background to scroll bar gap.
1243 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
1244 Set bar->fringe_extended_p.
1245 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1246 Put leftmost/rightmost scroll bars on frame edge. Check fringe
1247 background extension. Don't clear extended fringe background area.
1249 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1250 New member fringe_extended_p.
1252 2007-07-25 Glenn Morris <rgm@gnu.org>
1254 * Relicense all FSF files to GPLv3 or later.
1256 * COPYING: Switch to GPLv3.
1258 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
1260 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
1262 * data.c (Finteractive_form): Check for the presence of an
1263 `interactive-form' symbol property more thoroughly.
1265 * data.c (Finteractive_form): Use an `interactive-form' property if
1266 present, analogous to the function-documentation property.
1268 2007-07-24 Jason Rumney <jasonr@gnu.org>
1270 * w32fns.c (x_real_positions): Get real position from OS instead of
1273 2007-07-23 Jason Rumney <jasonr@gnu.org>
1275 * filelock.c (current_lock_owner): Allow for @ sign in username.
1277 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
1279 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
1280 remote default-directory.
1282 * buffer.c (mode-line-format): Describe above case in doc string.
1284 2007-07-20 Eli Zaretskii <eliz@gnu.org>
1286 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1287 Define if not defined.
1289 2007-07-18 Jason Rumney <jasonr@gnu.org>
1291 * w32proc.c (w32_executable_type): Handle 64 bit executables.
1293 2007-07-18 Richard Stallman <rms@gnu.org>
1295 * data.c (Fsetq_default): Doc fix.
1297 * eval.c (Fsetq): Doc fix.
1299 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
1301 * coding.c (Ffind_operation_coding_system):
1302 * eval.c (For, Fand): Doc fixes.
1303 Reported by Johan Bockg
\e,Ae
\e(Brd.
1305 2007-07-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1307 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
1309 * xterm.h: Declare x_ewmh_activate_frame.
1311 * xterm.c (x_ewmh_activate_frame): New function.
1312 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
1314 2007-07-17 Martin Rudalics <rudalics@gmx.at>
1316 * window.c (Fdisplay_buffer): If largest or LRU window is the
1317 only window, split it even if it is not eligible for splitting.
1318 This restores the original behavior broken by the 2007-07-15
1321 2007-07-17 Glenn Morris <rgm@gnu.org>
1323 * abbrev.c (abbrev_check_chars): New function.
1324 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1325 Call abbrev_check_chars to check abbrev characters are word
1326 constituents. Doc fix.
1328 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1330 * process.c (Fstart_process, Fmake_network_process)
1331 (read_process_output): Fix up last changes.
1333 2007-07-16 Eli Zaretskii <eliz@gnu.org>
1335 * makefile.w32-in (clean): Don't delete *~.
1337 2007-07-16 Andreas Schwab <schwab@suse.de>
1339 * window.c (Fdisplay_buffer): Use NILP.
1340 (Fset_window_scroll_bars): Likewise.
1342 2007-07-15 Martin Rudalics <rudalics@gmx.at>
1344 * window.c (window_min_size_2): New function.
1345 (window_min_size_1, size_window, Fdisplay_buffer)
1346 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1347 windows without mode- or header-lines when window-min-height is
1349 (size_window): Reset nodelete_p after testing it, following an
1350 earlier note by Kim F. Storm.
1351 (display_buffer): Do not set split_height_threshold to twice the
1352 value of window_min_height to avoid changing the value of a
1353 customizable variable. Rather explicitly check whether the
1354 height of the window that shall be splitted is at least as large
1355 as split_height_threshold.
1357 2007-07-14 Jason Rumney <jasonr@gnu.org>
1359 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
1361 2007-07-14 Richard Stallman <rms@gnu.org>
1363 * eval.c (maybe_call_debugger): New function.
1364 (find_handler_clause): Use maybe_call_debugger.
1365 Call it when the handler says `debug'.
1366 Eliminate DEBUGGER_VALUE_PTR.
1367 (Fsignal): Eliminate debugger_value.
1368 (Qdebug): New variable.
1369 (syms_of_eval): Initialize it.
1371 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
1374 * keyboard.c (Ftrack_mouse):
1375 * print.c (Fwith_output_to_temp_buffer):
1376 * window.c (Fsave_window_excursion): Doc fix.
1378 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1380 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1382 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
1384 * process.h (struct Lisp_Process): Turn slots infd, outfd,
1385 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
1386 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
1387 read_output_delay, and read_output_skip from Lisp_Objects to ints.
1388 Remove unused encoding_carryover.
1389 * process.c: Adjust all functions accordingly.
1391 2007-07-12 Richard Stallman <rms@gnu.org>
1393 * term.c: Include unistd.h only if HAVE_UNISTD_H.
1395 2007-07-11 Jason Rumney <jasonr@gnu.org>
1397 * makefile.w32-in (LIBS): Include OLE32.
1399 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1400 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1402 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1404 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
1405 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
1406 from a Lisp_Object into a bare pointer.
1407 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
1408 Adjust the code correspondingly.
1410 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
1412 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
1413 (term_show_mouse_face): Remove unused var `j'.
1414 (handle_one_term_event): Remove unused vars `i' and `j'.
1415 Don't cast return value of ttyname since it's not necessary.
1417 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
1419 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
1420 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
1422 * fns.c (map_char_table): Use an array of int for `indices' rather than
1423 an array of Lisp_Objects (which are only ever integers anyway).
1424 (Fmap_char_table): Update caller.
1425 * lisp.h: Update prototype.
1426 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
1427 * fontset.c (Ffontset_info):
1428 * casetab.c (set_case_table): Update callers.
1430 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
1432 * keymap.c (struct accessible_keymaps_data)
1433 (struct where_is_internal_data): New structures.
1434 (accessible_keymaps_1, where_is_internal_1): Use them to change
1435 interface to adhere to the one used by map_keymap.
1436 (Faccessible_keymaps, where_is_internal): Use map_keymap.
1437 (accessible_keymaps_char_table, where_is_internal_2): Remove.
1439 * keymap.h (map_keymap_function_t): More informative prototype.
1441 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
1443 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
1444 (looking_at_1): Don't change search_regs and last_thing_searched
1445 if `inhibit-changing-match-data' is non-nil.
1446 (string_match_1, search_buffer, set_search_regs): Likewise.
1447 (syms_of_search): Add Lisp level definition for
1448 `inhibit-changing-match-data' and set it to nil.
1449 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
1450 start and end of the match, instead of using values in search_regs.
1452 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
1454 * minibuf.c (Fcompleting_read): New value `confirm-only'
1455 for `require-match'.
1457 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
1459 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
1460 part of the 2007-06-27 change to syms_of_fileio.
1462 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1464 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1465 Check WINDOWP before using XWINDOW. Consolidate return statements.
1467 2007-06-27 Richard Stallman <rms@gnu.org>
1469 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1471 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
1473 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1475 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1477 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1478 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1479 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1480 (_free_internal, memalign): Use them.
1481 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1482 Initialize to PTHREAD_MUTEX_INITIALIZER.
1483 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1484 (morecore_nolock): Rename from morecore. All uses changed.
1485 Use only nolock versions of internal allocation functions.
1486 (_malloc_internal_nolock, _realloc_internal_nolock)
1487 (_free_internal_nolock): New functions created from
1488 _malloc_internal, _realloc_internal, and _free_internal.
1489 (_malloc_internal, _realloc_internal, _free_internal): Use them.
1490 Copy hook value to automatic variable before its use.
1491 (memalign): Copy hook value to automatic variable before its use.
1493 2007-06-26 Kenichi Handa <handa@m17n.org>
1495 * coding.c (Ffind_operation_coding_system): Docstring improved.
1496 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
1498 2007-06-25 David Kastrup <dak@gnu.org>
1500 * keymap.c (Fcurrent_active_maps): Add `position' argument.
1501 (Fwhere_is_internal): Adjust call to `current-active-maps' to
1502 cater for additional parameter.
1504 * keymap.h: Adjust number of parameters to `current-active-maps'.
1506 * doc.c (Fsubstitute_command_keys): Adjust call of
1507 `current-active-maps'.
1509 2007-06-25 David Kastrup <dak@gnu.org>
1511 * callint.c (Fcall_interactively): Make the parsing of interactive
1512 specs somewhat more readable.
1514 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1516 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
1517 to scroll bar gap also when bitmap fills fringe. Draw only foreground
1518 if extended background has already been filled.
1520 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1522 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
1523 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
1525 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
1526 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
1527 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
1528 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
1529 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
1530 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
1531 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
1532 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
1533 Run timers during dialog popup.
1534 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
1536 2007-06-21 Jason Rumney <jasonr@gnu.org>
1538 * image.c (convert_mono_to_color_image): Swap fore and background.
1540 2007-06-20 Jason Rumney <jasonr@gnu.org>
1542 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1543 (w32_free_bdf_font): Unmap memory not handle.
1545 2007-06-20 Sam Steingold <sds@gnu.org>
1547 * gmalloc.c (__morecore): Fix the declaration to comply with the
1550 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
1552 * w32term.c (w32_delete_display): Remove leftover declaration.
1553 (w32_define_cursor, w32_initialize): Make static.
1555 * w32.c (_wsa_errlist): Fix typo in error message.
1556 (init_environment): Ignore any environment variable from the
1557 registry having a null value.
1559 2007-06-20 Glenn Morris <rgm@gnu.org>
1561 * Makefile.in (LIBGIF): Default to -lgif.
1563 2007-06-17 Jason Rumney <jasonr@gnu.org>
1565 * w32menu.c (add_menu_item): Don't use multibyte string functions on
1568 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
1570 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1571 Fix typo in docstring.
1573 2007-06-16 Eli Zaretskii <eliz@gnu.org>
1575 * w32menu.c (add_menu_item): Escape `&' characters in menu items
1576 and their keybindings.
1578 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
1580 * composite.c (update_compositions): Fix last fix.
1582 2007-06-14 Jason Rumney <jasonr@gnu.org>
1584 * w32.c (get_process_times_fn): New function pointer.
1585 (globals_of_w32): Intialize it if present in kernel32.dll.
1586 (w32_get_internal_run_time): New function.
1588 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
1590 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
1592 * composite.c (update_compositions): Check the validness of
1595 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1597 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
1598 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
1600 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
1601 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
1603 * macgui.h (USE_MAC_TOOLBAR): New define.
1605 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1606 Return immediately unless popup is activated.
1608 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
1609 background to scroll bar gap.
1610 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
1611 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
1612 scroll bars on frame edge. Check fringe background extension.
1613 Don't clear extended fringe background area.
1614 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
1615 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
1616 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
1617 [USE_MAC_TOOLBAR]: New macros.
1618 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
1619 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
1620 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
1621 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
1622 [USE_MAC_TOOLBAR]: New functions.
1623 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
1624 manually if previous repositioning has failed.
1625 (mac_handle_keyboard_event): Use precomputed event kind.
1626 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
1627 as tool bar item click. Handle mouse movement over tool bar items.
1629 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
1630 toolbar_win_gravity.
1631 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
1632 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
1635 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
1636 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
1638 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
1640 * image.c (search_image_cache): Remove unused variable.
1642 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
1644 * xfns.c, xmenu.c: Link to xaw3d if available.
1646 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1648 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
1649 frame_foreground and frame_background.
1651 * image.c (lookup_image): Save frame foreground and background colors.
1652 (search_image_cache): Check if saved and current frame colors match.
1654 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1656 * regex.c (regex_compile): Remove the `regnum' counter.
1657 Use bufp->re_nsub instead. Add support for \(?N:RE\).
1659 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1661 * term.c: Include intervals.h to declare Fget_text_property.
1663 2007-06-10 Jason Rumney <jasonr@gnu.org>
1665 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1667 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
1669 * callint.c (Fcall_interactively):
1670 * editfns.c (Fdelete_and_extract_region):
1671 * fileio.c (Fread_file_name):
1672 * fns.c (Fmapconcat):
1673 * keyboard.c (cmd_error_internal):
1674 * keymap.c (Fkey_description):
1676 * minibuf.c (read_minibuf):
1677 * search.c (wordify):
1678 * sunfns.c (sel_read):
1679 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
1680 * xfns.c (x_default_scroll_bar_color_parameter):
1681 * xmenu.c (menu_help_callback):
1682 * xselect.c (Fx_get_atom_name):
1683 * xterm.c (x_term_init): Use empty_unibyte_string.
1685 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
1687 * alloc.c (init_strings): Initialize canonical empty strings.
1688 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
1689 canonical empty string when the requested size is 0.
1691 * emacs.c (empty_unibyte_string): Rename from empty_string.
1692 (empty_multibyte_string): New canonical empty string.
1693 (syms_of_emacs): Don't initialize empty_string.
1695 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
1696 string, if appropriate.
1697 (empty_unibyte_string, empty_multibyte_string): New externs.
1698 (empty_string): Remove extern.
1700 * lread.c (syms_of_lread): Use empty_unibyte_string.
1702 2007-06-07 Jason Rumney <jasonr@gnu.org>
1704 * s/ms-w32.h: Don't define HAVE_TZNAME.
1706 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
1708 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1710 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
1712 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
1713 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
1715 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1716 Don't call next handler.
1717 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
1718 Remove argument. Install handler to application.
1719 (set_frame_menubar): Don't change deep_p.
1720 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
1721 FRAME_OUTER_TO_INNER_DIFF_Y.
1722 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1723 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1724 [HAVE_DIALOGS]: New macros.
1725 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
1727 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
1729 * macselect.c [MAC_OSX] (install_service_handler): Rename from
1730 init_service_handler. All callers changed. Return OSStatus value.
1732 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
1733 All callers changed so as not to call SetPortWindowPort.
1734 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1735 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
1736 mac_draw_string_common.
1737 (mac_draw_image_string_qd): Likewise.
1738 (mac_draw_string_common): Use them. Add INLINE.
1739 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
1740 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
1742 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
1743 and FRAME_OUTER_TO_INNER_DIFF_Y.
1744 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
1745 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
1746 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
1747 repositioning window to mac_handle_window_event.
1748 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
1749 saving window location to mac_handle_window_event
1750 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
1751 (install_menu_target_item_handler): Remove argument in extern.
1752 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
1753 Also accept command events.
1754 (do_keystroke): New function created from XTread_socket.
1755 (init_command_handler): Remove functions.
1756 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
1757 and save window location by kEventWindowShowing and kEventWindowHiding
1758 handlers here. Don't call next handler for window state change and
1760 (mac_handle_application_event, mac_handle_keyboard_event)
1761 [TARGET_API_MAC_CARBON]: New functions.
1762 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
1763 kEventWindowShowing and kEventWindowHiding events. Move installation
1764 of mouse, font, text input and menu target item handlers to
1765 install_application_handler.
1766 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
1767 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1769 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1771 (XTread_socket) [TARGET_API_MAC_CARBON]:
1772 Consolidate SendEventToEventTarget calls.
1773 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
1774 Move application activation handler to mac_handle_application_event.
1775 Move keyboard handler to mac_handle_keyboard_event.
1776 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
1777 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1778 init_command_handler. Call install_application_handler.
1780 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
1781 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
1783 2007-06-07 Glenn Morris <rgm@gnu.org>
1785 * emacs.c (main): Use `emacs-copyright' in --version output.
1787 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
1789 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
1791 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1793 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
1795 * macgui.h: Replace WindowPtr with WindowRef.
1797 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1798 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
1799 Replace ControlHandle with ControlRef.
1800 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
1802 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1803 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
1804 Replace ControlHandle with ControlRef.
1805 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
1806 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
1808 * macterm.h (struct scroll_bar): Rename member control_handle_low
1809 and control_handle_high to control_ref_low and control_ref_high.
1811 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
1812 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
1813 respectively. All uses changed.
1814 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
1815 (install_window_handler, remove_window_handler): Replace WindowPtr
1816 with WindowRef in externs.
1818 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
1820 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
1822 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
1824 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
1826 * frame.c (Fmouse_position, Fmouse_pixel_position):
1827 Condition on HAVE_GPM too.
1829 * term.c (term_mouse_highlight): Remove unused variables.
1830 (Fterm_open_connection): Set gpm_zerobased to 1.
1831 (term_mouse_movement, term_mouse_click, handle_one_term_event):
1832 Use zero based co-ordinates.
1833 (handle_one_term_event): Report a drag as mouse movement too.
1835 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
1837 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
1839 * image.c (search_image_cache): New function. Require background
1840 color match if background color is unspecified in the image spec.
1841 (uncache_image, lookup_image): Use it.
1843 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
1845 * window.c (Fshrink_window): Reflow docstring.
1847 See ChangeLog.10 for earlier changes.
1850 ;; coding: iso-2022-7bit
1851 ;; add-log-time-zone-rule: t
1854 Copyright (C) 2007 Free Software Foundation, Inc.
1856 This file is part of GNU Emacs.
1858 GNU Emacs is free software; you can redistribute it and/or modify
1859 it under the terms of the GNU General Public License as published by
1860 the Free Software Foundation; either version 3, or (at your option)
1863 GNU Emacs is distributed in the hope that it will be useful,
1864 but WITHOUT ANY WARRANTY; without even the implied warranty of
1865 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1866 GNU General Public License for more details.
1868 You should have received a copy of the GNU General Public License
1869 along with GNU Emacs; see the file COPYING. If not, write to the
1870 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
1871 Boston, MA 02110-1301, USA.
1873 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40