Revert incorrect merge
[emacs.git] / src / ChangeLog
blobaca22996d14f117b3aa268d67ceafc2ffd0f1719
1 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
5 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
7         * callint.c (syms_of_callint) <command-history>: Add reference to
8         history-length in the doc string.
10 2007-12-17  Jason Rumney  <jasonr@gnu.org>
12         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
13         before passing as wParam.
15 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
17         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21         as number.
22         (Fdbus_call_method): Fix docstring.
24 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
26         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27         New macros.
28         (XD_SYMBOL_TO_DBUS_TYPE): Renamed from
29         XD_LISP_SYMBOL_TO_DBUS_TYPE.
30         (XD_OBJECT_TO_DBUS_TYPE): Renamed from
31         XD_LISP_OBJECT_TO_DBUS_TYPE. Simplify.
32         (xd_signature): New function.
33         (xd_append_arg): Compute also signatures.  Major rewrite.
34         (xd_retrieve_arg): Make debug messages friendly.
35         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.  Check
36         for signatures of arguments.
38 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
40         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
41         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
42         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
43         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
44         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
45         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type
46         symbols.
47         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
48         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
49         (xd_retrieve_value): Removed. Functionality included in ...
50         (xd_append_arg): New function.
51         (Fdbus_call_method, Fdbus_send_signal): Apply it.
53 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
55         * dbusbind.c (top): Include <stdio.h>.
56         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
57         dbus_message_new_method_call and dbus_message_new_signal.
58         (Fdbus_register_signal): Rename unique_name to uname.  Check
59         handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
60         non-existing unique name.  Fix typos in matching rule.  Return an
61         object which is useful in Fdbus_unregister_signal.
62         (Fdbus_unregister_signal): Reimplementation, in order to remove
63         only the corresponding entry.
64         (Vdbus_registered_functions_table): Change the order of entries.
65         Apply these changes in xd_read_message and Fdbus_register_signal.
67 2007-12-16  Andreas Schwab  <schwab@suse.de>
69         * fileio.c (Finsert_file_contents): Fix overflow check to not
70         depend on undefined integer overflow.
72 2007-12-14  Jason Rumney  <jasonr@gnu.org>
74         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
75         for characters above 127.
77 2007-12-13  Jason Rumney  <jasonr@gnu.org>
79         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
80         before dereferencing array.
81         (lookup_vk_code): Remove zero comparison.
83 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
85         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
86         (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
87         `unsigned int' instead of `uint'.
88         (xd_read_message, Fdbus_register_signal): Split expressions into
89         multiple lines before operators "&&" and "||", according to the
90         GNU Coding Standards.
92 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
94         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
96 2007-12-12  Juri Linkov  <juri@jurta.org>
98         * buffer.c (Frename_buffer): In interactive spec replace
99         `read-buffer' with `read-string' that uses `buffer-name-history'
100         as history, and the current buffer's name as default.
102 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
104         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
105         manipulating the backtrace manually.
106         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
107         (struct backtrace, backtrace_list): Remove.
108         (command_loop_1): Remove dead var `no_direct'.
110         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
111         preserve non-built-in buffer-local variables.
112         (Fkill_all_local_variables): Don't re-create&re-set permanent
113         buffer-local variables.
115 2007-12-09  Juri Linkov  <juri@jurta.org>
117         * buffer.c (Frename_buffer): Change interactive spec from "s" to
118         Lisp code that uses `read-buffer' with current buffer as default.
120 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
122         * dbusbind.c (xd_read_message): Generate an event for every
123         registered handler.  There might be several handlers registered
124         for the same signal.
125         (Fdbus_register_signal): Don't overwrite a registration for the
126         same signal.  Add a new registration if handlers are different.
127         (Vdbus_registered_functions_table): Rework doc string.
129 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
131         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
132         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
133         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
134         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
135         Unify argument lists.
136         (xd_read_message, Fdbus_register_signal) Reorder and extend event
137         arguments and hash table keys.  Use unique name for service.
138         (Fdbus_unregister_signal): Remove checks.
139         (Vdbus_registered_functions_table): Fix doc string.
141 2007-12-05  Magnus Henoch  <mange@freemail.hu>
143         * process.c (make_process): Initialize pty_flag to 0.
145 2007-12-05  Jason Rumney  <jasonr@gnu.org>
147         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
148         specified XBMs.
150 2007-12-05  Richard Stallman  <rms@gnu.org>
152         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
154 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
156         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
157         New variable.
158         (mac_try_close_socket) [MAC_OSX]: New function.
159         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
160         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
162         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
163         Use mac_try_close_socket.
165 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
167         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
168         reloc_base.
169         (copy_dysymtab): Compute relocation base here.
170         (rebase_reloc_address) [__ppc64__]: New function.
171         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
172         changed.
174 2007-12-05  Jason Rumney  <jasonr@gnu.org>
176         * w32proc.c (sys_spawnve): Quote args with wildcards.
178 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
180         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
181         __objc_* sections.
182         (unrelocate) [_LP64]: Set relocation base to address of data segment.
184 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
186         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
187         Move check for Vdbus_registered_functions_table to
188         xd_read_queued_messages.
189         (xd_read_queued_messages): Protect xd_read_message calls by
190         internal_condition_case_1.
192 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
194         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Renamed from
195         Qdbus_system_bus and Qdbus_session_bus, respectively.
196         (Vdbus_intern_symbols): Removed.
197         (Vdbus_registered_functions_table): New hash table.
198         (XD_SYMBOL_INTERN_SYMBOL): Removed.
199         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
200         Rewritten in order to manage registered functions by hash table
201         Vdbus_registered_functions_table.
203 2007-12-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
205         * xterm.c: Update URL to Window Manager Specification in comment.
207 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
209         * config.in (HAVE_DBUS): Add.
211         * Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
212         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
213         (obj): Add $(DBUS_OBJ).
214         (LIBES): Add $(DBUS_LIBS).
215         (dbusbind.o): New target.
217         * dbusbind.c: New file.
219         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
221         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
222         (Qdbus_event) New Lisp symbol.
223         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
224         (gobble_input): Call xd_read_queued_messages, reading D-Bus
225         messages.
226         (keys_of_keyboard ): Define dbus-event.
228         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
230 2007-12-01  Richard Stallman  <rms@gnu.org>
232         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
234 2007-11-30  Jason Rumney  <jasonr@gnu.org>
236         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
237         (w32con_reset_terminal_modes): Clear screen buffer.
238         (w32_face_attributes): Don't use color indexes that are out of range.
239         Only reverse the default colors.
241         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
242         WINDOWSNT.
244         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
246 2007-11-29  Jason Rumney  <jasonr@gnu.org>
248         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
249         (w32_face_attributes): Use Vtty_defined_color_alist to determine
250         if the terminal colors are initialized.
251         (unspecified_fg, unspecified_bg): Remove unused declarations.
253 2007-11-29  Andreas Schwab  <schwab@suse.de>
255         * keyboard.c (apply_modifiers): Fix typo.
257 2007-11-29  Richard Stallman  <rms@gnu.org>
259         * keymap.c (Fcurrent_local_map): Doc fix.
261 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
263         * s/gnu-kfreebsd.h: New file.
265 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
267         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
268         Don't cast redundantly.
270         * keyboard.c (KEY_TO_CHAR): New macro.
271         (parse_modifiers, apply_modifiers): Accept integer arguments.
272         (read_key_sequence): Use them to unify the "shift->unshift" mapping
273         for chars and symbol keys.
274         After doing such remapping, apply function-key-map again.
276 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
278         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
279         compiled anymore.
281 2007-11-26  Andreas Schwab  <schwab@suse.de>
283         * process.c (list_processes_1): Fix indentation level of the
284         command column.
286 2007-11-23  Andreas Schwab  <schwab@suse.de>
288         * editfns.c (Fformat): Handle %c specially since it requires the
289         argument to be of type int.
291 2007-11-23  Markus Triska  <markus.triska@gmx.at>
293         * emacs.c (main): Call init_editfns before init_process, since
294         init_process sets Vprocess_connection_type depending on OS release
296 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
298         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
299         (find_symbol_value): Use do_symval_forwarding.
301         * data.c (set_internal): Set the value in the `cons-cell' (for
302         Buffer_Local_values) not only for frame-local variables.
304 2007-11-22  Andreas Schwab  <schwab@suse.de>
306         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
307         values to sprintf.
308         * keymap.c (Fsingle_key_description): Likewise.
309         * print.c (print_object): Likewise.
311 2007-11-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
313         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
314         file for image is nil.
316 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
318         * term.c: Include stdarg.h.
319         (fatal): Implement using varargs.
320         * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
322 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
324         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
325         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
326         Update call to buffer_slot_type_mismatch.
327         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
328         (buffer_slot_type_mismatch): Update.
329         * buffer.c (buffer_local_types): Remove.
330         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
331         (defvar_per_buffer): Set the type in the buffer_objfwd.
333 2007-11-21  Jason Rumney  <jasonr@gnu.org>
335         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
336         CreateFileMapping returns NULL on failure.
338 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
340         * search.c (Fset_match_data): Remove the `evaporate' feature.
341         (unwind_set_match_data): Don't use the `evaporate' feature.
343 2007-11-21  Jason Rumney  <jasonr@gnu.org>
345         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
347         * w32console.c (w32con_write_glyphs): Remove unused variables.
349 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
351         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
353         * s/darwin.h (MULTI_KBOARD): Remove.
355         * macfns.c (x_create_tip_frame, Fx_create_frame)
356         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
358 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
360         * buffer.c (Fbuffer_local_value): Remove redundant test.
361         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
362         than in `current-buffer' to match the comment.
363         Do the swap using swap_in_global_binding.
365         * data.c (store_symval_forwarding, set_internal):
366         * eval.c (specbind): Remove dead code.
368         * coding.c (detect_coding, Fupdate_coding_systems_internal):
369         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
370         Since we do not want to see internal Lisp_*fwd objects here.
372 2007-11-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
374         * sysdep.c (init_system_name): Use getaddrinfo if available.
376         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
377         (x_scroll_bar_note_movement): start, end, with, height in struct
378         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
380 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
382         * puresize.h (BASE_PURESIZE): Increase to 1190000.
384 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
386         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
387         This undoes Richard's change of 14-Oct-2002.
389         * alloc.c (allocate_other_vector):
390         * lisp.h (allocate_other_vector): Remove.
392         * window.c (struct save_window_data): Move non-lisp data to the end
393         and make it `int' rather than Lisp_Object.
394         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
395         Done wrap/unwrap integer values.
396         (Fset_window_configuration, compare_window_configurations):
397         Update use of fields to their new types.
399         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
400         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
401         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
402         (SET_SCROLL_BAR_X_WINDOW): Remove.
403         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
404         Access the new x_window field directly.
405         * xterm.c (x_scroll_bar_create): Use a pseudovector.
406         Don't wrap/unwrap integers into Lisp_Objects.
407         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
408         (x_scroll_bar_report_motion):
409         Don't wrap/unwrap integers into Lisp_Objects.
410         (x_term_init): Use SDATA.
411         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
412         (x_scroll_bar_set_handle, x_scroll_bar_remove)
413         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
414         (x_scroll_bar_report_motion, x_scroll_bar_clear):
415         * xfns.c (x_set_background_color):
416         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
417         Access the new x_window field directly.
419         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
420         (allocate_pseudovector): Make non-static.
422         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
423         (allocate_pseudovector): Declare.
424         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c
426 2007-11-15  Andreas Schwab  <schwab@suse.de>
428         * editfns.c (Fformat): Correctly format EMACS_INT values.
429         Also take precision into account when formatting an integer.
431         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
433 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
435         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
436         (syms_of_keyboard): Defsubr it.
438         * data.c (swap_in_global_binding): Fix longstanding bug where
439         store_symval_forwarding was not called with the right second argument,
440         thus causing objfwd-ing from being dropped.
442 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
444         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
445         (Fx_display_pixel_height, Fx_display_planes)
446         (Fx_display_color_cells, Fx_server_max_request_size)
447         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
448         (Fx_display_visual_class, Fx_display_save_under):
449         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
450         (Fx_display_pixel_height, Fx_display_planes)
451         (Fx_display_color_cells, Fx_server_max_request_size)
452         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
453         (Fx_display_mm_height, Fx_display_mm_width)
454         (Fx_display_backing_store, Fx_display_visual_class)
455         (Fw32_select_font, Fx_display_save_under):
456         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
457         (Fx_display_pixel_height, Fx_display_planes)
458         (Fx_display_color_cells, Fx_server_max_request_size)
459         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
460         (Fx_display_save_under): Fix typos in docstrings.
462 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
464         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
465         corresponding to deleted entries; they are an implementation detail.
466         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
467         Remove variables.
468         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
469         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
470         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
471         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
472         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
473         (Fw32_define_rgb_color, Fw32_load_color_file)
474         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
475         Fix typos in docstrings.
476         (Fx_server_version): Reflow docstring.
477         (Fw32_shell_execute): Doc fixes.
479 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
481         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
482         if w32_parse_hot_key returned nil.
484 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
486         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
488 2007-11-09  Jason Rumney  <jasonr@gnu.org>
490         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
492         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
494         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
495         Remove W32_SCROLL_BAR_CLICK_EVENT.
497         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
498         Add MULTIMEDIA_KEY_EVENT.
500         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
501         (lispy_multimedia_keys) [WINDOWSNT]: New array.
502         (make_lispy_event) [WINDOWSNT]: Use it to translate
503         MULTIMEDIA_KEY_EVENT.
505         * w32term.h (WM_APPCOMMAND): Define if not already.
506         (GET_APPCOMMAND_LPARAM): Likewise.
508         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
509         WM_APPCOMMAND.
511         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
512         (syms_of_w32fns): Export and initialize it.
513         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
515 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
517         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
518         twice.
520         * xdisp.c (handle_face_prop): Fix last change.
522 2007-11-09  Richard Stallman  <rms@gnu.org>
524         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
525         not just for after-strings and before-strings.
526         Call face_for_overlay_string and pass the overlay to it.
527         (handle_display_prop): Determine whether property came from an overlay.
528         Pass OVERLAY arg to handle_single_display_spec.
529         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
530         (load_overlay_strings): Fill in it->string_overlays.
531         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
533         * xfaces.c (face_for_overlay_string): Function renamed from
534         face_at_buffer_position_no_overlays, and add arg OVERLAY.
536         * dispextern.h (struct it): New elt string_overlays.
537         New elt from_overlay, also in stack.
538         Rearrange a few elements.
539         (face_for_overlay_string): Decl renamed from
540         face_at_buffer_position_no_overlays, and add argument.
542 2007-11-09  Richard Stallman  <rms@gnu.org>
544         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
545         to get the base face for an overlay string.
547         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
549         * xfaces.c (face_at_buffer_position_no_overlays): New function.
551         * xdisp.c (handle_stop): Move some code out of loop.
553 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
555         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
556         Fix conversion from Lisp object to ATSUFontID.
558 2007-11-09  Jason Rumney  <jasonr@gnu.org>
560         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
562 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
564         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
565         Don't assume regions are aligned to page boundary.
566         (print_load_command_name): Add LC_UUID if defined.
568 2007-11-09  Richard Stallman  <rms@gnu.org>
570         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
572 2007-11-07  Jason Rumney  <jasonr@gnu.org>
574         * s/windows95.h: Remove.
576 2007-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
578         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
579         abort with a message on unhandled store_type values.
581 2007-11-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
583         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
584         Remove HAVE_X11R5 and HAVE_X11R4.
586 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
588         * Makefile.in: Remove references to sunfns.c and sunfns.o.
590 2007-11-01  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
592         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
593         Don't set s->stippled_p here, since it has already been set by
594         x_set_glyph_string_gc from x_draw_glyph_string.
596 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
598         * sunfns.c: Remove file
600         * m/sun386.h:
601         * m/sun2.h:
602         * m/sparc.h: Remove Sun windows code.
604 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
606         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
607         (init_keyboard): Set current_kboard's window-system to nil.
608         (tty_read_avail_input): Typo.
609         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
611 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
613         * s/usg5-4.h:
614         * s/usg5-3.h:
615         * s/ptx.h:
616         * m/is386.h:
617         * m/ibmps2-aix.h:
618         * Makefile.in: Remove all mentions of X10
620         * dispnew.c (syms_of_display): Don't mention version 10.
622 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
624         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
625         ($(BLD)/abbrev.$(O)): Remove.
627 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
629         Rewrite abbrev.c in Elisp.
630         * image.c (Qcount): Don't declare as extern.
631         (syms_of_image): Initialize and staticpro `Qcount'.
632         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
633         * emacs.c (main): Don't call syms_of_abbrev.
634         * Makefile.in (obj): Remove abbrev.o.
635         (abbrev.o): Remove.
636         * abbrev.c: Remove.
638 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
640         * window.c (window_min_size_2): Don't count header-line.
642 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
644         * frame.h (struct frame): Move all bit fields after the first bit
645         field to take advantage of the available space.  Group all the
646         chars together to reduce wasted space due to padding.
648 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
650         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
652         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
653         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
654         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
655         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
656         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
657         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
658         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
659         (last_marked, mark_object_loop_halt): Make static.
661         * frame.c (syms_of_frame) <delete-frame-functions>:
662         Fix typo in docstring.
664 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
666         * w32.c (init_environment): Fix tiny memory leak.
667         (w32_get_resource): Remove unused variable `ok'.
669 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
671         Make `window-system' into a keyboard-local variable (rather than
672         frame-local as done originally by multi-tty).
674         * keyboard.h (struct kboard): Add Vwindow_system.
675         * keyboard.c (init_kboard): Set a default for Vwindow_system.
676         (mark_kboards): Mark Vwindow_system.
678         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
679         (init_display): Don't set the obsolete `window-system' frame-param.
681         * xterm.c (x_term_init):
682         * w32term.c (w32_create_terminal):
683         * term.c (init_tty): Set Vwindow_system.
684         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
685         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
687         * xfns.c (Fx_create_frame, x_create_tip_frame):
688         * w32fns.c (Fx_create_frame, x_create_tip_frame):
689         * macfns.c (Fx_create_frame):
690         Don't set the obsolete `window-system' frame-param.
692         * frame.h (Qwindow_system): Remove.
693         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
694         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
696 2007-10-24  Richard Stallman  <rms@gnu.org>
698         * frame.c (x_figure_window_size): For fullscreen case,
699         set USPosition | PPosition without clobbering rest of window_prompting.
701         * keyboard.c (Fcurrent_idle_time): Doc fix.
703         * print.c (Fwith_output_to_temp_buffer): Doc fix.
705 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
707         * process.c (unwind_request_sigio): Only define if __ultrix__.
709         * callproc.c (child_setup): Remove spurious *.
711         * lisp.h (Fget_text_property): Declare.
712         (have_menus_p): Declare it here rather than in sys-dep header files.
713         * macterm.h (have_menus_p):
714         * msdos.h (have_menus_p):
715         * xterm.h (have_menus_p): Remove.
717         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
718         (Fmake_variable_frame_local): Just check the variable's const-ness
719         rather than checking nil or t.
721 2007-10-22  Jason Rumney  <jasonr@gnu.org>
723         * w32fns.c: Include math.h.
724         (w32_abort): Declaration moved to nt/config.nt.
726         * s/ms-w32.h (HAVE_STDLIB_H): Define.
727         (abort): Redefinition moved to nt/config.nt.
729         * m/windowsnt.h: Remove.
731 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
733         * emacs.c (Fdump_emacs): Fix typo in message.
734         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
735         <installation-directory>: Reflow docstring.
737 2007-10-22  Juri Linkov  <juri@jurta.org>
739         * minibuf.c: Allow minibuffer default to be a list of default values.
740         With empty input use the first element of this list as returned default.
741         (string_to_object)
742         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
743         (read_minibuf): If defalt is cons, set histstring to its car.
744         (Fread_string): If default_value is cons, set val to its car.
745         (Fread_buffer): If def is cons, use its car.
746         (Fcompleting_read): If defalt is cons, set val to its car.
748 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
750         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
752 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
754         * doc.c (Fdocumentation): Check for advice in all cases.
756 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
758         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
760 2007-10-19  Richard Stallman  <rms@gnu.org>
762         * doc.c (Fdocumentation): Check for and handle an advised function.
764 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
766         * process.c (Fset_process_filter): Doc fix.
768 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
770         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
771         which caused key-translation-map to applied repeatedly (thus breaking
772         double-mode).
774 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
776         * xselect.c (x_own_selection, x_handle_selection_clear)
777         (x_clear_frame_selections):
778         * w32menu.c (list_of_panes, list_of_items):
779         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
780         * textprop.c (validate_plist, interval_has_all_properties)
781         (interval_has_some_properties, interval_has_some_properties_list)
782         (add_properties, text_property_list):
783         * process.c (Fget_buffer_process, list_processes_1, status_notify):
784         * minibuf.c (Fassoc_string):
785         * macselect.c (x_own_selection, x_clear_frame_selections)
786         (Fx_disown_selection_internal):
787         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
788         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
790 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
792         * process.c: Link to libs for calling res_init() if available.
793         (Fmake_network_process): Call res_init() before getaddrinfo or
794         gethostbyname, if possible.
796 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
798         * lread.c (read1): Set pvectype for char_tables.
800         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
801         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
802         Add type checks.
803         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
805         * alloc.c (free_misc): Use XMISCTYPE.
806         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
808 2007-10-17  Glenn Morris  <rgm@gnu.org>
810         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
811         (syms_of_minibuf): Add Qcompletion_ignore_case.
812         * dired.c (Qcompletion_ignore_case): Change to external.
813         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
814         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
815         (Fread_file_name): Use it rather than intern'ing.
817         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
818         (Fread_coding_system): Ignore case of user input.
820 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
822         * xdisp.c (handle_display_prop): Ignore display specs after
823         replacing one when string text is being replaced.
824         (handle_single_display_spec): Pretend as if characters with display
825         property haven't been consumed only when buffer text is being replaced.
827 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
829         * xfns.c (Fx_create_frame, Fx_display_list):
830         * window.c (window_fixed_size_p, enlarge_window)
831         (shrink_window_lowest_first):
832         * macterm.c (init_font_name_table):
833         * macfns.c (Fx_create_frame, Fx_display_list):
834         * lread.c (close_load_descs):
835         * keyboard.c (read_char_x_menu_prompt):
836         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
837         * coding.c (code_convert_region_unwind): Test the type of an object
838         rather than just !NILP before extracting data from it.
840         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
842         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
843         (XMISCANY): New macro.
844         (XMISCTYPE): Use it.
845         (struct Lisp_Misc_Any): New type.
846         (union Lisp_Misc): Use it.
847         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
848         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
849         (find_symbol_value, set_internal, default_value, Fset_default)
850         (Fmake_variable_buffer_local, Fmake_local_variable)
851         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
852         (Flocal_variable_if_set_p, Fvariable_binding_locus):
853         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
854         * alloc.c (allocate_buffer): Set the size and tag.
855         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
856         Use XMISCANY.
857         (die): Follow the GNU convention for error messages.
858         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
859         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
860         tag any more.
861         (set_buffer_internal_1):
862         * frame.c (store_frame_param):
863         * eval.c (specbind):
864         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
866         * doc.c (Fsnarf_documentation): Simplify.
868 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
870         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
871         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
873 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
875         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
877 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
879         * eval.c (do_autoload): Don't save autoloads.
881         * data.c (Ffset): Save autoload of the function being set.
883 2007-10-07  John Paul Wallington  <jpw@pobox.com>
885         * xfns.c (x_create_tip_frame): Set the `display-type' frame
886         parameter before setting up faces.
888 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
890         * ccl.c (Fregister_code_conversion_map):
891         * keyboard.c (append_tool_bar_item): Reformat last change.
893         * lisp.h (eabs): Rename from `abs'.  All callers changed.
895 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
897         * buffer.c (add_overlay_mod_hooklist):
898         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
899         * fontset.c (make_fontset):
900         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
901         (append_tool_bar_item):
902         * macmenu.c (grow_menu_items):
903         * w32menu.c (grow_menu_items):
904         * xmenu.c (grow_menu_items): Use larger_vector.
906 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
908         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
909         selected frame'' on MSDOS).
911 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
913         * frame.c (Qexplicit_name): New variable.
914         (x_report_frame_params): Report it in parameter alist.
915         (syms_of_frame): Intern and staticpro it.
917 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
919         * macfns.c (x_create_tip_frame): Set terminal for frame.
921 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
923         * frame.c (Qenvironment): Remove.
924         (syms_of_frame) <Qenvironment>: Don't initialize.
925         (Fdelete_frame): Don't treat the `environment' param specially.
926         * frame.h (Qenvironment): Don't declare.
927         * callproc.c (set_initial_environment): Don't set unused frame param.
929         * frame.c (Fframe_with_environment): Remove.
930         (syms_of_frame) <Sframe_with_environment>: Don't declare.
932         * lisp.h (Fframe_with_environment): Don't declare.
934 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
936         * indent.c (indent_tabs_mode, last_known_column)
937         (last_known_column_modified): Make static.
938         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
940 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
942         * puresize.h (BASE_PURESIZE): Increase to 1170000.
944 2007-10-09  Jason Rumney  <jasonr@gnu.org>
946         * w32term.c (x_set_window_size): Disable code that attempts to tell
947         Lisp code about a size change before it actually happens.
949 2007-10-09  Richard Stallman  <rms@gnu.org>
951         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
952         return HANDLED_RETURN.
954 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
956         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
957         when there's an unread command event.
959         * frame.c (focus_follows_mouse): Move here from frame.el to allow
960         window autoselection act appropriately when leaving selected frame.
961         (syms_of_frame): Initialize focus_follows_mouse.
962         * frame.h (focus_follows_mouse): Extern it.
963         * macterm.c (XTread_socket): When focus_follows_mouse is nil
964         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
965         * msdos.c (dos_rawgetc): Likewise.
966         * w32term.c (w32_read_socket): Likewise.
967         * xterm.c (handle_one_xevent): Likewise.
968         * xdisp.c (syms_of_xdisp): In doc-string of
969         mouse-autoselect-window mention focus-follows-mouse.
971 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
973         * macterm.c (mac_load_query_font): Fix missing return value.
974         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
975         Add BLOCK_INPUT.
977 2007-10-08  Richard Stallman  <rms@gnu.org>
979         * xdisp.c (get_window_cursor_type): Implement documented behavior
980         for cursor-in-non-selected-windows = t.
982 2007-10-08  Jason Rumney  <jasonr@gnu.org>
984         * w32.c (w32_get_resource): Always close registry keys.
986 2007-10-08  Jason Rumney  <jasonr@gnu.org>
988         * makefile.w32-in (LIBS): Add COMCTL32.
990         * w32fns.c (globals_of_w32fns): Init common controls.
992 2007-10-08  Richard Stallman  <rms@gnu.org>
994         * image.c (our_memory_buffer): Rename from omfib_buffer.
996 2007-10-08  Richard Stallman  <rms@gnu.org>
998         * buffer.c (Foverlays_at): Doc fix.
1000 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
1002         * fns.c (Fplist_put): Preserve uneven tail data.
1004 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
1006         * termhooks.h (enum event_kind): Remove trailing comma.
1008         * frame.h (enum): Remove trailing comma.
1010 2007-10-08  Dhuvra Krishnamurthy  <dhuvrakm@gmail.com>  (tiny change)
1012         * w32proc.c (delete_child): Don't terminate threads of zombies.
1014 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
1016         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
1018         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
1019         last-repeatable-command.
1020         (init_kboard): Initialize Vlast_repeatable_command.
1021         (command_loop_1): Set it to real_this_command unless that was
1022         bound to an input event.
1023         (mark_kboards): Mark it.
1025 2007-10-08  Richard Stallman  <rms@gnu.org>
1027         * eval.c (condition-case): Doc fix.
1029 2007-10-08  Masatake YAMATO  <jet@gyve.org>
1031         * xfaces.c (tty_supports_face_attributes_p): Fix code
1032         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
1033         was copied and not edited.
1035 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
1037         Add new `input-decode-map' keymap and use it for terminal
1038         escape sequences.
1039         * keyboard.h (struct kboard): Add Vinput_decode_map.
1040         Remove Vlocal_key_translation_map.
1041         * keyboard.c (read_key_sequence): Add support for input-decode-map.
1042         (init_kboard): Init input-decode-map.
1043         Replace local-key-translation-map back with key-translation-map.
1044         (syms_of_keyboard): Declare input-decode-map.
1045         Remove local-key-translation-map.  Update docstrings.
1046         (mark_kboards): Mark Vinput_decode_map.
1047         Don't mark Vlocal_key_translation_map.
1048         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
1049         Replace local-key-translation-map back with key-translation-map.
1050         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
1051         Bind in input-decode-map rather than function-key-map.
1053         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
1054         This was made redundant by the previous introduction of XSETPVECTYPE.
1056 2007-10-09  Richard Stallman  <rms@gnu.org>
1058         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
1060 2007-09-29  Richard Stallman  <rms@gnu.org>
1062         * eval.c (internal_condition_case_2, internal_condition_case_1)
1063         (internal_condition_case): Reenable abort if x_catching_errors ()
1064         to see if that really happens and why.
1066 2007-10-06  Andreas Schwab  <schwab@suse.de>
1068         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
1070 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
1072         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
1074 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
1076         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
1078 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
1080         * window.h (struct window):
1081         * window.c (struct save_window_data, struct saved_window):
1082         * termhooks.h (struct terminal):
1083         * process.h (struct Lisp_Process):
1084         * frame.h (struct frame):
1085         * buffer.h (struct buffer):
1086         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
1087         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
1088         The size field of (pseudo)vectors is now unsigned.
1089         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
1091         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
1092         Turn `count' into an integer.
1094         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
1095         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
1096         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
1097         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
1098         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
1100         * alloc.c (allocate_pseudovector): New fun.
1101         (ALLOCATE_PSEUDOVECTOR): New macro.
1102         (allocate_window, allocate_terminal, allocate_frame)
1103         (allocate_process): Use it.
1104         (mark_vectorlike): New function.
1105         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
1106         (mark_terminals): Use it.
1107         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
1108         (Fmake_byte_code): Use XSETPVECTYPE.
1110         * frame.c (Fframe_parameters): Minor simplification.
1112         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
1114         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
1116         * buffer.c (Fget_buffer_create, init_buffer_once):
1117         * lread.c (defsubr):
1118         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
1120         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
1121         defined differently in the m/*.h files.
1122         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
1123         (XSETPVECTYPE): New macro.
1124         (XSETPSEUDOVECTOR): Use it.
1126         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
1127         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
1129         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
1130         * lread.c (defvar_per_buffer):
1131         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
1133         * window.c (candidate_window_p): Only consider as visible frames that
1134         are on the same terminal.
1136         * m/ibms390x.h (MARKBIT): Remove unused macro.
1138 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
1140         * lread.c (Fload): Fix typo in docstring.
1142 2007-10-01  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
1144         * floatfns.c (Fexpt): Manually check for overflows, so that a power
1145         of a non-zero value can't yield zero.
1147 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1149         * term.c (term_clear_mouse_face, term_mouse_highlight)
1150         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
1152         * print.c (safe_debug_print): Use XHASH.
1154         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
1155         Lisp elements such as tags.
1156         (XHASH): New macro.
1157         (EQ): Use it.
1158         (SREF, SSET, STRING_COPYIN): Use SDATA.
1159         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
1161         * alloc.c (mark_terminal): Remove left-over declaration.
1162         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
1163         (allocate_vectorlike): Remove type argument.  Adjust callers.
1164         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
1165         Only handle the one remaining MEM_TYPE_VECTORLIKE.
1167         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
1168         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
1169         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
1170         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
1171         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
1172         Use them.
1174         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
1175         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
1176         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
1178 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
1180         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
1181         loaded by default.
1183 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
1185         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
1186         on this tty.
1187         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
1189         * term.c (mouse_face_window): Rename from Qmouse_face_window.
1190         Update all users.
1191         (handle_one_term_event): Use Gpm_DrawPointer.
1192         (Fgpm_mouse_start): Rename from Fterm_open_connection.
1193         Signal errors instead of returning nil.  Always return nil.
1194         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
1195         Make it a noop if gpm-mouse was not activated.
1196         (syms_of_term): Update names.
1198 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
1200         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
1201         (init_sys_modes): Check that gpm_tty is the current tty.
1203         * alloc.c (allocate_terminal): Set the vector size to only count the
1204         lisp fields.  Initialize those to nil.
1205         (mark_object): Don't treat terminals specially.
1206         (mark_terminal): Remove.
1207         (mark_terminals): Use mark_object instead.
1209         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
1210         the GC to the beginning.
1212         * indent.h:
1213         * indent.c: Use EMACS_INT for ints coming from Elisp data.
1215         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
1217 2007-09-25  Jason Rumney  <jasonr@gnu.org>
1219         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
1221         * w32console.c (create_w32cons_output): Remove.
1223         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
1225         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
1226         (reset_sys_modes): Use reset_terminal_modes_hook.
1228 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
1230         * eval.c (do_autoload): Don't output any message.
1232 2007-09-24  Juri Linkov  <juri@jurta.org>
1234         * emacs.c (standard_args): Change priority of "--no-splash"
1235         from 40 to 3.  Add "--no-desktop" with the same priority.
1237 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
1239         * alloc.c (gc_sweep): Check cons cell mark bits word by word
1240         and optimize the case where they are all 1.
1242 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
1244         * lisp.h (abs): Define if not defined.
1245         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
1246         Don't define `abs', since it's defined in lisp.h.
1248 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
1250         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
1251         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
1252         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
1253         (init_tty): Use DEV_TTY instead of "/dev/tty".
1254         [WINDOWSNT]: No need to protect from NAME arg being null.
1256 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
1258         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
1259         up the tty state.
1261 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1263         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
1264         (gpm_tty): Change its type.
1265         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
1266         (gpm_tty): Change its type and initialize it.
1267         (Fterm_open_connection): Check the frame is indeed a tty.
1268         Use the new gpm_tty.
1269         (Fterm_close_connection): Use the new gpm_tty.
1270         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
1271         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
1273 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
1275         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
1276         underline_color, to draw strike-through.
1278 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1280         * lisp.h (allocate_terminal): Declare.
1282         * window.c (candidate_window_p): Consider frames that are being placed
1283         by the user as somewhere between visible and iconified.
1284         (window_loop): Prefer windows on the current frame.
1285         (Fselect_window): Move the use of select-frame to the beginning so we
1286         can just delegate all the work (it'll call us back anyway).
1288         * frame.c (Qdisplay_environment_variable):
1289         * frame.h (Qdisplay_environment_variable): Delete.
1291         * .gdbinit (xbacktrace): Print the arg's address rather than the value
1292         of the first arg, since that value may be a union.
1294         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
1295         parameter rather than Qdisplay_environment_variable.  If all else
1296         fails, look for DISPLAY in initial-environment.
1298 2007-09-21  Glenn Morris  <rgm@gnu.org>
1300         * Makefile.in (emacstool): Remove target.
1301         (lisp, shortlisp): Remove termdev.elc.
1303 2007-09-21  Markus Triska  <markus.triska@gmx.at>
1305         * xterm.c (x_delete_display): Compile session management conditionally.
1307 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
1309         * callproc.c (getenv_internal_1): New function.
1310         (getenv_internal): Use it.
1311         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
1313         * terminal.c (get_terminal): Don't accept ints to represent terminals.
1314         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
1315         (Fset_terminal_parameter): Work with dead terminals as well.
1316         (Fmodify_terminal_parameters): Remove.
1318         * terminal.c (get_terminal): Handle terminals.
1319         Make sure the terminal returned is live.
1320         (create_terminal): Use allocate_terminal.
1321         (mark_terminals): Move to alloc.c.
1322         (delete_terminal): Use terminal->name as liveness status.
1323         NULL out fields after freeing their contents.
1324         Don't deallocate the object.
1325         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
1326         rather than an int.
1327         (Fterminal_live_p): Accept non-integer arguments.
1328         (Fterminal_list): Return terminal objects rather than an ints.
1330         * alloc.c (enum mem_type): New member for `terminal' objects.
1331         (allocate_terminal): New function.
1332         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
1333         Handle terminals.
1334         (mark_terminal): New fun.
1335         (mark_terminals): Move from terminal.c.
1337         * term.c (get_tty_terminal): Don't treat output_initial specially.
1338         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
1339         (delete_tty): Use terminal->name as liveness status.
1341         * termhooks.h (struct terminal): Make it into a pseudovector.
1342         Remove `deleted' replaced by checking `name's nullness.
1344         * print.c (print_object): Handle terminals.
1346         * lisp.h (enum pvec_type): New `terminal' pseudovector.
1347         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
1349         * frame.c (make_terminal_frame):
1350         * keyboard.c (tty_read_avail_input):
1351         * w32term.c (x_delete_terminal):
1352         * xfns.c (Fx_create_frame, x_create_tip_frame):
1353         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
1355 2007-09-20  Glenn Morris  <rgm@gnu.org>
1357         * process.c (Fmake_network_process): Doc fix.
1359 2007-09-19  Jason Rumney  <jasonr@gnu.org>
1361         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
1363 2007-09-19  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
1365         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
1366         Fix a C warning regarding variable constness.
1368         * xterm.c (handle_one_xevent): Fix a C warning.
1370 2007-09-18  Jason Rumney  <jasonr@gnu.org>
1372         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
1374 2007-09-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1376         * gtkutil.c (gdpy_def): New variable.
1377         (xg_initialize): Initialize gdpy_def.
1378         (xg_display_close): If no other display exists, set gdpy_def to a
1379         new connection.
1381 2007-09-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1383         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1384         when we have no file name for the icon.
1385         (xg_tool_bar_expose_callback): Remove.
1386         (xg_create_tool_bar): Don't connect expose signal to
1387         xg_tool_bar_expose_callback.
1388         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1390 2007-09-16  Andreas Schwab  <schwab@suse.de>
1392         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1393         values instead of zapping them.
1395 2007-09-14  Glenn Morris  <rgm@gnu.org>
1397         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
1398         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1399         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1400         scope and rename to omfib_buffer for clarity.
1401         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1403 2007-09-14  Kenichi Handa  <handa@m17n.org>
1405         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
1407 2007-09-13  Jason Rumney  <jasonr@gnu.org>
1409         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
1411         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
1413         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
1414         (mac_term_init): Call here instead, passing rif.
1416 2007-09-13  Glenn Morris  <rgm@gnu.org>
1418         * s/hpux.h: No longer define `static' as nothing.
1420 2007-09-13  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
1422         * callint.c (Fcall_interactively): Remove unused var `fun'.
1424 2007-09-12  Romain Francoise  <romain@orebokech.com>
1426         * window.c (prefer_window_split_horizontally, display_buffer):
1427         Revert 2007-09-08 change.
1429 2007-09-12  Glenn Morris  <rgm@gnu.org>
1431         * alloca.c: Remove file.
1432         * Makefile.in (alloca): Do not undef.
1433         (allocaobj, alloca.o): Remove.
1434         (otherobj): Remove allocaobj.
1435         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
1436         * regex.c (C_ALLOCA): Remove all references and code that was only
1437         used when this was defined.
1438         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
1439         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
1440         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
1442         * Makefile.in (SOURCES, unlock, relock): Delete.
1444         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1445         (menu_grab_callback): All uses changed.
1447         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1448         (x_reply_selection_request): All uses changed.
1450 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1452         * lread.c (load_warn_old_style_backquotes): Change message to look
1453         better when it appears in the middle of byte-compiler messages.
1455 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
1457         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
1459         * xterm.c (x_create_terminal): Add comment.
1461         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
1463 2007-09-10  Richard Stallman  <rms@gnu.org>
1465         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
1467 2007-09-10  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
1469         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
1470         (DEFUN): Document `intspec', use it instead of `prompt'.
1472         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
1474         * data.c (Finteractive_form): If the interactive specification starts
1475         with a `(', use it as a Lisp form.
1477         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
1478         name and file modes.
1480         * callint.c (Fcall_interactively): Comment fixes.
1482 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1484         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
1485         and compiled functions.
1487 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
1489         * window.c (prefer_window_split_horizontally): New variable.
1490         (display_buffer): Consider splitting window horizontally depending
1491         on prefer_window_split_horizontally.
1493 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
1495         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
1497 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
1499         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
1501         * frame.c (x_set_frame_parameters): Check number is positive before
1502         using XFASTINT.
1504         * window.c (freeze_window_start): Don't presume selected_window holds
1505         a window object.
1506         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
1508 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
1510         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
1512 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
1514         * window.c (Vsplit_window_preferred_function): New var.
1515         (Fdisplay_buffer): Use it.
1516         (syms_of_window): Export, and initialize it.
1518 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
1520         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1522 2007-09-06  Glenn Morris  <rgm@gnu.org>
1524         * gtkutil.c (menu_grab_callback) <cnt>:
1525         * xselect.c (x_reply_selection_request) <cnt>: Move static
1526         variable to file scope.
1528 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
1530         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
1531         consistent values of selected_frame and selected_window.
1533 2007-09-04  Jason Rumney  <jasonr@gnu.org>
1535         * w32console.c (initialize_w32_display): Zero unused hooks.
1537 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
1539         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
1540         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
1542 2007-09-04  Jason Rumney  <jasonr@gnu.org>
1544         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
1545         in w32console.c.  Set up input.  Remove XXX comments that have been
1546         confirmed as correct.
1548         * s/ms-w32.h (MULTI_KBOARD): Define.
1550         * w32console.c (one_and_only_w32cons): Remove.
1551         (initialize_w32_display): Take terminal argument.
1553         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
1554         initialize_w32_display.
1555         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
1557         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
1559         * keyboard.c (discard_mouse_events): Discard it.
1560         (make_lispy_event): Translate it to a lisp event.
1561         (lispy_wheel_names): Add wheel-left and right events.
1562         (syms_of_keyboard): Enlarge wheel_syms.
1564         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
1565         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
1567         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
1569         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
1570         from WM_MOUSEHWHEEL.
1571         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
1573         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
1574         terminal.
1576         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
1577         keyboard for the terminal.
1579 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
1581         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
1582         (Vresume_tty_hook): Rename from Vresume_tty_functions.
1583         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
1584         and resume-tty-function to resume-tty-hook.
1585         (Fsuspend_tty, Fresume_tty): Use new names.
1587 2007-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1589         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
1590         if it starts with "n:".
1592 2007-08-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1594         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
1596 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
1598         * frame.h:
1599         * frame.c (Qterm_environment_variable): Remove.
1600         (syms_of_frame): Don't init and staticpro it.
1602         * callproc.c (getenv_internal): Remove special case for $TERM.
1604         * callproc.c (Vinitial_environment): New variable.
1605         (set_initial_environment): Initialize it.
1606         (syms_of_callproc): Declare it.
1607         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
1608         TERM under which a process runs is never related to the TERM in which
1609         Emacs is running.
1611 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
1613         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
1614         * s/darwin.h: ... do it here.
1616 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1618         * lisp.h (set_initial_environment): Rename from set_global_environment.
1620         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
1621         removed by mistake on the multi-tty branch.
1623         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
1624         (Fmodify_frame_parameters): Return a value.
1626         * image.c (png_load): Comment-out var only used in commented-out code.
1628         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
1629         before passing it to mark_object.
1631         * xfaces.c (internal_resolve_face_name): Return a value.
1632         (internal_resolve_face_name, resolve_face_name_error): Comment out.
1634         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
1635         (x_icon): Comment-out var only used in commented-out code.
1637 2007-08-29  Romain Francoise  <romain@orebokech.com>
1639         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
1640         QUIT hasn't been provided.
1642 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
1644         * callproc.c (child_setup, getenv_internal): Use the
1645         display-environment-variable and term-environment-variable frame
1646         params.
1647         (set_initial_environment): Initialise Vprocess_environment.
1649         * config.in: Disable multi-keyboard support on a mac.
1651         * frame.c (Qterm_environment_variable)
1652         (Qdisplay_environment_variable): New variables.
1653         (syms_of_frame): Intern and staticpro them.
1654         (Fmake_terminal_frame): Disable output method test.
1656         * frame.h: Declare them here.
1658         * macfns.c (x_set_mouse_color): Get rif from the frame.
1659         (x_set_tool_bar_lines): Don't use updating_frame.
1660         (mac_window): Add 2 new parameters for consistency with other systems.
1661         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
1662         frame parameters following what is done in X11 and w32.  Don't use
1663         FRAME_MAC_DISPLAY_INFO.
1664         (Fx_open_connection, start_hourglass): Remove window-system check.
1665         (x_create_tip_frame): Get the keyboard from the terminal.
1667         * macmenu.c: Reorder includes.
1668         (Fx_popup_menu): Use terminal specific mouse_position_hook.
1670         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
1671         terminal parameter.
1672         (x_clear_frame): Add a frame parameter.
1673         (note_mouse_movement): Get rif from the frame.
1674         (mac_term_init): Initialize the terminal.
1675         (mac_initialize): Make static and move terminal initialization ...
1676         (mac_create_terminal): ... to this new function.
1678         * macterm.h (struct mac_display_info): Add terminal.
1679         (mac_initialize): Delete declaration.
1681         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
1683         * sysdep.c: Comment out text after #endif.
1685         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
1686         is defined.  Better initialize ttys in windows.  Use terminal
1687         specific mouse_position_hook.
1689         * termhooks.h (union display_info): Add mac_display_info.
1691         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
1692         Set the default minibuffer frame, window_system and the rest of the
1693         frame parameters following what is done in X11.
1695         * w32term.c (w32_initialize): Make static.
1697         * xselect.c (x_handle_selection_clear): Only access
1698         terminal->kboard when MULTI_KBOARD is defined.
1700         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
1701         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
1703 2007-08-29  Jason Rumney  <jasonr@gnu.org>
1705         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
1706         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
1708         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
1709         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
1711         * keyboard.c (restore_kboard_configuration): Only define when
1712         MULTI_KBOARD defined.
1714         * makefile.w32-in: Update dependancies from Makefile.in.
1715         (OBJ1): Add terminal.$(O)
1717         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
1718         Don't define function body.
1719         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
1721         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
1723         * w32.c (request_sigio, unrequest_sigio): Remove.
1725         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
1726         (w32con_clear_frame, w32con_clear_end_of_line)
1727         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
1728         (w32con_delete_glyphs, w32con_set_terminal_window)
1729         (scroll_line, w32_sys_ring_bell): Add frame arg.
1730         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
1731         Add terminal arg.
1732         (PICK_FRAME): Remove.
1733         (w32con_write_glyphs): Use frame specific terminal coding.
1734         (one_and_only_w32cons): New global variable.
1735         (initialize_w32_display): Use it for storing hooks.
1736         (create_w32cons_output): New function.
1738         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
1739         arg a frame.
1741         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
1742         Set window_system.
1743         (x_set_tool_bar_lines): Don't use updating_frame.
1744         (Fx_create_frame): Set terminal and ref count.
1745         (Fx_open_connection): Remove window-system check.
1747         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
1749         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
1750         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
1751         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
1752         Add frame arg.
1753         (x_delete_terminal, w32_create_terminal): New functions.
1754         (w32_term_init): Create a terminal.
1755         (w32_initialize): Move terminal specific initialization to
1756         w32_create_terminal.
1758         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
1759         (w32_clear_rect, w32_clear_area): Use background from frame.
1760         (w32_display_info): Add terminal.
1761         (w32_sys_ring_bell, x_delete_display): Declare here.
1763         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
1765         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
1767 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
1769         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
1770         Fix get_named_tty calls for the controlling tty.
1772 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
1774         * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
1776 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
1778         * term.c (tty_insert_glyphs): Add missing first parameter.
1780 2007-08-29  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <karoly@lorentey.hu>
1782         * buffer.c (Fbuffer_list, Fbury_buffer):
1783         Take frame->buried_buffer_list into account.
1785         * cm.c (current_tty): New variable, for cmputc().
1786         (cmputc): Use it.
1787         (cmcheckmagic): Add tty parameter, look up terminal streams there.
1788         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
1789         (cmgoto): Add tty parameter.  Pass it on to calccost().
1790         Use emacs_tputs() instead of tputs().
1792         * cm.h (emacs_tputs): New macro to set current_tty, and then call
1793         tputs().
1794         (current_tty): New variable, for cmputc().
1795         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
1797         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
1798         (internal_condition_case, internal_condition_case_1)
1799         (internal_condition_case_2): Don't abort when x_catching_errors.
1801         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
1802         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
1803         prevent crashes caused by bogus longjmps in read_char.
1805         * keymap.h (Fset_keymap_parent): Add EXFUN.
1807         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1808         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1809         Remove redundant definition.
1811         * macfns.c (x_set_mouse_color, x_make_gc):
1812         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1814         * w32term.c (x_free_frame_resources):
1815         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1816         (w32_initialize): Use the accessor macros for terminal characteristics.
1818         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
1819         Use the accessor macros for terminal characteristics.
1820         * msdos.c (internal_terminal_init): Use the accessor macros for
1821         terminal characteristics.
1822         (ScreenVisualBell, internal_terminal_init):
1823         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1825         * termopts.h (no_redraw_on_reenter): Declare.
1827         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
1828         (mark_terminals, mark_ttys): Declare.
1829         (Fgarbage_collect): Call them.
1830         (mark_object): Mark buried_buffer_list.
1832         * prefix-args.c: Include stdlib.h for exit.
1834         * syssignal.h: Add comment.
1836         * indent.c: Include stdio.h.
1838         * window.h (Vinitial_window_system): Declare.
1839         (Vwindow_system): Delete declaration.
1841         * fontset.c (Finternal_char_font): Use FRAME_RIF.
1843         * image.c (lookup_image): Don't initialize `c' until the xasserts
1844         have been run.
1846         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
1847         FRAME_FOREGROUND_PIXEL.
1849         * print.c (print_preprocess): Don't lose print_depth levels while
1850         iterating.
1852         * widget.c (update_from_various_frame_slots):
1853         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1855         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
1856         frames.
1857         (window_internal_height): Remove bogus make_number call.
1858         (init_window_once): Call make_terminal_frame with two zero parameters.
1860         * fileio.c (Fread_file_name): Update comment.
1862         * callint.c (Fcall_interactively):
1863         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
1864         Make sure it is correctly unwound.
1866         * xsmfns.c (x_session_close): New function.
1868         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
1869         Delete declarations.
1871         * xterm.h: Remove declaration for x_fully_uncatch_errors.
1872         (x_output): Remove background_pixel and foreground_pixel fields.
1873         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
1874         (x_delete_device):
1875         (x_session_close): Declare.
1877         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
1878         (read_filtered_event): Call `read_char' with a local
1879         `wrong_kboard_jmpbuf'.
1881         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
1882         Don't call single_kboard_state.  Use FRAME_RIF.
1884         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
1885         systems.
1887         * lisp.h (set_process_environment): Rename to `set_global_environment'.
1888         (Fframe_with_environment, Fset_input_meta_mode)
1889         (Fset_quit_char): EXFUN.
1890         (x_create_device, tty_output, terminal, tty_display_info): Declare.
1891         (init_sys_modes, reset_sys_modes): Update prototypes.
1892         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
1894         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
1895         Vlocal_key_translation_map, and Vkeyboard_translate_table.
1896         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
1897         Delete declarations.
1898         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
1899         (temporarily_switch_to_single_kboard, tty_read_avail_input):
1900         New declarations.
1902         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
1903         already does that during init_display().  Call syms_of_keymap
1904         before syms_of_keyboard.  Call `syms_of_terminal'.
1905         Call set_initial_environment, not set_process_environment.
1906         (shut_down_emacs): Call reset_all_sys_modes() instead of
1907         reset_sys_modes().
1909         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
1910         (internal_resolve_face_name, resolve_face_name_error): New functions.
1911         (resolve_face_name): Protect against loops and errors thrown by Fget.
1912         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
1913         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
1915         * scroll.c: Replace CURTTY() with local variables throughout the
1916         file (where applicable).
1917         (calculate_scrolling, calculate_direct_scrolling)
1918         (scrolling_1, scroll_cost): Use the accessor macros for terminal
1919         characteristics.
1921         * keymap.c (Vfunction_key_map): Remove.
1922         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
1923         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
1924         (Vkey_translation_map): Remove.
1925         (syms_of_keymap): Remove DEFVAR for key-translation-map.
1926         (Fdescribe_buffer_bindings):
1927         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
1928         Update for terminal-local key-translation-map.
1930         * Makefile.in (callproc.o): Update dependencies.
1931         (lisp, shortlisp): Add termdev.elc.
1932         (obj): Add terminal.o.
1933         (terminal.o): Add dependencies.
1934         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
1935         (data.o, fns.o): Add termhooks.h dependency.
1936         (SOME_MACHINE_LISP): Add dnd.elc.
1937         (minibuf.o): Fix typo.
1938         Update dependencies.
1940         * data.c (do_symval_forwarding, store_symval_forwarding)
1941         (find_symbol_value): Use the selected frame's keyboard, not
1942         current_kboard.
1944         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
1945         Vwindow_system.
1947         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
1948         Fmenu_bar_open.
1949         (syms_of_xmenu): Update defsubr.
1950         (mouse_position_for_popup, Fx_popup_menu)
1951         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
1952         (set_frame_menubar, free_frame_menubar)
1953         (create_and_show_popup_menu, xmenu_show, )
1954         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
1955         an X frame.
1957         * xselect.c (x_own_selection): Abort if not an X frame.
1958         (some_frame_on_display): Check if it is an X frame.
1959         (x_handle_selection_clear): Deal with MULTI_KBOARD.
1961         * coding.c: Include frame.h and termhooks.h.
1962         (terminal_coding, keyboard_coding): Delete.
1963         (Fset_terminal_coding_system_internal):
1964         (Fset_keyboard_coding_system_internal):
1965         (Fkeyboard_coding_system):
1966         (Fterminal_coding_system): Add a terminal parameter.
1967         Get terminal_coding from the terminal.
1968         (init_coding_once): Don't call setup_coding_system here.
1970         * dispextern.h (set_scroll_region, turn_off_insert)
1971         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
1972         (tty_clear_end_of_line, tty_setup_colors)
1973         (delete_tty, updating_frame)
1974         (produce_special_glyphs, produce_glyphs, write_glyphs)
1975         (insert_glyphs): Remove.
1976         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
1977         (tty_turn_off_highlight, get_tty_size): Add declaration.
1978         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
1980         * frame.h (enum output_method): Add output_initial.
1981         (struct x_output): Delete.
1982         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1983         Access foreground_pixel and background_pixel directly from the frame.
1984         (tty_display): Delete.
1985         (struct frame): Add buried_buffer_list, foreground_pixel,
1986         background_pixel and terminal.  Delete kboard
1987         (union output_data): Add tty.
1988         (FRAME_KBOARD): Get the kboard from the terminal.
1989         (FRAME_INITIAL_P): New macro.
1990         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
1991         (Qterm_environment_variable, Qdisplay_environment_variable)
1992         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
1993         New declarations.
1995         * termchar.h (tty_output, tty_display_info): New structures.
1996         (tty_list): Declare.
1997         (FRAME_TTY, CURTTY): New macros.
1998         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
1999         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
2000         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
2001         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
2003         * callproc.c: Include frame.h and termhooks.h, for terminal
2004         parameters.
2005         (add_env): New function.
2006         (child_setup): Use it.
2007         (child_setup, getenv_internal): Handle the new Vprocess_environment.
2008         (getenv_internal): Fix get_terminal_param call.
2009         (Fgetenv_internal, egetenv): Update doc.
2010         (syms_of_callproc): Initialize Vprocess_environment to nil.
2011         Register and initialize them.  Remove obsolete defvars.  Update doc
2012         strings.
2013         (child_setup): Handle Vlocal_environment_variables.
2014         (getenv_internal): Add terminal parameter.
2015         Handle Vlocal_environment_variables.
2016         (Fgetenv_internal): Add terminal parameter.
2017         (child_setup, getenv_internal, Fgetenv_internal): Store the local
2018         environment in a frame (not terminal) parameter.  Update doc strings.
2019         (set_initial_environment): Rename from set_global_environment.
2020         Store Emacs environment in initial frame parameter.
2022         * xdisp.c (redisplay_internal): Update references to
2023         `previous_terminal_frame'.
2024         (display_mode_line, Fformat_mode_line): Replace calls to
2025         `push_frame_kboard' with `push_kboard'.
2026         (get_glyph_string_clip_rects): Add extra parentheses and
2027         braces to prevent compiler warnings.
2028         (calc_pixel_width_or_height): Add xassert to check that the
2029         frame is alive.  Don't call `lookup_image' on a termcap frame.
2030         (message2_nolog, message3_nolog, redisplay_internal)
2031         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
2032         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
2033         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
2034         (Fx_display_pixel_width, Fx_display_pixel_height)
2035         (Fx_display_planes, Fx_display_color_cells)
2036         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
2037         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
2038         (Fx_display_backing_store, Fx_display_visual_class)
2039         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
2040         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
2042         * xfns.c (x_set_foreground_color x_set_background_color)
2043         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
2044         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
2045         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
2046         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
2047         terminal that is being deleted.
2048         (Fx_create_frame): Use `store_frame_param' to set `window-system'
2049         frame parameter, and make sure it overrides any user-supplied setting.
2050         (Fx_close_connection, Fx_synchronize): Unify argument names with
2051         the rest of the DEFUNs.
2053         * dispnew.c (Fsend_string_to_terminal): Update call to
2054         `get_tty_terminal'.
2055         (Fredraw_frame, Fsend_string_to_terminal)
2056         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
2057         FRAME_TERMCAP_P and FRAME_TTY.
2058         (window_change_signal): Don't believe width/height values that are
2059         impossibly small.
2060         (Vinitial_window_system): Rename from Vwindow_system.
2061         (termscript, Wcm, rif): Delete.
2063         * termhooks.h (struct terminal): New struct containing the
2064         previously global text display hooks and new members NAME,
2065         DELETED and PARAM_ALIST.
2066         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
2067         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
2068         (FRAME_RIF): New macros.
2069         (get_terminal_param, get_device): New declarations.
2070         (termscript): Delete declaration.
2072         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
2073         (XTflash, x_free_frame_resources, x_scroll_bar_create)
2074         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
2075         FRAME_FOREGROUND_PIXEL.
2076         (x_fully_uncatch_errors): Disable definition.
2077         (x_scroll_bar_expose): Fix reference to foreground pixel.
2078         (XTread_socket): Disable loop on all X displays.
2079         (x_delete_terminal): Don't set terminal->deleted and let
2080         delete_terminal delete the frames on the terminal.
2081         (x_delete_display): Doc update to reflect changes in
2082         delete_terminal.
2083         (x_display_info) <terminal>: Move member earlier in the struct.
2084         (deleting_tty): Remove old variable.
2085         (Fsuspend_tty): Call clear_tty_hooks.
2086         (Fresume_tty, init_tty): Call set_tty_hooks.
2087         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
2088         errors on X frames.
2089         (x_catch_errors_unwind): Abort if x_error_message is NULL.
2090         (handle_one_xevent): Initialize `f' to NULL.
2091         (x_delete_terminal, x_create_terminal): New functions.
2092         (XTset_terminal_modes, XTreset_terminal_modes)
2093         (XTread_socket, x_connection_closed, x_term_init)
2094         (x_term_init, x_delete_display): Add terminal parameter.
2095         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
2096         X connections.
2098         * frame.c (Fframep): Deal with output_initial.
2099         (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
2100         (Qtty_type, Qwindow_system, Qenvironment)
2101         (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
2102         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
2103         (make_terminal_frame): Don't create frames on a terminal that is
2104         being deleted.
2105         (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
2106         FRAME_FOREGROUND_PIXEL.
2107         (store_frame_param): Check for found_for_frame before calling XFRAME.
2108         (Fmake_terminal_frame): Handle NULL tty names correctly.
2109         (syms_of_frame): Enhance doc string of `default-frame-alist'.
2110         (Fdelete_frame): Remove unused variable `count'.
2111         (Qenvironment): New variable.
2112         (Fdelete_frame): Don't allow other frames to refer to a deleted
2113         frame in their 'environment parameter.
2114         (Fframe_with_environment): New function.
2115         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
2116         (get_future_frame_param): New function.
2117         (Fmake_terminal_frame): Use it.
2118         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
2120         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
2121         * sysdep.c (reset_sys_modes): Update for renames.
2123         * keyboard.c (tty_read_avail_input): New function.
2124         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
2125         (syms_of_keyboard): Defsubr them.
2126         (Fset_input_meta_mode, Fset_quit_char): New functions.
2127         (Fset_input_mode): Split to above functions.
2129         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
2130         parameter.  Use it in call to `read_char'.
2131         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
2132         Set wrong_kboard_jmpbuf correctly in recursive calls.
2133         Use current_kboard to access Vkeyboard_translate_table.
2134         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
2135         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
2136         Update longjmp invocations.  Remember the original current_kboard,
2137         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
2138         changes it.  Comment out unnecessary calls to
2139         `record_single_kboard_state' and `any_kboard_state'.
2140         Update recursive calls.
2141         (wrong_kboard_jmpbuf): Remove global variable.
2142         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
2143         Handle deleted interrupted_kboards correctly; that is a legal
2144         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
2145         and read_char calls.  Abort if interrupted_kboard died in read_char.
2146         (any_kboard_state, single_kboard_state)
2147         (push_frame_kboard): Remove function.
2148         (pop_kboard): Switch out of single_kboard mode if the kboard has
2149         been deleted.  Remove unused variable.  Help debugging by not
2150         changing current_kboard unnecessarily.  Set current_kboard to the
2151         kboard of the selected frame when the stored kboard object has
2152         been deleted before pop_kboard.
2153         (temporarily_switch_to_single_kboard): Change first parameter to a
2154         frame pointer.  Throw an error when caller wants to change kboards
2155         while in single_kboard mode.  Don't push_kboard if we weren't in
2156         single kboard state.  Don't pop_kboard if we popped into any
2157         kboard state.
2158         (restore_kboard_configuration): Abort if pop_kboard changed the
2159         kboard in single_kboard mode.  Call pop_kboard only after setting
2160         up single_kboard mode.
2161         (Frecursive_edit): Switch to single_kboard mode only in nested
2162         command loops.
2163         (cmd_error, command_loop, command_loop_1, timer_check):
2164         Comment out unnecessary call to `any_kboard_state' and
2165         `record_single_kboard_state'.
2166         (delete_kboard): Exit single_kboard mode if we have just deleted
2167         that kboard.  Use FRAME_KBOARD.
2168         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
2169         `fatal_error_signal'.
2170         (record_single_kboard_state): Don't push_kboard if we weren't in
2171         single kboard state.  Don't pop_kboard if we popped into any
2172         kboard state.
2173         (push_frame_kboard): Rename to push_kboard.
2174         (kbd_buffer_get_event): Use FRAME_TERMINAL.
2175         (read_avail_input): Read input from all terminals.
2176         (mark_kboards): Also mark Vkeyboard_translate_table.
2177         (kbd_buffer_store_event_hold): Simplify condition.
2178         (read_key_sequence): Reinitialize fkey and keytran at each replay.
2179         (Vkeyboard_translate_table): Move to struct kboard.
2180         (init_kboard): Initialize Vkeyboard_translate_table.
2181         (syms_of_keyboard): Use DEFVAR_KBOARD to define
2182         Vkeyboard_translate_table.  Update doc strings.  Update docs of
2183         local-function-key-map and function-key-map.
2185         * terminal.c: New file.
2187         * term.c: Include errno.h.
2188         (Vring_bell_function, device_list, initial_device)
2189         (next_device_id, ring_bell, update_begin, update_end)
2190         (set_terminal_window, cursor_to, raw_cursor_to)
2191         (clear_to_end, clear_frame, clear_end_of_line)
2192         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
2193         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
2194         (syms_of_term): Move their initialization to terminal.c.
2195         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
2196         (Ftty_display_color_cells)
2197         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
2198         (clear_tty_hooks, set_tty_hooks)
2199         (init_tty, maybe_fatal): New functions.
2200         (Ftty_type): Return nil if terminal is not on a tty instead of
2201         throwing an error.  Doc update.
2202         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
2203         Doc update.  Initialize new subrs and variables.
2204         (delete_tty): Use terminal->deleted.
2205         (tty_set_terminal_modes): Rename from set_terminal_modes.
2206         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
2207         (set_scroll_region): Rename to `tty_set_scroll_region'.
2208         (turn_on_insert): Rename to `tty_turn_on_insert'.
2209         (turn_off_insert): Rename to `tty_turn_off_insert'.
2210         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
2211         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
2212         (toggle_highligh): Rename to `tty_toggle_highlight'.
2213         (background_highlight): Rename to `tty_background_highlight'.
2214         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
2215         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
2216         (tty_set_scroll_region, tty_background_highlight)
2217         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
2218         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
2219         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
2220         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
2221         Add static modifier.
2222         (tty_reset_terminal_modes, tty_set_terminal_window)
2223         (tty_set_scroll_region, tty_background_highlight)
2224         (tty_highlight_if_desired, tty_cursor_to)
2225         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
2226         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
2227         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
2228         renames.
2230 2007-08-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2232         * keyboard.c: Qrtl is new.
2233         (parse_tool_bar_item): Handle :rtl keyword.
2234         (syms_of_keyboard): Intern :rtl keyword.
2236         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
2238         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
2239         so no Lisp code is executed.
2240         (file_for_image, find_rtl_image): New functions.
2241         (xg_get_image_for_pixmap): Use file_for_image
2242         (update_frame_tool_bar): If direction is RTL, use RTL image if
2243         defined.  Use Gtk stock images if defined.
2245 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2247         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
2248         for nonexistent or zero-width glyph in composition glyph.
2250 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
2252         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
2254         * xdisp.c (Finvisible_p): New function.
2255         (syms_of_xdisp): defsubr it.
2257 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
2259         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
2260         Doc fixes.
2262 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2264         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
2266 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
2268         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
2269         whether decoding has modified buffer contents.
2271 2007-08-24  Jason Rumney  <jasonr@gnu.org>
2273         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
2274         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
2275         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
2276         (init_svg_functions) [HAVE_NTGUI]: New function.
2277         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
2278         (svg_load_image): Use them.
2279         (svg_load_image) [HAVE_NTGUI]: Implement background.
2281 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2283         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
2284         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
2285         (LIBX): Remove @RSVG_LIBS@.
2286         (LIBES): Add $(RSVG_LIBS).
2288         * image.c (svg_load_image): Blend with specified background if exists.
2289         Use IMAGE_BACKGROUND.  Add Mac OS Support.
2291         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
2292         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
2293         Remove macros.
2294         [MAC_OSX] (socket_callback): Do nothing.
2295         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
2296         ReceiveNextEvent.
2297         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
2298         socket_callback.
2299         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
2301 2007-08-22  Glenn Morris  <rgm@gnu.org>
2303         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2305 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
2307         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
2309         * image.c: Add support for SVG images.  Some additional comments
2310         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
2311         (svg_image_p): New function to test for SVG image.
2312         (svg_load): New function to load SVG image.
2313         (svg_load_image): New function, helper for svg_load.
2314         (Qsvg): New Lisp_object.
2315         (svg_keyword_index): New enum.
2316         (svg_format): New static `image_keyword' struct.
2317         (svg_type): New static `image_type' struct.
2318         (librsvg/rsvg.h): Include it.
2320 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
2322         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
2324 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
2326         * lread.c (Qold_style_backquotes): New var.
2327         (syms_of_lread): Init and staticpro it.
2328         (load_warn_old_style_backquotes): New fun.
2329         (Fload): Use them to warn about old style backquotes.
2330         (end_of_file_error, Fload): Remove unused vars.
2332         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
2334         * lread.c (Vold_style_backquotes): New var.
2335         (syms_of_lread): Init and export it to Elisp.
2336         (read1): Set it when we find an old-style (back)quote.
2338 2007-08-22  Jason Rumney  <jasonr@gnu.org>
2340         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
2342 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
2344         * puresize.h (BASE_PURESIZE): Increase to 1140000.
2346 2007-08-19  Richard Stallman  <rms@gnu.org>
2348         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
2350 2007-08-19  Andreas Schwab  <schwab@suse.de>
2352         * alloc.c (pure): Round PURESIZE up.
2354 2007-08-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2356         * xterm.c (handle_one_xevent): Remove check that mouse click is in
2357         active frame.
2359 2007-08-16  Richard Stallman  <rms@gnu.org>
2361         * eval.c (Fcommandp): Add parens to clarify.
2363         * minibuf.c (Fall_completions): Use enum for type of table.
2365         * emacs.c (USAGE2): Improve text.
2367 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
2369         * term.c (tty_default_color_capabilities): Declare static
2370         variables in file scope, to avoid HPUX compiler problem.
2372 2007-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2374         * gtkutil.c (update_frame_tool_bar): Use -1 as index
2375         to gtk_toolbar_insert.
2377 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2379         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
2381         * insdel.c (reset_var_on_error): New fun.
2382         (signal_before_change, signal_after_change):
2383         Use it to reset (after|before)-change-functions to nil in case of error.
2384         Bind inhibit-modification-hooks to t.
2385         Don't bind (after|before)-change-functions to nil while they run.
2387 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2389         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
2390         filling pixmap with stippled background.
2392 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2394         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
2395         Don't use invisible frame as parent window for repositioning.
2397 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2399         * print.c (new_backquote_output): Rename from old_backquote_output.
2400         (print): Inverse its logic (according to its name) so as to match the
2401         behavior of new_backquote_flag in lread.c.
2403 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2405         * gmalloc.c (posix_memalign): New function.
2407         * macterm.c (frame_highlight, frame_unhighlight): Don't call
2408         ActivateControl/DeactivateControl here.
2409         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
2410         frame-notice-user-settings is non-nil.
2411         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
2412         for kEventParamFMFontStyle.
2413         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
2414         mac_pass_command_to_system and mac_pass_control_to_system here.
2415         (XTread_socket): Call ActivateControl/DeactivateControl here.
2416         (XTread_socket) [TARGET_API_MAC_CARBON]:
2417         Check mac_pass_command_to_system and mac_pass_control_to_system here.
2418         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
2419         for window repositioning.
2421 2007-08-08  Glenn Morris  <rgm@gnu.org>
2423         * Replace `iff' in doc-strings and comments.
2425 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
2427         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
2429 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
2431         * fileio.c (Finsert_file_contents): Run format-decode and
2432         after_insert_file_functions on entire buffer when REPLACE is
2433         non-nil and inhibit modification_hooks and point_motion_hooks.
2434         For consistency, run after_insert_file_functions iff something
2435         got inserted.  Move signal_after_change and update_compositions
2436         after code running after_insert_file_functions.  Make sure that
2437         undo_list doesn't record intermediate steps of the decoding process.
2439 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2441         * emacs.c (main)
2442         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
2443         Call malloc_enable_thread on interactive startup.
2445         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
2446         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
2447         [USE_PTHREAD]: Conditionalize with it.
2448         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
2449         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
2450         New functions.
2452 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
2454         * xdisp.c (redisplay_window): When restoring original buffer
2455         position, make sure it is still valid.
2457         * image.c (png_load): Ignore png-supplied background color.
2459 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2461         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
2462         Use kCFAbsoluteTimeIntervalSince1970.
2464         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
2465         New variable.
2466         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
2467         event loop should be quit.
2468         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
2469         Quit dialog event loop if quit_dialog_event_loop is set.
2471         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
2472         (Selection): New typedef.  Use instead of ScrapRef.
2473         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
2474         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
2475         (mac_clear_selection): Rename from clear_scrap.
2476         (get_flavor_type_from_symbol): New argument SEL and subsume function of
2477         scrap_has_target_type.  All uses changed.
2478         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2479         (mac_selection_has_target_p): New functions.
2480         (mac_put_selection_value): Rename from put_scrap_string.
2481         (mac_get_selection_value): Rename from get_scrap_string.
2482         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
2483         (put_scrap_private_timestamp, scrap_has_target_type)
2484         (get_scrap_private_timestamp): Remove functions.
2485         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
2486         (x_own_selection, x_get_local_selection):
2487         Use mac_valid_selection_value_p.
2488         (x_own_selection): Don't use put_scrap_private_timestamp.
2489         Record OWNERSHIP-INFO into Vselection_alist instead.
2490         (x_get_local_selection): Don't check type if request is local.
2491         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
2492         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
2494 2007-08-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2496         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
2497         add comment explaining why.
2499 2007-08-03  Richard Stallman  <rms@gnu.org>
2501         * fileio.c (Fvisited_file_modtime): Use make_time.
2503 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
2505         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
2506         build.
2508 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
2510         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
2512 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
2514         * puresize.h (BASE_PURESIZE): Increase to 1130000.
2516 2007-07-30  Richard Stallman  <rms@gnu.org>
2518         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
2520 2007-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2522         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
2524 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
2526         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
2527         remote default-directory.
2529         * buffer.c (mode-line-format): Update doc string.
2531 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2533         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
2534         scroll bar gap.
2535         (x_scroll_bar_create): Set bar->fringe_extended_p.
2536         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
2537         on frame edge.  Check fringe background extension.  Don't clear
2538         extended fringe background area.
2540         * w32term.h (struct scroll_bar): New member fringe_extended_p.
2541         (w32_fill_area): Enclose multiple statements with do ... while (0).
2543         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
2544         Extend fringe background to scroll bar gap.
2545         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2546         Set bar->fringe_extended_p.
2547         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2548         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
2549         background extension.  Don't clear extended fringe background area.
2551         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2552         New member fringe_extended_p.
2554 2007-07-25  Glenn Morris  <rgm@gnu.org>
2556         * Relicense all FSF files to GPLv3 or later.
2558         * COPYING: Switch to GPLv3.
2560 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
2562         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
2564         * data.c (Finteractive_form): Check for the presence of an
2565         `interactive-form' symbol property more thoroughly.
2567         * data.c (Finteractive_form): Use an `interactive-form' property if
2568         present, analogous to the function-documentation property.
2570 2007-07-24  Jason Rumney  <jasonr@gnu.org>
2572         * w32fns.c (x_real_positions): Get real position from OS instead of
2573         calculating it.
2575 2007-07-23  Jason Rumney  <jasonr@gnu.org>
2577         * filelock.c (current_lock_owner): Allow for @ sign in username.
2579 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
2581         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
2582         remote default-directory.
2584         * buffer.c (mode-line-format): Describe above case in doc string.
2586 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
2588         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
2589         Define if not defined.
2591 2007-07-18  Jason Rumney  <jasonr@gnu.org>
2593         * w32proc.c (w32_executable_type): Handle 64 bit executables.
2595 2007-07-18  Richard Stallman  <rms@gnu.org>
2597         * data.c (Fsetq_default): Doc fix.
2599         * eval.c (Fsetq): Doc fix.
2601 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
2603         * coding.c (Ffind_operation_coding_system):
2604         * eval.c (For, Fand): Doc fixes.
2605         Reported by Johan Bockg\e,Ae\e(Brd.
2607 2007-07-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2609         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
2611         * xterm.h: Declare x_ewmh_activate_frame.
2613         * xterm.c (x_ewmh_activate_frame): New function.
2614         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
2616 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
2618         * window.c (Fdisplay_buffer): If largest or LRU window is the
2619         only window, split it even if it is not eligible for splitting.
2620         This restores the original behavior broken by the 2007-07-15
2621         change.
2623 2007-07-17  Glenn Morris  <rgm@gnu.org>
2625         * abbrev.c (abbrev_check_chars): New function.
2626         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2627         Call abbrev_check_chars to check abbrev characters are word
2628         constituents.  Doc fix.
2630 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
2632         * process.c (Fstart_process, Fmake_network_process)
2633         (read_process_output): Fix up last changes.
2635 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
2637         * makefile.w32-in (clean): Don't delete *~.
2639 2007-07-16  Andreas Schwab  <schwab@suse.de>
2641         * window.c (Fdisplay_buffer): Use NILP.
2642         (Fset_window_scroll_bars): Likewise.
2644 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
2646         * window.c (window_min_size_2): New function.
2647         (window_min_size_1, size_window, Fdisplay_buffer)
2648         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
2649         windows without mode- or header-lines when window-min-height is
2650         too small.
2651         (size_window): Reset nodelete_p after testing it, following an
2652         earlier note by Kim F. Storm.
2653         (display_buffer): Do not set split_height_threshold to twice the
2654         value of window_min_height to avoid changing the value of a
2655         customizable variable.  Rather explicitly check whether the
2656         height of the window that shall be splitted is at least as large
2657         as split_height_threshold.
2658         (Fwindow_full_width_p): New defun.
2659         (syms_of_window): Defsubr it.
2661         * window.h: Add EXFUN for Fwindow_full_width_p.
2663 2007-07-14  Jason Rumney  <jasonr@gnu.org>
2665         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
2667 2007-07-14  Richard Stallman  <rms@gnu.org>
2669         * eval.c (maybe_call_debugger): New function.
2670         (find_handler_clause): Use maybe_call_debugger.
2671         Call it when the handler says `debug'.
2672         Eliminate DEBUGGER_VALUE_PTR.
2673         (Fsignal): Eliminate debugger_value.
2674         (Qdebug): New variable.
2675         (syms_of_eval): Initialize it.
2677 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
2679         * eval.c (Fprogn):
2680         * keyboard.c (Ftrack_mouse):
2681         * print.c (Fwith_output_to_temp_buffer):
2682         * window.c (Fsave_window_excursion): Doc fix.
2684 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2686         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
2688 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2690         * process.h (struct Lisp_Process): Turn slots infd, outfd,
2691         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
2692         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
2693         read_output_delay, and read_output_skip from Lisp_Objects to ints.
2694         Remove unused encoding_carryover.
2695         * process.c: Adjust all functions accordingly.
2697 2007-07-12  Richard Stallman  <rms@gnu.org>
2699         * term.c: Include unistd.h only if HAVE_UNISTD_H.
2701 2007-07-11  Jason Rumney  <jasonr@gnu.org>
2703         * makefile.w32-in (LIBS): Include OLE32.
2705         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
2706         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
2708 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2710         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
2711         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
2712         from a Lisp_Object into a bare pointer.
2713         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
2714         Adjust the code correspondingly.
2716         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
2718         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
2719         (term_show_mouse_face): Remove unused var `j'.
2720         (handle_one_term_event): Remove unused vars `i' and `j'.
2721         Don't cast return value of ttyname since it's not necessary.
2723 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2725         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
2726         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
2728         * fns.c (map_char_table): Use an array of int for `indices' rather than
2729         an array of Lisp_Objects (which are only ever integers anyway).
2730         (Fmap_char_table): Update caller.
2731         * lisp.h: Update prototype.
2732         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
2733         * fontset.c (Ffontset_info):
2734         * casetab.c (set_case_table): Update callers.
2736         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
2738         * keymap.c (struct accessible_keymaps_data)
2739         (struct where_is_internal_data): New structures.
2740         (accessible_keymaps_1, where_is_internal_1): Use them to change
2741         interface to adhere to the one used by map_keymap.
2742         (Faccessible_keymaps, where_is_internal): Use map_keymap.
2743         (accessible_keymaps_char_table, where_is_internal_2): Remove.
2745         * keymap.h (map_keymap_function_t): More informative prototype.
2747 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
2749         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
2750         (looking_at_1): Don't change search_regs and last_thing_searched
2751         if `inhibit-changing-match-data' is non-nil.
2752         (string_match_1, search_buffer, set_search_regs): Likewise.
2753         (syms_of_search): Add Lisp level definition for
2754         `inhibit-changing-match-data' and set it to nil.
2755         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
2756         start and end of the match, instead of using values in search_regs.
2758 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2760         * minibuf.c (Fcompleting_read): New value `confirm-only'
2761         for `require-match'.
2763 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2765         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
2766         part of the 2007-06-27 change to syms_of_fileio.
2768 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2770         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2771         Check WINDOWP before using XWINDOW.  Consolidate return statements.
2773 2007-06-27  Richard Stallman  <rms@gnu.org>
2775         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
2777 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
2779         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
2781 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2783         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
2784         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
2785         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
2786         (_free_internal, memalign): Use them.
2787         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
2788         Initialize to PTHREAD_MUTEX_INITIALIZER.
2789         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
2790         (morecore_nolock): Rename from morecore.  All uses changed.
2791         Use only nolock versions of internal allocation functions.
2792         (_malloc_internal_nolock, _realloc_internal_nolock)
2793         (_free_internal_nolock): New functions created from
2794         _malloc_internal, _realloc_internal, and _free_internal.
2795         (_malloc_internal, _realloc_internal, _free_internal): Use them.
2796         Copy hook value to automatic variable before its use.
2797         (memalign): Copy hook value to automatic variable before its use.
2799 2007-06-26  Kenichi Handa  <handa@m17n.org>
2801         * coding.c (Ffind_operation_coding_system): Docstring improved.
2802         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
2804 2007-06-25  David Kastrup  <dak@gnu.org>
2806         * keymap.c (Fcurrent_active_maps): Add `position' argument.
2807         (Fwhere_is_internal): Adjust call to `current-active-maps' to
2808         cater for additional parameter.
2810         * keymap.h: Adjust number of parameters to `current-active-maps'.
2812         * doc.c (Fsubstitute_command_keys): Adjust call of
2813         `current-active-maps'.
2815 2007-06-25  David Kastrup  <dak@gnu.org>
2817         * callint.c (Fcall_interactively): Make the parsing of interactive
2818         specs somewhat more readable.
2820 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2822         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
2823         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
2824         if extended background has already been filled.
2826 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2828         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
2829         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
2831         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
2832         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
2833         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
2834         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
2835         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
2836         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
2837         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
2838         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
2839         Run timers during dialog popup.
2840         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
2842 2007-06-21  Jason Rumney  <jasonr@gnu.org>
2844         * image.c (convert_mono_to_color_image): Swap fore and background.
2846 2007-06-20  Jason Rumney  <jasonr@gnu.org>
2848         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
2849         (w32_free_bdf_font): Unmap memory not handle.
2851 2007-06-20  Sam Steingold  <sds@gnu.org>
2853         * gmalloc.c (__morecore): Fix the declaration to comply with the
2854         definition.
2856 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
2858         * w32term.c (w32_delete_display): Remove leftover declaration.
2859         (w32_define_cursor, w32_initialize): Make static.
2861         * w32.c (_wsa_errlist): Fix typo in error message.
2862         (init_environment): Ignore any environment variable from the
2863         registry having a null value.
2865 2007-06-20  Glenn Morris  <rgm@gnu.org>
2867         * Makefile.in (LIBGIF): Default to -lgif.
2869 2007-06-17  Jason Rumney  <jasonr@gnu.org>
2871         * w32menu.c (add_menu_item): Don't use multibyte string functions on
2872         unicode strings.
2874 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
2876         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
2877         Fix typo in docstring.
2879 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
2881         * w32menu.c (add_menu_item): Escape `&' characters in menu items
2882         and their keybindings.
2884 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
2886         * composite.c (update_compositions): Fix last fix.
2888 2007-06-14  Jason Rumney  <jasonr@gnu.org>
2890         * w32.c (get_process_times_fn): New function pointer.
2891         (globals_of_w32): Intialize it if present in kernel32.dll.
2892         (w32_get_internal_run_time): New function.
2894         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
2896 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
2898         * composite.c (update_compositions): Check the validness of
2899         compositions.
2901 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2903         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
2904         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
2906         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
2907         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
2909         * macgui.h (USE_MAC_TOOLBAR): New define.
2911         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2912         Return immediately unless popup is activated.
2914         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
2915         background to scroll bar gap.
2916         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
2917         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
2918         scroll bars on frame edge.  Check fringe background extension.
2919         Don't clear extended fringe background area.
2920         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
2921         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
2922         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
2923         [USE_MAC_TOOLBAR]: New macros.
2924         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
2925         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
2926         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
2927         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
2928         [USE_MAC_TOOLBAR]: New functions.
2929         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
2930         manually if previous repositioning has failed.
2931         (mac_handle_keyboard_event): Use precomputed event kind.
2932         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
2933         as tool bar item click.  Handle mouse movement over tool bar items.
2935         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
2936         toolbar_win_gravity.
2937         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
2938         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
2939         Add externs.
2941         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
2942         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
2944 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
2946         * image.c (search_image_cache): Remove unused variable.
2948 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
2950         * xfns.c, xmenu.c: Link to xaw3d if available.
2952 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2954         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
2955         frame_foreground and frame_background.
2957         * image.c (lookup_image): Save frame foreground and background colors.
2958         (search_image_cache): Check if saved and current frame colors match.
2960 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2962         * regex.c (regex_compile): Remove the `regnum' counter.
2963         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
2965 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2967         * term.c: Include intervals.h to declare Fget_text_property.
2969 2007-06-10  Jason Rumney  <jasonr@gnu.org>
2971         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
2973 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
2975         * callint.c (Fcall_interactively):
2976         * editfns.c (Fdelete_and_extract_region):
2977         * fileio.c (Fread_file_name):
2978         * fns.c (Fmapconcat):
2979         * keyboard.c (cmd_error_internal):
2980         * keymap.c (Fkey_description):
2981         * lread.c (openp):
2982         * minibuf.c (read_minibuf):
2983         * search.c (wordify):
2984         * sunfns.c (sel_read):
2985         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
2986         * xfns.c (x_default_scroll_bar_color_parameter):
2987         * xmenu.c (menu_help_callback):
2988         * xselect.c (Fx_get_atom_name):
2989         * xterm.c (x_term_init): Use empty_unibyte_string.
2991 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
2993         * alloc.c (init_strings): Initialize canonical empty strings.
2994         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
2995         canonical empty string when the requested size is 0.
2997         * emacs.c (empty_unibyte_string): Rename from empty_string.
2998         (empty_multibyte_string): New canonical empty string.
2999         (syms_of_emacs): Don't initialize empty_string.
3001         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
3002         string, if appropriate.
3003         (empty_unibyte_string, empty_multibyte_string): New externs.
3004         (empty_string): Remove extern.
3006         * lread.c (syms_of_lread): Use empty_unibyte_string.
3008 2007-06-07  Jason Rumney  <jasonr@gnu.org>
3010         * s/ms-w32.h: Don't define HAVE_TZNAME.
3012         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
3014 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3016         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
3018         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
3019         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
3021         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
3022         Don't call next handler.
3023         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
3024         Remove argument.  Install handler to application.
3025         (set_frame_menubar): Don't change deep_p.
3026         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
3027         FRAME_OUTER_TO_INNER_DIFF_Y.
3028         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3029         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3030         [HAVE_DIALOGS]: New macros.
3031         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
3032         Use them.
3033         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
3035         * macselect.c [MAC_OSX] (install_service_handler): Rename from
3036         init_service_handler.  All callers changed.  Return OSStatus value.
3038         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
3039         All callers changed so as not to call SetPortWindowPort.
3040         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3041         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
3042         mac_draw_string_common.
3043         (mac_draw_image_string_qd): Likewise.
3044         (mac_draw_string_common): Use them.  Add INLINE.
3045         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
3046         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
3047         GetGlobalMouse.
3048         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
3049         and FRAME_OUTER_TO_INNER_DIFF_Y.
3050         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
3051         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
3052         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
3053         repositioning window to mac_handle_window_event.
3054         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
3055         saving window location to mac_handle_window_event
3056         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
3057         (install_menu_target_item_handler): Remove argument in extern.
3058         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
3059         Also accept command events.
3060         (do_keystroke): New function created from XTread_socket.
3061         (init_command_handler): Remove functions.
3062         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
3063         and save window location by kEventWindowShowing and kEventWindowHiding
3064         handlers here.  Don't call next handler for window state change and
3065         focus events.
3066         (mac_handle_application_event, mac_handle_keyboard_event)
3067         [TARGET_API_MAC_CARBON]: New functions.
3068         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
3069         kEventWindowShowing and kEventWindowHiding events.  Move installation
3070         of mouse, font, text input and menu target item handlers to
3071         install_application_handler.
3072         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
3073         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3074         New function.
3075         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3076         Register it.
3077         (XTread_socket) [TARGET_API_MAC_CARBON]:
3078         Consolidate SendEventToEventTarget calls.
3079         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
3080         Move application activation handler to mac_handle_application_event.
3081         Move keyboard handler to mac_handle_keyboard_event.
3082         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
3083         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
3084         init_command_handler.  Call install_application_handler.
3086         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
3087         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
3089 2007-06-07  Glenn Morris  <rgm@gnu.org>
3091         * emacs.c (main): Use `emacs-copyright' in --version output.
3093 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
3095         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
3097 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3099         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
3101         * macgui.h: Replace WindowPtr with WindowRef.
3103         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
3104         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
3105         Replace ControlHandle with ControlRef.
3106         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
3108         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
3109         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
3110         Replace ControlHandle with ControlRef.
3111         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
3112         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
3114         * macterm.h (struct scroll_bar): Rename member control_handle_low
3115         and control_handle_high to control_ref_low and control_ref_high.
3116         All uses changed.
3117         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
3118         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
3119         respectively.  All uses changed.
3120         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
3121         (install_window_handler, remove_window_handler): Replace WindowPtr
3122         with WindowRef in externs.
3124 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
3126         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
3128 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
3130         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
3132         * frame.c (Fmouse_position, Fmouse_pixel_position):
3133         Condition on HAVE_GPM too.
3135         * term.c (term_mouse_highlight): Remove unused variables.
3136         (Fterm_open_connection): Set gpm_zerobased to 1.
3137         (term_mouse_movement, term_mouse_click, handle_one_term_event):
3138         Use zero based co-ordinates.
3139         (handle_one_term_event): Report a drag as mouse movement too.
3141         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
3143 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
3145         * image.c (search_image_cache): New function.  Require background
3146         color match if background color is unspecified in the image spec.
3147         (uncache_image, lookup_image): Use it.
3149 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
3151         * window.c (Fshrink_window): Reflow docstring.
3153 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
3155         * Version 22.1 released.
3157 2007-06-01  Richard Stallman  <rms@gnu.org>
3159         * xfns.c (x_encode_text): Add GCPRO.
3161 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3163         * xfns.c (x_set_name_internal): Save encoded name before
3164         x_encode_text in case string data is relocated.
3166 2007-05-31  Richard Stallman  <rms@gnu.org>
3168         * buffer.c (syms_of_buffer): Doc fix.
3170 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
3172         * sysdep.c (init_sys_modes): Add rather than replace with
3173         O_NONBLOCK.
3175         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
3176         term_mouse_moveto.
3178         * termhooks.h (term_mouse_moveto): New extern.
3180         * term.c (mouse_face_window): Rename...
3181         (Qmouse_face_window): ...to this.
3182         (term_show_mouse_face, term_clear_mouse_face)
3183         (term_mouse_highlight): Use Qmouse_face_window.
3184         (term_mouse_moveto): New function.
3185         (term_mouse_position): Make it work.
3186         (syms_of_term): Uncomment assignment to mouse_position_hook.
3187         Staticpro Qmouse_face_window.
3189 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3191         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
3192         around current_column call.
3194 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
3196         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
3197         * xdisp.c (next_element_from_buffer):
3198         * window.c (delete_window):
3199         * term.c (term_mouse_highlight):
3200         * msdos.c (getdefdir):
3201         * macterm.c (mac_create_bitmap_from_bitmap_data)
3202         (init_font_name_table):
3203         * fns.c (Fsxhash):
3204         * data.c (Fmake_local_variable):
3205         * ccl.c (ccl_driver): Likewise.
3207 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3209         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
3210         Call mac_wakeup_from_rne on window size change.
3212 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
3214         * image.c (uncache_image): Fix typo.
3216 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
3218         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
3220 2007-05-22  Richard Stallman  <rms@gnu.org>
3222         * xterm.c (x_connection_closed): Remove NO_RETURN.
3224 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
3226         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
3228 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
3230         * image.c (uncache_image): New function.
3231         (Fimage_refresh): New function.
3233 2007-05-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3235         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
3237 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
3239         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
3240         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
3242 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
3244         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
3245         conditional on [HAVE_GPM_H].
3247 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3249         * syntax.c (skip_chars): Update syntax-table only after we checked that
3250         the new location is valid.
3252 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3254         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
3255         mac_get_window_bounds.
3257 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
3259         * Makefile.in (LIBGPM): Allow it to be set from configure.
3260         If set then link Emacs with it.
3262         * config.in: Regenerate.
3264         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
3265         New externs.
3267         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
3268         Include gpm.h.
3269         (handle_one_term_event, term_gpm): New externs.
3271         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
3272         and allow it to be interrupted by SIGIO.
3274         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
3275         (wait_reading_process_output): Wait on gpm_fd too.
3276         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
3277         (add_gpm_wait_descriptor_called_flag): New variable.
3278         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
3280         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
3281         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
3282         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
3283         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
3284         (make_lispy_event): Add case GPM_CLICK_EVENT.
3285         (read_avail_input): Handle mouse input.
3287         * term.c (write_glyphs_with_face): New function.
3288         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
3289         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
3290         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
3291         (mouse_face_face_id, term_gpm, pos_x, pos_y)
3292         (last_mouse_x, last_mouse_y): New variables.
3293         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
3294         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
3295         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
3296         (Fterm_close_connection): New functions.
3297         (term_init): Initialise mouse_face_window.
3299 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
3301         * xdisp.c (redisplay_window): If first window line is a
3302         continuation line, recompute the new window start instead of
3303         recentering.
3305 2007-05-18  Glenn Morris  <rgm@gnu.org>
3307         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
3308         Suggested by Alfred M. Szmidt <ams@gnu.org>.
3310 2007-05-17  Glenn Morris  <rgm@gnu.org>
3312         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
3314 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3316         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
3317         dead key repeat and up events.
3319 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
3321         * image.c (pbm_load): Check image size for monochrome pbm.
3323 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
3325         * xterm.c (XTread_socket): Revert last change.
3327 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
3329         * image.c (pbm_load): Correctly check image size for greyscale pbm.
3331         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
3333 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
3335         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
3336         mixup (YAILOM).
3338 2007-05-07  Andreas Schwab  <schwab@suse.de>
3340         * keymap.c (Flookup_key): Fix typo in last change.
3342 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
3344         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
3345         mapping for unibyte strings.
3347 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3349         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
3350         (Fx_popup_dialog) [MAC_OSX]: Likewise.
3352 2007-04-29  Richard Stallman  <rms@gnu.org>
3354         * insdel.c (replace_range): For undo, record insertion first.
3356 2007-04-29  Andreas Schwab  <schwab@suse.de>
3358         * lisp.h (VECSIZE): Use OFFSETOF.
3360 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3362         * xdisp.c (try_window_reusing_current_matrix): Fix number of
3363         disabled lines.
3365 2007-04-28  Richard Stallman  <rms@gnu.org>
3367         * lread.c (read_escape): In a string, \s is always space.
3369 2007-04-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3371         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
3373         * gtkutil.c (xg_update_menubar, create_menus): Create empty
3374         submenu for menu bar items.
3376 See ChangeLog.10 for earlier changes.
3378 ;; Local Variables:
3379 ;; coding: iso-2022-7bit
3380 ;; add-log-time-zone-rule: t
3381 ;; End:
3383     Copyright (C) 2007 Free Software Foundation, Inc.
3385   This file is part of GNU Emacs.
3387   GNU Emacs is free software; you can redistribute it and/or modify
3388   it under the terms of the GNU General Public License as published by
3389   the Free Software Foundation; either version 3, or (at your option)
3390   any later version.
3392   GNU Emacs is distributed in the hope that it will be useful,
3393   but WITHOUT ANY WARRANTY; without even the implied warranty of
3394   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3395   GNU General Public License for more details.
3397   You should have received a copy of the GNU General Public License
3398   along with GNU Emacs; see the file COPYING.  If not, write to the
3399   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
3400   Boston, MA 02110-1301, USA.
3402 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40