(yank-pop-change-selection): New option.
[emacs.git] / src / ChangeLog
blob952f9d7e6e8a46efa29adfc9ef887bb8780445ad
1 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
3         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
4         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
5         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
6         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
7         as number.
8         (Fdbus_call_method): Fix docstring.
10 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
12         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
13         New macros.
14         (XD_SYMBOL_TO_DBUS_TYPE): Renamed from
15         XD_LISP_SYMBOL_TO_DBUS_TYPE.
16         (XD_OBJECT_TO_DBUS_TYPE): Renamed from
17         XD_LISP_OBJECT_TO_DBUS_TYPE. Simplify.
18         (xd_signature): New function.
19         (xd_append_arg): Compute also signatures.  Major rewrite.
20         (xd_retrieve_arg): Make debug messages friendly.
21         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.  Check
22         for signatures of arguments.
24 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
26         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
30         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
31         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type
32         symbols.
33         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
34         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
35         (xd_retrieve_value): Removed. Functionality included in ...
36         (xd_append_arg): New function.
37         (Fdbus_call_method, Fdbus_send_signal): Apply it.
39 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
41         * dbusbind.c (top): Include <stdio.h>.
42         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
43         dbus_message_new_method_call and dbus_message_new_signal.
44         (Fdbus_register_signal): Rename unique_name to uname.  Check
45         handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
46         non-existing unique name.  Fix typos in matching rule.  Return an
47         object which is useful in Fdbus_unregister_signal.
48         (Fdbus_unregister_signal): Reimplementation, in order to remove
49         only the corresponding entry.
50         (Vdbus_registered_functions_table): Change the order of entries.
51         Apply these changes in xd_read_message and Fdbus_register_signal.
53 2007-12-16  Andreas Schwab  <schwab@suse.de>
55         * fileio.c (Finsert_file_contents): Fix overflow check to not
56         depend on undefined integer overflow.
58 2007-12-14  Jason Rumney  <jasonr@gnu.org>
60         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
61         for characters above 127.
63 2007-12-13  Jason Rumney  <jasonr@gnu.org>
65         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
66         before dereferencing array.
67         (lookup_vk_code): Remove zero comparison.
69 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
71         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
72         (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
73         `unsigned int' instead of `uint'.
74         (xd_read_message, Fdbus_register_signal): Split expressions into
75         multiple lines before operators "&&" and "||", according to the
76         GNU Coding Standards.
78 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
80         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
82 2007-12-12  Juri Linkov  <juri@jurta.org>
84         * buffer.c (Frename_buffer): In interactive spec replace
85         `read-buffer' with `read-string' that uses `buffer-name-history'
86         as history, and the current buffer's name as default.
88 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
90         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
91         manipulating the backtrace manually.
92         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
93         (struct backtrace, backtrace_list): Remove.
94         (command_loop_1): Remove dead var `no_direct'.
96         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
97         preserve non-built-in buffer-local variables.
98         (Fkill_all_local_variables): Don't re-create&re-set permanent
99         buffer-local variables.
101 2007-12-09  Juri Linkov  <juri@jurta.org>
103         * buffer.c (Frename_buffer): Change interactive spec from "s" to
104         Lisp code that uses `read-buffer' with current buffer as default.
106 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
108         * dbusbind.c (xd_read_message): Generate an event for every
109         registered handler.  There might be several handlers registered
110         for the same signal.
111         (Fdbus_register_signal): Don't overwrite a registration for the
112         same signal.  Add a new registration if handlers are different.
113         (Vdbus_registered_functions_table): Rework doc string.
115 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
117         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
118         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
119         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
120         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
121         Unify argument lists.
122         (xd_read_message, Fdbus_register_signal) Reorder and extend event
123         arguments and hash table keys.  Use unique name for service.
124         (Fdbus_unregister_signal): Remove checks.
125         (Vdbus_registered_functions_table): Fix doc string.
127 2007-12-05  Magnus Henoch  <mange@freemail.hu>
129         * process.c (make_process): Initialize pty_flag to 0.
131 2007-12-05  Jason Rumney  <jasonr@gnu.org>
133         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
134         specified XBMs.
136 2007-12-05  Richard Stallman  <rms@gnu.org>
138         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
140 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
142         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
143         New variable.
144         (mac_try_close_socket) [MAC_OSX]: New function.
145         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
146         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
148         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
149         Use mac_try_close_socket.
151 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
153         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
154         reloc_base.
155         (copy_dysymtab): Compute relocation base here.
156         (rebase_reloc_address) [__ppc64__]: New function.
157         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
158         changed.
160 2007-12-05  Jason Rumney  <jasonr@gnu.org>
162         * w32proc.c (sys_spawnve): Quote args with wildcards.
164 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
166         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
167         __objc_* sections.
168         (unrelocate) [_LP64]: Set relocation base to address of data segment.
170 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
172         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
173         Move check for Vdbus_registered_functions_table to
174         xd_read_queued_messages.
175         (xd_read_queued_messages): Protect xd_read_message calls by
176         internal_condition_case_1.
178 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
180         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Renamed from
181         Qdbus_system_bus and Qdbus_session_bus, respectively.
182         (Vdbus_intern_symbols): Removed.
183         (Vdbus_registered_functions_table): New hash table.
184         (XD_SYMBOL_INTERN_SYMBOL): Removed.
185         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
186         Rewritten in order to manage registered functions by hash table
187         Vdbus_registered_functions_table.
189 2007-12-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
191         * xterm.c: Update URL to Window Manager Specification in comment.
193 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
195         * config.in (HAVE_DBUS): Add.
197         * Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
198         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
199         (obj): Add $(DBUS_OBJ).
200         (LIBES): Add $(DBUS_LIBS).
201         (dbusbind.o): New target.
203         * dbusbind.c: New file.
205         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
207         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
208         (Qdbus_event) New Lisp symbol.
209         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
210         (gobble_input): Call xd_read_queued_messages, reading D-Bus
211         messages.
212         (keys_of_keyboard ): Define dbus-event.
214         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
216 2007-12-01  Richard Stallman  <rms@gnu.org>
218         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
220 2007-11-30  Jason Rumney  <jasonr@gnu.org>
222         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
223         (w32con_reset_terminal_modes): Clear screen buffer.
224         (w32_face_attributes): Don't use color indexes that are out of range.
225         Only reverse the default colors.
227         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
228         WINDOWSNT.
230         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
232 2007-11-29  Jason Rumney  <jasonr@gnu.org>
234         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
235         (w32_face_attributes): Use Vtty_defined_color_alist to determine
236         if the terminal colors are initialized.
237         (unspecified_fg, unspecified_bg): Remove unused declarations.
239 2007-11-29  Andreas Schwab  <schwab@suse.de>
241         * keyboard.c (apply_modifiers): Fix typo.
243 2007-11-29  Richard Stallman  <rms@gnu.org>
245         * keymap.c (Fcurrent_local_map): Doc fix.
247 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
249         * s/gnu-kfreebsd.h: New file.
251 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
253         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
254         Don't cast redundantly.
256         * keyboard.c (KEY_TO_CHAR): New macro.
257         (parse_modifiers, apply_modifiers): Accept integer arguments.
258         (read_key_sequence): Use them to unify the "shift->unshift" mapping
259         for chars and symbol keys.
260         After doing such remapping, apply function-key-map again.
262 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
264         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
265         compiled anymore.
267 2007-11-26  Andreas Schwab  <schwab@suse.de>
269         * process.c (list_processes_1): Fix indentation level of the
270         command column.
272 2007-11-23  Andreas Schwab  <schwab@suse.de>
274         * editfns.c (Fformat): Handle %c specially since it requires the
275         argument to be of type int.
277 2007-11-23  Markus Triska  <markus.triska@gmx.at>
279         * emacs.c (main): Call init_editfns before init_process, since
280         init_process sets Vprocess_connection_type depending on OS release
282 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
284         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
285         (find_symbol_value): Use do_symval_forwarding.
287         * data.c (set_internal): Set the value in the `cons-cell' (for
288         Buffer_Local_values) not only for frame-local variables.
290 2007-11-22  Andreas Schwab  <schwab@suse.de>
292         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
293         values to sprintf.
294         * keymap.c (Fsingle_key_description): Likewise.
295         * print.c (print_object): Likewise.
297 2007-11-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
299         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
300         file for image is nil.
302 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
304         * term.c: Include stdarg.h.
305         (fatal): Implement using varargs.
306         * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
308 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
310         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
311         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
312         Update call to buffer_slot_type_mismatch.
313         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
314         (buffer_slot_type_mismatch): Update.
315         * buffer.c (buffer_local_types): Remove.
316         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
317         (defvar_per_buffer): Set the type in the buffer_objfwd.
319 2007-11-21  Jason Rumney  <jasonr@gnu.org>
321         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
322         CreateFileMapping returns NULL on failure.
324 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
326         * search.c (Fset_match_data): Remove the `evaporate' feature.
327         (unwind_set_match_data): Don't use the `evaporate' feature.
329 2007-11-21  Jason Rumney  <jasonr@gnu.org>
331         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
333         * w32console.c (w32con_write_glyphs): Remove unused variables.
335 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
337         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
339         * s/darwin.h (MULTI_KBOARD): Remove.
341         * macfns.c (x_create_tip_frame, Fx_create_frame)
342         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
344 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
346         * buffer.c (Fbuffer_local_value): Remove redundant test.
347         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
348         than in `current-buffer' to match the comment.
349         Do the swap using swap_in_global_binding.
351         * data.c (store_symval_forwarding, set_internal):
352         * eval.c (specbind): Remove dead code.
354         * coding.c (detect_coding, Fupdate_coding_systems_internal):
355         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
356         Since we do not want to see internal Lisp_*fwd objects here.
358 2007-11-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
360         * sysdep.c (init_system_name): Use getaddrinfo if available.
362         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
363         (x_scroll_bar_note_movement): start, end, with, height in struct
364         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
366 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
368         * puresize.h (BASE_PURESIZE): Increase to 1190000.
370 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
372         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
373         This undoes Richard's change of 14-Oct-2002.
375         * alloc.c (allocate_other_vector):
376         * lisp.h (allocate_other_vector): Remove.
378         * window.c (struct save_window_data): Move non-lisp data to the end
379         and make it `int' rather than Lisp_Object.
380         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
381         Done wrap/unwrap integer values.
382         (Fset_window_configuration, compare_window_configurations):
383         Update use of fields to their new types.
385         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
386         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
387         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
388         (SET_SCROLL_BAR_X_WINDOW): Remove.
389         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
390         Access the new x_window field directly.
391         * xterm.c (x_scroll_bar_create): Use a pseudovector.
392         Don't wrap/unwrap integers into Lisp_Objects.
393         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
394         (x_scroll_bar_report_motion):
395         Don't wrap/unwrap integers into Lisp_Objects.
396         (x_term_init): Use SDATA.
397         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
398         (x_scroll_bar_set_handle, x_scroll_bar_remove)
399         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
400         (x_scroll_bar_report_motion, x_scroll_bar_clear):
401         * xfns.c (x_set_background_color):
402         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
403         Access the new x_window field directly.
405         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
406         (allocate_pseudovector): Make non-static.
408         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
409         (allocate_pseudovector): Declare.
410         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c
412 2007-11-15  Andreas Schwab  <schwab@suse.de>
414         * editfns.c (Fformat): Correctly format EMACS_INT values.
415         Also take precision into account when formatting an integer.
417         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
419 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
421         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
422         (syms_of_keyboard): Defsubr it.
424         * data.c (swap_in_global_binding): Fix longstanding bug where
425         store_symval_forwarding was not called with the right second argument,
426         thus causing objfwd-ing from being dropped.
428 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
430         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
431         (Fx_display_pixel_height, Fx_display_planes)
432         (Fx_display_color_cells, Fx_server_max_request_size)
433         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
434         (Fx_display_visual_class, Fx_display_save_under):
435         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
436         (Fx_display_pixel_height, Fx_display_planes)
437         (Fx_display_color_cells, Fx_server_max_request_size)
438         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
439         (Fx_display_mm_height, Fx_display_mm_width)
440         (Fx_display_backing_store, Fx_display_visual_class)
441         (Fw32_select_font, Fx_display_save_under):
442         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
443         (Fx_display_pixel_height, Fx_display_planes)
444         (Fx_display_color_cells, Fx_server_max_request_size)
445         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
446         (Fx_display_save_under): Fix typos in docstrings.
448 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
450         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
451         corresponding to deleted entries; they are an implementation detail.
452         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
453         Remove variables.
454         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
455         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
456         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
457         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
458         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
459         (Fw32_define_rgb_color, Fw32_load_color_file)
460         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
461         Fix typos in docstrings.
462         (Fx_server_version): Reflow docstring.
463         (Fw32_shell_execute): Doc fixes.
465 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
467         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
468         if w32_parse_hot_key returned nil.
470 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
472         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
474 2007-11-09  Jason Rumney  <jasonr@gnu.org>
476         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
478         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
480         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
481         Remove W32_SCROLL_BAR_CLICK_EVENT.
483         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
484         Add MULTIMEDIA_KEY_EVENT.
486         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
487         (lispy_multimedia_keys) [WINDOWSNT]: New array.
488         (make_lispy_event) [WINDOWSNT]: Use it to translate
489         MULTIMEDIA_KEY_EVENT.
491         * w32term.h (WM_APPCOMMAND): Define if not already.
492         (GET_APPCOMMAND_LPARAM): Likewise.
494         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
495         WM_APPCOMMAND.
497         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
498         (syms_of_w32fns): Export and initialize it.
499         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
501 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
503         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
504         twice.
506         * xdisp.c (handle_face_prop): Fix last change.
508 2007-11-09  Richard Stallman  <rms@gnu.org>
510         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
511         not just for after-strings and before-strings.
512         Call face_for_overlay_string and pass the overlay to it.
513         (handle_display_prop): Determine whether property came from an overlay.
514         Pass OVERLAY arg to handle_single_display_spec.
515         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
516         (load_overlay_strings): Fill in it->string_overlays.
517         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
519         * xfaces.c (face_for_overlay_string): Function renamed from
520         face_at_buffer_position_no_overlays, and add arg OVERLAY.
522         * dispextern.h (struct it): New elt string_overlays.
523         New elt from_overlay, also in stack.
524         Rearrange a few elements.
525         (face_for_overlay_string): Decl renamed from
526         face_at_buffer_position_no_overlays, and add argument.
528 2007-11-09  Richard Stallman  <rms@gnu.org>
530         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
531         to get the base face for an overlay string.
533         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
535         * xfaces.c (face_at_buffer_position_no_overlays): New function.
537         * xdisp.c (handle_stop): Move some code out of loop.
539 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
541         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
542         Fix conversion from Lisp object to ATSUFontID.
544 2007-11-09  Jason Rumney  <jasonr@gnu.org>
546         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
548 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
550         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
551         Don't assume regions are aligned to page boundary.
552         (print_load_command_name): Add LC_UUID if defined.
554 2007-11-09  Richard Stallman  <rms@gnu.org>
556         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
558 2007-11-07  Jason Rumney  <jasonr@gnu.org>
560         * s/windows95.h: Remove.
562 2007-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
564         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
565         abort with a message on unhandled store_type values.
567 2007-11-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
569         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
570         Remove HAVE_X11R5 and HAVE_X11R4.
572 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
574         * Makefile.in: Remove references to sunfns.c and sunfns.o.
576 2007-11-01  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
578         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
579         Don't set s->stippled_p here, since it has already been set by
580         x_set_glyph_string_gc from x_draw_glyph_string.
582 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
584         * sunfns.c: Remove file
586         * m/sun386.h:
587         * m/sun2.h:
588         * m/sparc.h: Remove Sun windows code.
590 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
592         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
593         (init_keyboard): Set current_kboard's window-system to nil.
594         (tty_read_avail_input): Typo.
595         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
597 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
599         * s/usg5-4.h:
600         * s/usg5-3.h:
601         * s/ptx.h:
602         * m/is386.h:
603         * m/ibmps2-aix.h:
604         * Makefile.in: Remove all mentions of X10
606         * dispnew.c (syms_of_display): Don't mention version 10.
608 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
610         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
611         ($(BLD)/abbrev.$(O)): Remove.
613 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
615         Rewrite abbrev.c in Elisp.
616         * image.c (Qcount): Don't declare as extern.
617         (syms_of_image): Initialize and staticpro `Qcount'.
618         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
619         * emacs.c (main): Don't call syms_of_abbrev.
620         * Makefile.in (obj): Remove abbrev.o.
621         (abbrev.o): Remove.
622         * abbrev.c: Remove.
624 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
626         * window.c (window_min_size_2): Don't count header-line.
628 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
630         * frame.h (struct frame): Move all bit fields after the first bit
631         field to take advantage of the available space.  Group all the
632         chars together to reduce wasted space due to padding.
634 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
636         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
638         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
639         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
640         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
641         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
642         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
643         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
644         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
645         (last_marked, mark_object_loop_halt): Make static.
647         * frame.c (syms_of_frame) <delete-frame-functions>:
648         Fix typo in docstring.
650 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
652         * w32.c (init_environment): Fix tiny memory leak.
653         (w32_get_resource): Remove unused variable `ok'.
655 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
657         Make `window-system' into a keyboard-local variable (rather than
658         frame-local as done originally by multi-tty).
660         * keyboard.h (struct kboard): Add Vwindow_system.
661         * keyboard.c (init_kboard): Set a default for Vwindow_system.
662         (mark_kboards): Mark Vwindow_system.
664         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
665         (init_display): Don't set the obsolete `window-system' frame-param.
667         * xterm.c (x_term_init):
668         * w32term.c (w32_create_terminal):
669         * term.c (init_tty): Set Vwindow_system.
670         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
671         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
673         * xfns.c (Fx_create_frame, x_create_tip_frame):
674         * w32fns.c (Fx_create_frame, x_create_tip_frame):
675         * macfns.c (Fx_create_frame):
676         Don't set the obsolete `window-system' frame-param.
678         * frame.h (Qwindow_system): Remove.
679         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
680         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
682 2007-10-24  Richard Stallman  <rms@gnu.org>
684         * frame.c (x_figure_window_size): For fullscreen case,
685         set USPosition | PPosition without clobbering rest of window_prompting.
687         * keyboard.c (Fcurrent_idle_time): Doc fix.
689         * print.c (Fwith_output_to_temp_buffer): Doc fix.
691 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
693         * process.c (unwind_request_sigio): Only define if __ultrix__.
695         * callproc.c (child_setup): Remove spurious *.
697         * lisp.h (Fget_text_property): Declare.
698         (have_menus_p): Declare it here rather than in sys-dep header files.
699         * macterm.h (have_menus_p):
700         * msdos.h (have_menus_p):
701         * xterm.h (have_menus_p): Remove.
703         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
704         (Fmake_variable_frame_local): Just check the variable's const-ness
705         rather than checking nil or t.
707 2007-10-22  Jason Rumney  <jasonr@gnu.org>
709         * w32fns.c: Include math.h.
710         (w32_abort): Declaration moved to nt/config.nt.
712         * s/ms-w32.h (HAVE_STDLIB_H): Define.
713         (abort): Redefinition moved to nt/config.nt.
715         * m/windowsnt.h: Remove.
717 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
719         * emacs.c (Fdump_emacs): Fix typo in message.
720         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
721         <installation-directory>: Reflow docstring.
723 2007-10-22  Juri Linkov  <juri@jurta.org>
725         * minibuf.c: Allow minibuffer default to be a list of default values.
726         With empty input use the first element of this list as returned default.
727         (string_to_object)
728         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
729         (read_minibuf): If defalt is cons, set histstring to its car.
730         (Fread_string): If default_value is cons, set val to its car.
731         (Fread_buffer): If def is cons, use its car.
732         (Fcompleting_read): If defalt is cons, set val to its car.
734 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
736         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
738 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
740         * doc.c (Fdocumentation): Check for advice in all cases.
742 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
744         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
746 2007-10-19  Richard Stallman  <rms@gnu.org>
748         * doc.c (Fdocumentation): Check for and handle an advised function.
750 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
752         * process.c (Fset_process_filter): Doc fix.
754 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
756         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
757         which caused key-translation-map to applied repeatedly (thus breaking
758         double-mode).
760 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
762         * xselect.c (x_own_selection, x_handle_selection_clear)
763         (x_clear_frame_selections):
764         * w32menu.c (list_of_panes, list_of_items):
765         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
766         * textprop.c (validate_plist, interval_has_all_properties)
767         (interval_has_some_properties, interval_has_some_properties_list)
768         (add_properties, text_property_list):
769         * process.c (Fget_buffer_process, list_processes_1, status_notify):
770         * minibuf.c (Fassoc_string):
771         * macselect.c (x_own_selection, x_clear_frame_selections)
772         (Fx_disown_selection_internal):
773         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
774         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
776 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
778         * process.c: Link to libs for calling res_init() if available.
779         (Fmake_network_process): Call res_init() before getaddrinfo or
780         gethostbyname, if possible.
782 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
784         * lread.c (read1): Set pvectype for char_tables.
786         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
787         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
788         Add type checks.
789         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
791         * alloc.c (free_misc): Use XMISCTYPE.
792         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
794 2007-10-17  Glenn Morris  <rgm@gnu.org>
796         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
797         (syms_of_minibuf): Add Qcompletion_ignore_case.
798         * dired.c (Qcompletion_ignore_case): Change to external.
799         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
800         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
801         (Fread_file_name): Use it rather than intern'ing.
803         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
804         (Fread_coding_system): Ignore case of user input.
806 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
808         * xdisp.c (handle_display_prop): Ignore display specs after
809         replacing one when string text is being replaced.
810         (handle_single_display_spec): Pretend as if characters with display
811         property haven't been consumed only when buffer text is being replaced.
813 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
815         * xfns.c (Fx_create_frame, Fx_display_list):
816         * window.c (window_fixed_size_p, enlarge_window)
817         (shrink_window_lowest_first):
818         * macterm.c (init_font_name_table):
819         * macfns.c (Fx_create_frame, Fx_display_list):
820         * lread.c (close_load_descs):
821         * keyboard.c (read_char_x_menu_prompt):
822         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
823         * coding.c (code_convert_region_unwind): Test the type of an object
824         rather than just !NILP before extracting data from it.
826         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
828         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
829         (XMISCANY): New macro.
830         (XMISCTYPE): Use it.
831         (struct Lisp_Misc_Any): New type.
832         (union Lisp_Misc): Use it.
833         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
834         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
835         (find_symbol_value, set_internal, default_value, Fset_default)
836         (Fmake_variable_buffer_local, Fmake_local_variable)
837         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
838         (Flocal_variable_if_set_p, Fvariable_binding_locus):
839         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
840         * alloc.c (allocate_buffer): Set the size and tag.
841         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
842         Use XMISCANY.
843         (die): Follow the GNU convention for error messages.
844         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
845         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
846         tag any more.
847         (set_buffer_internal_1):
848         * frame.c (store_frame_param):
849         * eval.c (specbind):
850         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
852         * doc.c (Fsnarf_documentation): Simplify.
854 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
856         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
857         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
859 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
861         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
863 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
865         * eval.c (do_autoload): Don't save autoloads.
867         * data.c (Ffset): Save autoload of the function being set.
869 2007-10-07  John Paul Wallington  <jpw@pobox.com>
871         * xfns.c (x_create_tip_frame): Set the `display-type' frame
872         parameter before setting up faces.
874 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
876         * ccl.c (Fregister_code_conversion_map):
877         * keyboard.c (append_tool_bar_item): Reformat last change.
879         * lisp.h (eabs): Rename from `abs'.  All callers changed.
881 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
883         * buffer.c (add_overlay_mod_hooklist):
884         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
885         * fontset.c (make_fontset):
886         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
887         (append_tool_bar_item):
888         * macmenu.c (grow_menu_items):
889         * w32menu.c (grow_menu_items):
890         * xmenu.c (grow_menu_items): Use larger_vector.
892 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
894         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
895         selected frame'' on MSDOS).
897 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
899         * frame.c (Qexplicit_name): New variable.
900         (x_report_frame_params): Report it in parameter alist.
901         (syms_of_frame): Intern and staticpro it.
903 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
905         * macfns.c (x_create_tip_frame): Set terminal for frame.
907 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
909         * frame.c (Qenvironment): Remove.
910         (syms_of_frame) <Qenvironment>: Don't initialize.
911         (Fdelete_frame): Don't treat the `environment' param specially.
912         * frame.h (Qenvironment): Don't declare.
913         * callproc.c (set_initial_environment): Don't set unused frame param.
915         * frame.c (Fframe_with_environment): Remove.
916         (syms_of_frame) <Sframe_with_environment>: Don't declare.
918         * lisp.h (Fframe_with_environment): Don't declare.
920 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
922         * indent.c (indent_tabs_mode, last_known_column)
923         (last_known_column_modified): Make static.
924         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
926 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
928         * puresize.h (BASE_PURESIZE): Increase to 1170000.
930 2007-10-09  Jason Rumney  <jasonr@gnu.org>
932         * w32term.c (x_set_window_size): Disable code that attempts to tell
933         Lisp code about a size change before it actually happens.
935 2007-10-09  Richard Stallman  <rms@gnu.org>
937         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
938         return HANDLED_RETURN.
940 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
942         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
943         when there's an unread command event.
945         * frame.c (focus_follows_mouse): Move here from frame.el to allow
946         window autoselection act appropriately when leaving selected frame.
947         (syms_of_frame): Initialize focus_follows_mouse.
948         * frame.h (focus_follows_mouse): Extern it.
949         * macterm.c (XTread_socket): When focus_follows_mouse is nil
950         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
951         * msdos.c (dos_rawgetc): Likewise.
952         * w32term.c (w32_read_socket): Likewise.
953         * xterm.c (handle_one_xevent): Likewise.
954         * xdisp.c (syms_of_xdisp): In doc-string of
955         mouse-autoselect-window mention focus-follows-mouse.
957 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
959         * macterm.c (mac_load_query_font): Fix missing return value.
960         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
961         Add BLOCK_INPUT.
963 2007-10-08  Richard Stallman  <rms@gnu.org>
965         * xdisp.c (get_window_cursor_type): Implement documented behavior
966         for cursor-in-non-selected-windows = t.
968 2007-10-08  Jason Rumney  <jasonr@gnu.org>
970         * w32.c (w32_get_resource): Always close registry keys.
972 2007-10-08  Jason Rumney  <jasonr@gnu.org>
974         * makefile.w32-in (LIBS): Add COMCTL32.
976         * w32fns.c (globals_of_w32fns): Init common controls.
978 2007-10-08  Richard Stallman  <rms@gnu.org>
980         * image.c (our_memory_buffer): Rename from omfib_buffer.
982 2007-10-08  Richard Stallman  <rms@gnu.org>
984         * buffer.c (Foverlays_at): Doc fix.
986 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
988         * fns.c (Fplist_put): Preserve uneven tail data.
990 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
992         * termhooks.h (enum event_kind): Remove trailing comma.
994         * frame.h (enum): Remove trailing comma.
996 2007-10-08  Dhuvra Krishnamurthy  <dhuvrakm@gmail.com>  (tiny change)
998         * w32proc.c (delete_child): Don't terminate threads of zombies.
1000 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
1002         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
1004         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
1005         last-repeatable-command.
1006         (init_kboard): Initialize Vlast_repeatable_command.
1007         (command_loop_1): Set it to real_this_command unless that was
1008         bound to an input event.
1009         (mark_kboards): Mark it.
1011 2007-10-08  Richard Stallman  <rms@gnu.org>
1013         * eval.c (condition-case): Doc fix.
1015 2007-10-08  Masatake YAMATO  <jet@gyve.org>
1017         * xfaces.c (tty_supports_face_attributes_p): Fix code
1018         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
1019         was copied and not edited.
1021 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
1023         Add new `input-decode-map' keymap and use it for terminal
1024         escape sequences.
1025         * keyboard.h (struct kboard): Add Vinput_decode_map.
1026         Remove Vlocal_key_translation_map.
1027         * keyboard.c (read_key_sequence): Add support for input-decode-map.
1028         (init_kboard): Init input-decode-map.
1029         Replace local-key-translation-map back with key-translation-map.
1030         (syms_of_keyboard): Declare input-decode-map.
1031         Remove local-key-translation-map.  Update docstrings.
1032         (mark_kboards): Mark Vinput_decode_map.
1033         Don't mark Vlocal_key_translation_map.
1034         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
1035         Replace local-key-translation-map back with key-translation-map.
1036         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
1037         Bind in input-decode-map rather than function-key-map.
1039         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
1040         This was made redundant by the previous introduction of XSETPVECTYPE.
1042 2007-10-09  Richard Stallman  <rms@gnu.org>
1044         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
1046 2007-09-29  Richard Stallman  <rms@gnu.org>
1048         * eval.c (internal_condition_case_2, internal_condition_case_1)
1049         (internal_condition_case): Reenable abort if x_catching_errors ()
1050         to see if that really happens and why.
1052 2007-10-06  Andreas Schwab  <schwab@suse.de>
1054         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
1056 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
1058         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
1060 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
1062         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
1064 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
1066         * window.h (struct window):
1067         * window.c (struct save_window_data, struct saved_window):
1068         * termhooks.h (struct terminal):
1069         * process.h (struct Lisp_Process):
1070         * frame.h (struct frame):
1071         * buffer.h (struct buffer):
1072         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
1073         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
1074         The size field of (pseudo)vectors is now unsigned.
1075         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
1077         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
1078         Turn `count' into an integer.
1080         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
1081         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
1082         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
1083         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
1084         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
1086         * alloc.c (allocate_pseudovector): New fun.
1087         (ALLOCATE_PSEUDOVECTOR): New macro.
1088         (allocate_window, allocate_terminal, allocate_frame)
1089         (allocate_process): Use it.
1090         (mark_vectorlike): New function.
1091         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
1092         (mark_terminals): Use it.
1093         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
1094         (Fmake_byte_code): Use XSETPVECTYPE.
1096         * frame.c (Fframe_parameters): Minor simplification.
1098         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
1100         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
1102         * buffer.c (Fget_buffer_create, init_buffer_once):
1103         * lread.c (defsubr):
1104         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
1106         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
1107         defined differently in the m/*.h files.
1108         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
1109         (XSETPVECTYPE): New macro.
1110         (XSETPSEUDOVECTOR): Use it.
1112         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
1113         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
1115         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
1116         * lread.c (defvar_per_buffer):
1117         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
1119         * window.c (candidate_window_p): Only consider as visible frames that
1120         are on the same terminal.
1122         * m/ibms390x.h (MARKBIT): Remove unused macro.
1124 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
1126         * lread.c (Fload): Fix typo in docstring.
1128 2007-10-01  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
1130         * floatfns.c (Fexpt): Manually check for overflows, so that a power
1131         of a non-zero value can't yield zero.
1133 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1135         * term.c (term_clear_mouse_face, term_mouse_highlight)
1136         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
1138         * print.c (safe_debug_print): Use XHASH.
1140         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
1141         Lisp elements such as tags.
1142         (XHASH): New macro.
1143         (EQ): Use it.
1144         (SREF, SSET, STRING_COPYIN): Use SDATA.
1145         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
1147         * alloc.c (mark_terminal): Remove left-over declaration.
1148         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
1149         (allocate_vectorlike): Remove type argument.  Adjust callers.
1150         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
1151         Only handle the one remaining MEM_TYPE_VECTORLIKE.
1153         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
1154         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
1155         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
1156         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
1157         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
1158         Use them.
1160         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
1161         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
1162         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
1164 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
1166         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
1167         loaded by default.
1169 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
1171         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
1172         on this tty.
1173         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
1175         * term.c (mouse_face_window): Rename from Qmouse_face_window.
1176         Update all users.
1177         (handle_one_term_event): Use Gpm_DrawPointer.
1178         (Fgpm_mouse_start): Rename from Fterm_open_connection.
1179         Signal errors instead of returning nil.  Always return nil.
1180         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
1181         Make it a noop if gpm-mouse was not activated.
1182         (syms_of_term): Update names.
1184 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
1186         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
1187         (init_sys_modes): Check that gpm_tty is the current tty.
1189         * alloc.c (allocate_terminal): Set the vector size to only count the
1190         lisp fields.  Initialize those to nil.
1191         (mark_object): Don't treat terminals specially.
1192         (mark_terminal): Remove.
1193         (mark_terminals): Use mark_object instead.
1195         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
1196         the GC to the beginning.
1198         * indent.h:
1199         * indent.c: Use EMACS_INT for ints coming from Elisp data.
1201         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
1203 2007-09-25  Jason Rumney  <jasonr@gnu.org>
1205         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
1207         * w32console.c (create_w32cons_output): Remove.
1209         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
1211         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
1212         (reset_sys_modes): Use reset_terminal_modes_hook.
1214 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
1216         * eval.c (do_autoload): Don't output any message.
1218 2007-09-24  Juri Linkov  <juri@jurta.org>
1220         * emacs.c (standard_args): Change priority of "--no-splash"
1221         from 40 to 3.  Add "--no-desktop" with the same priority.
1223 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
1225         * alloc.c (gc_sweep): Check cons cell mark bits word by word
1226         and optimize the case where they are all 1.
1228 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
1230         * lisp.h (abs): Define if not defined.
1231         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
1232         Don't define `abs', since it's defined in lisp.h.
1234 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
1236         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
1237         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
1238         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
1239         (init_tty): Use DEV_TTY instead of "/dev/tty".
1240         [WINDOWSNT]: No need to protect from NAME arg being null.
1242 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
1244         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
1245         up the tty state.
1247 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1249         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
1250         (gpm_tty): Change its type.
1251         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
1252         (gpm_tty): Change its type and initialize it.
1253         (Fterm_open_connection): Check the frame is indeed a tty.
1254         Use the new gpm_tty.
1255         (Fterm_close_connection): Use the new gpm_tty.
1256         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
1257         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
1259 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
1261         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
1262         underline_color, to draw strike-through.
1264 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1266         * lisp.h (allocate_terminal): Declare.
1268         * window.c (candidate_window_p): Consider frames that are being placed
1269         by the user as somewhere between visible and iconified.
1270         (window_loop): Prefer windows on the current frame.
1271         (Fselect_window): Move the use of select-frame to the beginning so we
1272         can just delegate all the work (it'll call us back anyway).
1274         * frame.c (Qdisplay_environment_variable):
1275         * frame.h (Qdisplay_environment_variable): Delete.
1277         * .gdbinit (xbacktrace): Print the arg's address rather than the value
1278         of the first arg, since that value may be a union.
1280         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
1281         parameter rather than Qdisplay_environment_variable.  If all else
1282         fails, look for DISPLAY in initial-environment.
1284 2007-09-21  Glenn Morris  <rgm@gnu.org>
1286         * Makefile.in (emacstool): Remove target.
1287         (lisp, shortlisp): Remove termdev.elc.
1289 2007-09-21  Markus Triska  <markus.triska@gmx.at>
1291         * xterm.c (x_delete_display): Compile session management conditionally.
1293 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
1295         * callproc.c (getenv_internal_1): New function.
1296         (getenv_internal): Use it.
1297         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
1299         * terminal.c (get_terminal): Don't accept ints to represent terminals.
1300         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
1301         (Fset_terminal_parameter): Work with dead terminals as well.
1302         (Fmodify_terminal_parameters): Remove.
1304         * terminal.c (get_terminal): Handle terminals.
1305         Make sure the terminal returned is live.
1306         (create_terminal): Use allocate_terminal.
1307         (mark_terminals): Move to alloc.c.
1308         (delete_terminal): Use terminal->name as liveness status.
1309         NULL out fields after freeing their contents.
1310         Don't deallocate the object.
1311         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
1312         rather than an int.
1313         (Fterminal_live_p): Accept non-integer arguments.
1314         (Fterminal_list): Return terminal objects rather than an ints.
1316         * alloc.c (enum mem_type): New member for `terminal' objects.
1317         (allocate_terminal): New function.
1318         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
1319         Handle terminals.
1320         (mark_terminal): New fun.
1321         (mark_terminals): Move from terminal.c.
1323         * term.c (get_tty_terminal): Don't treat output_initial specially.
1324         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
1325         (delete_tty): Use terminal->name as liveness status.
1327         * termhooks.h (struct terminal): Make it into a pseudovector.
1328         Remove `deleted' replaced by checking `name's nullness.
1330         * print.c (print_object): Handle terminals.
1332         * lisp.h (enum pvec_type): New `terminal' pseudovector.
1333         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
1335         * frame.c (make_terminal_frame):
1336         * keyboard.c (tty_read_avail_input):
1337         * w32term.c (x_delete_terminal):
1338         * xfns.c (Fx_create_frame, x_create_tip_frame):
1339         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
1341 2007-09-20  Glenn Morris  <rgm@gnu.org>
1343         * process.c (Fmake_network_process): Doc fix.
1345 2007-09-19  Jason Rumney  <jasonr@gnu.org>
1347         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
1349 2007-09-19  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
1351         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
1352         Fix a C warning regarding variable constness.
1354         * xterm.c (handle_one_xevent): Fix a C warning.
1356 2007-09-18  Jason Rumney  <jasonr@gnu.org>
1358         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
1360 2007-09-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1362         * gtkutil.c (gdpy_def): New variable.
1363         (xg_initialize): Initialize gdpy_def.
1364         (xg_display_close): If no other display exists, set gdpy_def to a
1365         new connection.
1367 2007-09-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1369         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1370         when we have no file name for the icon.
1371         (xg_tool_bar_expose_callback): Remove.
1372         (xg_create_tool_bar): Don't connect expose signal to
1373         xg_tool_bar_expose_callback.
1374         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1376 2007-09-16  Andreas Schwab  <schwab@suse.de>
1378         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1379         values instead of zapping them.
1381 2007-09-14  Glenn Morris  <rgm@gnu.org>
1383         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
1384         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1385         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1386         scope and rename to omfib_buffer for clarity.
1387         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1389 2007-09-14  Kenichi Handa  <handa@m17n.org>
1391         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
1393 2007-09-13  Jason Rumney  <jasonr@gnu.org>
1395         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
1397         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
1399         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
1400         (mac_term_init): Call here instead, passing rif.
1402 2007-09-13  Glenn Morris  <rgm@gnu.org>
1404         * s/hpux.h: No longer define `static' as nothing.
1406 2007-09-13  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
1408         * callint.c (Fcall_interactively): Remove unused var `fun'.
1410 2007-09-12  Romain Francoise  <romain@orebokech.com>
1412         * window.c (prefer_window_split_horizontally, display_buffer):
1413         Revert 2007-09-08 change.
1415 2007-09-12  Glenn Morris  <rgm@gnu.org>
1417         * alloca.c: Remove file.
1418         * Makefile.in (alloca): Do not undef.
1419         (allocaobj, alloca.o): Remove.
1420         (otherobj): Remove allocaobj.
1421         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
1422         * regex.c (C_ALLOCA): Remove all references and code that was only
1423         used when this was defined.
1424         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
1425         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
1426         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
1428         * Makefile.in (SOURCES, unlock, relock): Delete.
1430         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1431         (menu_grab_callback): All uses changed.
1433         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1434         (x_reply_selection_request): All uses changed.
1436 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1438         * lread.c (load_warn_old_style_backquotes): Change message to look
1439         better when it appears in the middle of byte-compiler messages.
1441 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
1443         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
1445         * xterm.c (x_create_terminal): Add comment.
1447         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
1449 2007-09-10  Richard Stallman  <rms@gnu.org>
1451         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
1453 2007-09-10  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
1455         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
1456         (DEFUN): Document `intspec', use it instead of `prompt'.
1458         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
1460         * data.c (Finteractive_form): If the interactive specification starts
1461         with a `(', use it as a Lisp form.
1463         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
1464         name and file modes.
1466         * callint.c (Fcall_interactively): Comment fixes.
1468 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1470         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
1471         and compiled functions.
1473 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
1475         * window.c (prefer_window_split_horizontally): New variable.
1476         (display_buffer): Consider splitting window horizontally depending
1477         on prefer_window_split_horizontally.
1479 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
1481         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
1483 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
1485         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
1487         * frame.c (x_set_frame_parameters): Check number is positive before
1488         using XFASTINT.
1490         * window.c (freeze_window_start): Don't presume selected_window holds
1491         a window object.
1492         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
1494 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
1496         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
1498 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
1500         * window.c (Vsplit_window_preferred_function): New var.
1501         (Fdisplay_buffer): Use it.
1502         (syms_of_window): Export, and initialize it.
1504 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
1506         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1508 2007-09-06  Glenn Morris  <rgm@gnu.org>
1510         * gtkutil.c (menu_grab_callback) <cnt>:
1511         * xselect.c (x_reply_selection_request) <cnt>: Move static
1512         variable to file scope.
1514 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
1516         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
1517         consistent values of selected_frame and selected_window.
1519 2007-09-04  Jason Rumney  <jasonr@gnu.org>
1521         * w32console.c (initialize_w32_display): Zero unused hooks.
1523 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
1525         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
1526         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
1528 2007-09-04  Jason Rumney  <jasonr@gnu.org>
1530         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
1531         in w32console.c.  Set up input.  Remove XXX comments that have been
1532         confirmed as correct.
1534         * s/ms-w32.h (MULTI_KBOARD): Define.
1536         * w32console.c (one_and_only_w32cons): Remove.
1537         (initialize_w32_display): Take terminal argument.
1539         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
1540         initialize_w32_display.
1541         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
1543         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
1545         * keyboard.c (discard_mouse_events): Discard it.
1546         (make_lispy_event): Translate it to a lisp event.
1547         (lispy_wheel_names): Add wheel-left and right events.
1548         (syms_of_keyboard): Enlarge wheel_syms.
1550         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
1551         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
1553         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
1555         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
1556         from WM_MOUSEHWHEEL.
1557         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
1559         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
1560         terminal.
1562         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
1563         keyboard for the terminal.
1565 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
1567         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
1568         (Vresume_tty_hook): Rename from Vresume_tty_functions.
1569         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
1570         and resume-tty-function to resume-tty-hook.
1571         (Fsuspend_tty, Fresume_tty): Use new names.
1573 2007-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1575         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
1576         if it starts with "n:".
1578 2007-08-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1580         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
1582 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
1584         * frame.h:
1585         * frame.c (Qterm_environment_variable): Remove.
1586         (syms_of_frame): Don't init and staticpro it.
1588         * callproc.c (getenv_internal): Remove special case for $TERM.
1590         * callproc.c (Vinitial_environment): New variable.
1591         (set_initial_environment): Initialize it.
1592         (syms_of_callproc): Declare it.
1593         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
1594         TERM under which a process runs is never related to the TERM in which
1595         Emacs is running.
1597 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
1599         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
1600         * s/darwin.h: ... do it here.
1602 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1604         * lisp.h (set_initial_environment): Rename from set_global_environment.
1606         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
1607         removed by mistake on the multi-tty branch.
1609         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
1610         (Fmodify_frame_parameters): Return a value.
1612         * image.c (png_load): Comment-out var only used in commented-out code.
1614         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
1615         before passing it to mark_object.
1617         * xfaces.c (internal_resolve_face_name): Return a value.
1618         (internal_resolve_face_name, resolve_face_name_error): Comment out.
1620         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
1621         (x_icon): Comment-out var only used in commented-out code.
1623 2007-08-29  Romain Francoise  <romain@orebokech.com>
1625         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
1626         QUIT hasn't been provided.
1628 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
1630         * callproc.c (child_setup, getenv_internal): Use the
1631         display-environment-variable and term-environment-variable frame
1632         params.
1633         (set_initial_environment): Initialise Vprocess_environment.
1635         * config.in: Disable multi-keyboard support on a mac.
1637         * frame.c (Qterm_environment_variable)
1638         (Qdisplay_environment_variable): New variables.
1639         (syms_of_frame): Intern and staticpro them.
1640         (Fmake_terminal_frame): Disable output method test.
1642         * frame.h: Declare them here.
1644         * macfns.c (x_set_mouse_color): Get rif from the frame.
1645         (x_set_tool_bar_lines): Don't use updating_frame.
1646         (mac_window): Add 2 new parameters for consistency with other systems.
1647         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
1648         frame parameters following what is done in X11 and w32.  Don't use
1649         FRAME_MAC_DISPLAY_INFO.
1650         (Fx_open_connection, start_hourglass): Remove window-system check.
1651         (x_create_tip_frame): Get the keyboard from the terminal.
1653         * macmenu.c: Reorder includes.
1654         (Fx_popup_menu): Use terminal specific mouse_position_hook.
1656         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
1657         terminal parameter.
1658         (x_clear_frame): Add a frame parameter.
1659         (note_mouse_movement): Get rif from the frame.
1660         (mac_term_init): Initialize the terminal.
1661         (mac_initialize): Make static and move terminal initialization ...
1662         (mac_create_terminal): ... to this new function.
1664         * macterm.h (struct mac_display_info): Add terminal.
1665         (mac_initialize): Delete declaration.
1667         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
1669         * sysdep.c: Comment out text after #endif.
1671         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
1672         is defined.  Better initialize ttys in windows.  Use terminal
1673         specific mouse_position_hook.
1675         * termhooks.h (union display_info): Add mac_display_info.
1677         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
1678         Set the default minibuffer frame, window_system and the rest of the
1679         frame parameters following what is done in X11.
1681         * w32term.c (w32_initialize): Make static.
1683         * xselect.c (x_handle_selection_clear): Only access
1684         terminal->kboard when MULTI_KBOARD is defined.
1686         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
1687         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
1689 2007-08-29  Jason Rumney  <jasonr@gnu.org>
1691         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
1692         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
1694         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
1695         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
1697         * keyboard.c (restore_kboard_configuration): Only define when
1698         MULTI_KBOARD defined.
1700         * makefile.w32-in: Update dependancies from Makefile.in.
1701         (OBJ1): Add terminal.$(O)
1703         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
1704         Don't define function body.
1705         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
1707         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
1709         * w32.c (request_sigio, unrequest_sigio): Remove.
1711         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
1712         (w32con_clear_frame, w32con_clear_end_of_line)
1713         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
1714         (w32con_delete_glyphs, w32con_set_terminal_window)
1715         (scroll_line, w32_sys_ring_bell): Add frame arg.
1716         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
1717         Add terminal arg.
1718         (PICK_FRAME): Remove.
1719         (w32con_write_glyphs): Use frame specific terminal coding.
1720         (one_and_only_w32cons): New global variable.
1721         (initialize_w32_display): Use it for storing hooks.
1722         (create_w32cons_output): New function.
1724         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
1725         arg a frame.
1727         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
1728         Set window_system.
1729         (x_set_tool_bar_lines): Don't use updating_frame.
1730         (Fx_create_frame): Set terminal and ref count.
1731         (Fx_open_connection): Remove window-system check.
1733         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
1735         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
1736         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
1737         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
1738         Add frame arg.
1739         (x_delete_terminal, w32_create_terminal): New functions.
1740         (w32_term_init): Create a terminal.
1741         (w32_initialize): Move terminal specific initialization to
1742         w32_create_terminal.
1744         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
1745         (w32_clear_rect, w32_clear_area): Use background from frame.
1746         (w32_display_info): Add terminal.
1747         (w32_sys_ring_bell, x_delete_display): Declare here.
1749         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
1751         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
1753 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
1755         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
1756         Fix get_named_tty calls for the controlling tty.
1758 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
1760         * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
1762 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
1764         * term.c (tty_insert_glyphs): Add missing first parameter.
1766 2007-08-29  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <karoly@lorentey.hu>
1768         * buffer.c (Fbuffer_list, Fbury_buffer):
1769         Take frame->buried_buffer_list into account.
1771         * cm.c (current_tty): New variable, for cmputc().
1772         (cmputc): Use it.
1773         (cmcheckmagic): Add tty parameter, look up terminal streams there.
1774         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
1775         (cmgoto): Add tty parameter.  Pass it on to calccost().
1776         Use emacs_tputs() instead of tputs().
1778         * cm.h (emacs_tputs): New macro to set current_tty, and then call
1779         tputs().
1780         (current_tty): New variable, for cmputc().
1781         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
1783         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
1784         (internal_condition_case, internal_condition_case_1)
1785         (internal_condition_case_2): Don't abort when x_catching_errors.
1787         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
1788         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
1789         prevent crashes caused by bogus longjmps in read_char.
1791         * keymap.h (Fset_keymap_parent): Add EXFUN.
1793         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1794         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1795         Remove redundant definition.
1797         * macfns.c (x_set_mouse_color, x_make_gc):
1798         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1800         * w32term.c (x_free_frame_resources):
1801         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1802         (w32_initialize): Use the accessor macros for terminal characteristics.
1804         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
1805         Use the accessor macros for terminal characteristics.
1806         * msdos.c (internal_terminal_init): Use the accessor macros for
1807         terminal characteristics.
1808         (ScreenVisualBell, internal_terminal_init):
1809         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1811         * termopts.h (no_redraw_on_reenter): Declare.
1813         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
1814         (mark_terminals, mark_ttys): Declare.
1815         (Fgarbage_collect): Call them.
1816         (mark_object): Mark buried_buffer_list.
1818         * prefix-args.c: Include stdlib.h for exit.
1820         * syssignal.h: Add comment.
1822         * indent.c: Include stdio.h.
1824         * window.h (Vinitial_window_system): Declare.
1825         (Vwindow_system): Delete declaration.
1827         * fontset.c (Finternal_char_font): Use FRAME_RIF.
1829         * image.c (lookup_image): Don't initialize `c' until the xasserts
1830         have been run.
1832         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
1833         FRAME_FOREGROUND_PIXEL.
1835         * print.c (print_preprocess): Don't lose print_depth levels while
1836         iterating.
1838         * widget.c (update_from_various_frame_slots):
1839         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1841         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
1842         frames.
1843         (window_internal_height): Remove bogus make_number call.
1844         (init_window_once): Call make_terminal_frame with two zero parameters.
1846         * fileio.c (Fread_file_name): Update comment.
1848         * callint.c (Fcall_interactively):
1849         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
1850         Make sure it is correctly unwound.
1852         * xsmfns.c (x_session_close): New function.
1854         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
1855         Delete declarations.
1857         * xterm.h: Remove declaration for x_fully_uncatch_errors.
1858         (x_output): Remove background_pixel and foreground_pixel fields.
1859         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
1860         (x_delete_device):
1861         (x_session_close): Declare.
1863         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
1864         (read_filtered_event): Call `read_char' with a local
1865         `wrong_kboard_jmpbuf'.
1867         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
1868         Don't call single_kboard_state.  Use FRAME_RIF.
1870         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
1871         systems.
1873         * lisp.h (set_process_environment): Rename to `set_global_environment'.
1874         (Fframe_with_environment, Fset_input_meta_mode)
1875         (Fset_quit_char): EXFUN.
1876         (x_create_device, tty_output, terminal, tty_display_info): Declare.
1877         (init_sys_modes, reset_sys_modes): Update prototypes.
1878         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
1880         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
1881         Vlocal_key_translation_map, and Vkeyboard_translate_table.
1882         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
1883         Delete declarations.
1884         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
1885         (temporarily_switch_to_single_kboard, tty_read_avail_input):
1886         New declarations.
1888         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
1889         already does that during init_display().  Call syms_of_keymap
1890         before syms_of_keyboard.  Call `syms_of_terminal'.
1891         Call set_initial_environment, not set_process_environment.
1892         (shut_down_emacs): Call reset_all_sys_modes() instead of
1893         reset_sys_modes().
1895         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
1896         (internal_resolve_face_name, resolve_face_name_error): New functions.
1897         (resolve_face_name): Protect against loops and errors thrown by Fget.
1898         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
1899         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
1901         * scroll.c: Replace CURTTY() with local variables throughout the
1902         file (where applicable).
1903         (calculate_scrolling, calculate_direct_scrolling)
1904         (scrolling_1, scroll_cost): Use the accessor macros for terminal
1905         characteristics.
1907         * keymap.c (Vfunction_key_map): Remove.
1908         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
1909         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
1910         (Vkey_translation_map): Remove.
1911         (syms_of_keymap): Remove DEFVAR for key-translation-map.
1912         (Fdescribe_buffer_bindings):
1913         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
1914         Update for terminal-local key-translation-map.
1916         * Makefile.in (callproc.o): Update dependencies.
1917         (lisp, shortlisp): Add termdev.elc.
1918         (obj): Add terminal.o.
1919         (terminal.o): Add dependencies.
1920         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
1921         (data.o, fns.o): Add termhooks.h dependency.
1922         (SOME_MACHINE_LISP): Add dnd.elc.
1923         (minibuf.o): Fix typo.
1924         Update dependencies.
1926         * data.c (do_symval_forwarding, store_symval_forwarding)
1927         (find_symbol_value): Use the selected frame's keyboard, not
1928         current_kboard.
1930         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
1931         Vwindow_system.
1933         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
1934         Fmenu_bar_open.
1935         (syms_of_xmenu): Update defsubr.
1936         (mouse_position_for_popup, Fx_popup_menu)
1937         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
1938         (set_frame_menubar, free_frame_menubar)
1939         (create_and_show_popup_menu, xmenu_show, )
1940         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
1941         an X frame.
1943         * xselect.c (x_own_selection): Abort if not an X frame.
1944         (some_frame_on_display): Check if it is an X frame.
1945         (x_handle_selection_clear): Deal with MULTI_KBOARD.
1947         * coding.c: Include frame.h and termhooks.h.
1948         (terminal_coding, keyboard_coding): Delete.
1949         (Fset_terminal_coding_system_internal):
1950         (Fset_keyboard_coding_system_internal):
1951         (Fkeyboard_coding_system):
1952         (Fterminal_coding_system): Add a terminal parameter.
1953         Get terminal_coding from the terminal.
1954         (init_coding_once): Don't call setup_coding_system here.
1956         * dispextern.h (set_scroll_region, turn_off_insert)
1957         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
1958         (tty_clear_end_of_line, tty_setup_colors)
1959         (delete_tty, updating_frame)
1960         (produce_special_glyphs, produce_glyphs, write_glyphs)
1961         (insert_glyphs): Remove.
1962         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
1963         (tty_turn_off_highlight, get_tty_size): Add declaration.
1964         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
1966         * frame.h (enum output_method): Add output_initial.
1967         (struct x_output): Delete.
1968         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1969         Access foreground_pixel and background_pixel directly from the frame.
1970         (tty_display): Delete.
1971         (struct frame): Add buried_buffer_list, foreground_pixel,
1972         background_pixel and terminal.  Delete kboard
1973         (union output_data): Add tty.
1974         (FRAME_KBOARD): Get the kboard from the terminal.
1975         (FRAME_INITIAL_P): New macro.
1976         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
1977         (Qterm_environment_variable, Qdisplay_environment_variable)
1978         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
1979         New declarations.
1981         * termchar.h (tty_output, tty_display_info): New structures.
1982         (tty_list): Declare.
1983         (FRAME_TTY, CURTTY): New macros.
1984         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
1985         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
1986         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
1987         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
1989         * callproc.c: Include frame.h and termhooks.h, for terminal
1990         parameters.
1991         (add_env): New function.
1992         (child_setup): Use it.
1993         (child_setup, getenv_internal): Handle the new Vprocess_environment.
1994         (getenv_internal): Fix get_terminal_param call.
1995         (Fgetenv_internal, egetenv): Update doc.
1996         (syms_of_callproc): Initialize Vprocess_environment to nil.
1997         Register and initialize them.  Remove obsolete defvars.  Update doc
1998         strings.
1999         (child_setup): Handle Vlocal_environment_variables.
2000         (getenv_internal): Add terminal parameter.
2001         Handle Vlocal_environment_variables.
2002         (Fgetenv_internal): Add terminal parameter.
2003         (child_setup, getenv_internal, Fgetenv_internal): Store the local
2004         environment in a frame (not terminal) parameter.  Update doc strings.
2005         (set_initial_environment): Rename from set_global_environment.
2006         Store Emacs environment in initial frame parameter.
2008         * xdisp.c (redisplay_internal): Update references to
2009         `previous_terminal_frame'.
2010         (display_mode_line, Fformat_mode_line): Replace calls to
2011         `push_frame_kboard' with `push_kboard'.
2012         (get_glyph_string_clip_rects): Add extra parentheses and
2013         braces to prevent compiler warnings.
2014         (calc_pixel_width_or_height): Add xassert to check that the
2015         frame is alive.  Don't call `lookup_image' on a termcap frame.
2016         (message2_nolog, message3_nolog, redisplay_internal)
2017         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
2018         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
2019         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
2020         (Fx_display_pixel_width, Fx_display_pixel_height)
2021         (Fx_display_planes, Fx_display_color_cells)
2022         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
2023         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
2024         (Fx_display_backing_store, Fx_display_visual_class)
2025         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
2026         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
2028         * xfns.c (x_set_foreground_color x_set_background_color)
2029         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
2030         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
2031         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
2032         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
2033         terminal that is being deleted.
2034         (Fx_create_frame): Use `store_frame_param' to set `window-system'
2035         frame parameter, and make sure it overrides any user-supplied setting.
2036         (Fx_close_connection, Fx_synchronize): Unify argument names with
2037         the rest of the DEFUNs.
2039         * dispnew.c (Fsend_string_to_terminal): Update call to
2040         `get_tty_terminal'.
2041         (Fredraw_frame, Fsend_string_to_terminal)
2042         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
2043         FRAME_TERMCAP_P and FRAME_TTY.
2044         (window_change_signal): Don't believe width/height values that are
2045         impossibly small.
2046         (Vinitial_window_system): Rename from Vwindow_system.
2047         (termscript, Wcm, rif): Delete.
2049         * termhooks.h (struct terminal): New struct containing the
2050         previously global text display hooks and new members NAME,
2051         DELETED and PARAM_ALIST.
2052         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
2053         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
2054         (FRAME_RIF): New macros.
2055         (get_terminal_param, get_device): New declarations.
2056         (termscript): Delete declaration.
2058         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
2059         (XTflash, x_free_frame_resources, x_scroll_bar_create)
2060         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
2061         FRAME_FOREGROUND_PIXEL.
2062         (x_fully_uncatch_errors): Disable definition.
2063         (x_scroll_bar_expose): Fix reference to foreground pixel.
2064         (XTread_socket): Disable loop on all X displays.
2065         (x_delete_terminal): Don't set terminal->deleted and let
2066         delete_terminal delete the frames on the terminal.
2067         (x_delete_display): Doc update to reflect changes in
2068         delete_terminal.
2069         (x_display_info) <terminal>: Move member earlier in the struct.
2070         (deleting_tty): Remove old variable.
2071         (Fsuspend_tty): Call clear_tty_hooks.
2072         (Fresume_tty, init_tty): Call set_tty_hooks.
2073         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
2074         errors on X frames.
2075         (x_catch_errors_unwind): Abort if x_error_message is NULL.
2076         (handle_one_xevent): Initialize `f' to NULL.
2077         (x_delete_terminal, x_create_terminal): New functions.
2078         (XTset_terminal_modes, XTreset_terminal_modes)
2079         (XTread_socket, x_connection_closed, x_term_init)
2080         (x_term_init, x_delete_display): Add terminal parameter.
2081         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
2082         X connections.
2084         * frame.c (Fframep): Deal with output_initial.
2085         (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
2086         (Qtty_type, Qwindow_system, Qenvironment)
2087         (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
2088         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
2089         (make_terminal_frame): Don't create frames on a terminal that is
2090         being deleted.
2091         (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
2092         FRAME_FOREGROUND_PIXEL.
2093         (store_frame_param): Check for found_for_frame before calling XFRAME.
2094         (Fmake_terminal_frame): Handle NULL tty names correctly.
2095         (syms_of_frame): Enhance doc string of `default-frame-alist'.
2096         (Fdelete_frame): Remove unused variable `count'.
2097         (Qenvironment): New variable.
2098         (Fdelete_frame): Don't allow other frames to refer to a deleted
2099         frame in their 'environment parameter.
2100         (Fframe_with_environment): New function.
2101         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
2102         (get_future_frame_param): New function.
2103         (Fmake_terminal_frame): Use it.
2104         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
2106         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
2107         * sysdep.c (reset_sys_modes): Update for renames.
2109         * keyboard.c (tty_read_avail_input): New function.
2110         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
2111         (syms_of_keyboard): Defsubr them.
2112         (Fset_input_meta_mode, Fset_quit_char): New functions.
2113         (Fset_input_mode): Split to above functions.
2115         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
2116         parameter.  Use it in call to `read_char'.
2117         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
2118         Set wrong_kboard_jmpbuf correctly in recursive calls.
2119         Use current_kboard to access Vkeyboard_translate_table.
2120         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
2121         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
2122         Update longjmp invocations.  Remember the original current_kboard,
2123         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
2124         changes it.  Comment out unnecessary calls to
2125         `record_single_kboard_state' and `any_kboard_state'.
2126         Update recursive calls.
2127         (wrong_kboard_jmpbuf): Remove global variable.
2128         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
2129         Handle deleted interrupted_kboards correctly; that is a legal
2130         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
2131         and read_char calls.  Abort if interrupted_kboard died in read_char.
2132         (any_kboard_state, single_kboard_state)
2133         (push_frame_kboard): Remove function.
2134         (pop_kboard): Switch out of single_kboard mode if the kboard has
2135         been deleted.  Remove unused variable.  Help debugging by not
2136         changing current_kboard unnecessarily.  Set current_kboard to the
2137         kboard of the selected frame when the stored kboard object has
2138         been deleted before pop_kboard.
2139         (temporarily_switch_to_single_kboard): Change first parameter to a
2140         frame pointer.  Throw an error when caller wants to change kboards
2141         while in single_kboard mode.  Don't push_kboard if we weren't in
2142         single kboard state.  Don't pop_kboard if we popped into any
2143         kboard state.
2144         (restore_kboard_configuration): Abort if pop_kboard changed the
2145         kboard in single_kboard mode.  Call pop_kboard only after setting
2146         up single_kboard mode.
2147         (Frecursive_edit): Switch to single_kboard mode only in nested
2148         command loops.
2149         (cmd_error, command_loop, command_loop_1, timer_check):
2150         Comment out unnecessary call to `any_kboard_state' and
2151         `record_single_kboard_state'.
2152         (delete_kboard): Exit single_kboard mode if we have just deleted
2153         that kboard.  Use FRAME_KBOARD.
2154         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
2155         `fatal_error_signal'.
2156         (record_single_kboard_state): Don't push_kboard if we weren't in
2157         single kboard state.  Don't pop_kboard if we popped into any
2158         kboard state.
2159         (push_frame_kboard): Rename to push_kboard.
2160         (kbd_buffer_get_event): Use FRAME_TERMINAL.
2161         (read_avail_input): Read input from all terminals.
2162         (mark_kboards): Also mark Vkeyboard_translate_table.
2163         (kbd_buffer_store_event_hold): Simplify condition.
2164         (read_key_sequence): Reinitialize fkey and keytran at each replay.
2165         (Vkeyboard_translate_table): Move to struct kboard.
2166         (init_kboard): Initialize Vkeyboard_translate_table.
2167         (syms_of_keyboard): Use DEFVAR_KBOARD to define
2168         Vkeyboard_translate_table.  Update doc strings.  Update docs of
2169         local-function-key-map and function-key-map.
2171         * terminal.c: New file.
2173         * term.c: Include errno.h.
2174         (Vring_bell_function, device_list, initial_device)
2175         (next_device_id, ring_bell, update_begin, update_end)
2176         (set_terminal_window, cursor_to, raw_cursor_to)
2177         (clear_to_end, clear_frame, clear_end_of_line)
2178         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
2179         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
2180         (syms_of_term): Move their initialization to terminal.c.
2181         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
2182         (Ftty_display_color_cells)
2183         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
2184         (clear_tty_hooks, set_tty_hooks)
2185         (init_tty, maybe_fatal): New functions.
2186         (Ftty_type): Return nil if terminal is not on a tty instead of
2187         throwing an error.  Doc update.
2188         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
2189         Doc update.  Initialize new subrs and variables.
2190         (delete_tty): Use terminal->deleted.
2191         (tty_set_terminal_modes): Rename from set_terminal_modes.
2192         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
2193         (set_scroll_region): Rename to `tty_set_scroll_region'.
2194         (turn_on_insert): Rename to `tty_turn_on_insert'.
2195         (turn_off_insert): Rename to `tty_turn_off_insert'.
2196         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
2197         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
2198         (toggle_highligh): Rename to `tty_toggle_highlight'.
2199         (background_highlight): Rename to `tty_background_highlight'.
2200         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
2201         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
2202         (tty_set_scroll_region, tty_background_highlight)
2203         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
2204         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
2205         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
2206         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
2207         Add static modifier.
2208         (tty_reset_terminal_modes, tty_set_terminal_window)
2209         (tty_set_scroll_region, tty_background_highlight)
2210         (tty_highlight_if_desired, tty_cursor_to)
2211         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
2212         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
2213         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
2214         renames.
2216 2007-08-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2218         * keyboard.c: Qrtl is new.
2219         (parse_tool_bar_item): Handle :rtl keyword.
2220         (syms_of_keyboard): Intern :rtl keyword.
2222         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
2224         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
2225         so no Lisp code is executed.
2226         (file_for_image, find_rtl_image): New functions.
2227         (xg_get_image_for_pixmap): Use file_for_image
2228         (update_frame_tool_bar): If direction is RTL, use RTL image if
2229         defined.  Use Gtk stock images if defined.
2231 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2233         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
2234         for nonexistent or zero-width glyph in composition glyph.
2236 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
2238         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
2240         * xdisp.c (Finvisible_p): New function.
2241         (syms_of_xdisp): defsubr it.
2243 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
2245         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
2246         Doc fixes.
2248 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2250         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
2252 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
2254         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
2255         whether decoding has modified buffer contents.
2257 2007-08-24  Jason Rumney  <jasonr@gnu.org>
2259         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
2260         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
2261         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
2262         (init_svg_functions) [HAVE_NTGUI]: New function.
2263         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
2264         (svg_load_image): Use them.
2265         (svg_load_image) [HAVE_NTGUI]: Implement background.
2267 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2269         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
2270         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
2271         (LIBX): Remove @RSVG_LIBS@.
2272         (LIBES): Add $(RSVG_LIBS).
2274         * image.c (svg_load_image): Blend with specified background if exists.
2275         Use IMAGE_BACKGROUND.  Add Mac OS Support.
2277         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
2278         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
2279         Remove macros.
2280         [MAC_OSX] (socket_callback): Do nothing.
2281         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
2282         ReceiveNextEvent.
2283         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
2284         socket_callback.
2285         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
2287 2007-08-22  Glenn Morris  <rgm@gnu.org>
2289         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2291 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
2293         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
2295         * image.c: Add support for SVG images.  Some additional comments
2296         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
2297         (svg_image_p): New function to test for SVG image.
2298         (svg_load): New function to load SVG image.
2299         (svg_load_image): New function, helper for svg_load.
2300         (Qsvg): New Lisp_object.
2301         (svg_keyword_index): New enum.
2302         (svg_format): New static `image_keyword' struct.
2303         (svg_type): New static `image_type' struct.
2304         (librsvg/rsvg.h): Include it.
2306 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
2308         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
2310 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
2312         * lread.c (Qold_style_backquotes): New var.
2313         (syms_of_lread): Init and staticpro it.
2314         (load_warn_old_style_backquotes): New fun.
2315         (Fload): Use them to warn about old style backquotes.
2316         (end_of_file_error, Fload): Remove unused vars.
2318         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
2320         * lread.c (Vold_style_backquotes): New var.
2321         (syms_of_lread): Init and export it to Elisp.
2322         (read1): Set it when we find an old-style (back)quote.
2324 2007-08-22  Jason Rumney  <jasonr@gnu.org>
2326         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
2328 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
2330         * puresize.h (BASE_PURESIZE): Increase to 1140000.
2332 2007-08-19  Richard Stallman  <rms@gnu.org>
2334         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
2336 2007-08-19  Andreas Schwab  <schwab@suse.de>
2338         * alloc.c (pure): Round PURESIZE up.
2340 2007-08-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2342         * xterm.c (handle_one_xevent): Remove check that mouse click is in
2343         active frame.
2345 2007-08-16  Richard Stallman  <rms@gnu.org>
2347         * eval.c (Fcommandp): Add parens to clarify.
2349         * minibuf.c (Fall_completions): Use enum for type of table.
2351         * emacs.c (USAGE2): Improve text.
2353 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
2355         * term.c (tty_default_color_capabilities): Declare static
2356         variables in file scope, to avoid HPUX compiler problem.
2358 2007-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2360         * gtkutil.c (update_frame_tool_bar): Use -1 as index
2361         to gtk_toolbar_insert.
2363 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2365         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
2367         * insdel.c (reset_var_on_error): New fun.
2368         (signal_before_change, signal_after_change):
2369         Use it to reset (after|before)-change-functions to nil in case of error.
2370         Bind inhibit-modification-hooks to t.
2371         Don't bind (after|before)-change-functions to nil while they run.
2373 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2375         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
2376         filling pixmap with stippled background.
2378 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2380         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
2381         Don't use invisible frame as parent window for repositioning.
2383 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2385         * print.c (new_backquote_output): Rename from old_backquote_output.
2386         (print): Inverse its logic (according to its name) so as to match the
2387         behavior of new_backquote_flag in lread.c.
2389 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2391         * gmalloc.c (posix_memalign): New function.
2393         * macterm.c (frame_highlight, frame_unhighlight): Don't call
2394         ActivateControl/DeactivateControl here.
2395         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
2396         frame-notice-user-settings is non-nil.
2397         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
2398         for kEventParamFMFontStyle.
2399         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
2400         mac_pass_command_to_system and mac_pass_control_to_system here.
2401         (XTread_socket): Call ActivateControl/DeactivateControl here.
2402         (XTread_socket) [TARGET_API_MAC_CARBON]:
2403         Check mac_pass_command_to_system and mac_pass_control_to_system here.
2404         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
2405         for window repositioning.
2407 2007-08-08  Glenn Morris  <rgm@gnu.org>
2409         * Replace `iff' in doc-strings and comments.
2411 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
2413         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
2415 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
2417         * fileio.c (Finsert_file_contents): Run format-decode and
2418         after_insert_file_functions on entire buffer when REPLACE is
2419         non-nil and inhibit modification_hooks and point_motion_hooks.
2420         For consistency, run after_insert_file_functions iff something
2421         got inserted.  Move signal_after_change and update_compositions
2422         after code running after_insert_file_functions.  Make sure that
2423         undo_list doesn't record intermediate steps of the decoding process.
2425 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2427         * emacs.c (main)
2428         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
2429         Call malloc_enable_thread on interactive startup.
2431         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
2432         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
2433         [USE_PTHREAD]: Conditionalize with it.
2434         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
2435         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
2436         New functions.
2438 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
2440         * xdisp.c (redisplay_window): When restoring original buffer
2441         position, make sure it is still valid.
2443         * image.c (png_load): Ignore png-supplied background color.
2445 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2447         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
2448         Use kCFAbsoluteTimeIntervalSince1970.
2450         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
2451         New variable.
2452         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
2453         event loop should be quit.
2454         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
2455         Quit dialog event loop if quit_dialog_event_loop is set.
2457         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
2458         (Selection): New typedef.  Use instead of ScrapRef.
2459         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
2460         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
2461         (mac_clear_selection): Rename from clear_scrap.
2462         (get_flavor_type_from_symbol): New argument SEL and subsume function of
2463         scrap_has_target_type.  All uses changed.
2464         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2465         (mac_selection_has_target_p): New functions.
2466         (mac_put_selection_value): Rename from put_scrap_string.
2467         (mac_get_selection_value): Rename from get_scrap_string.
2468         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
2469         (put_scrap_private_timestamp, scrap_has_target_type)
2470         (get_scrap_private_timestamp): Remove functions.
2471         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
2472         (x_own_selection, x_get_local_selection):
2473         Use mac_valid_selection_value_p.
2474         (x_own_selection): Don't use put_scrap_private_timestamp.
2475         Record OWNERSHIP-INFO into Vselection_alist instead.
2476         (x_get_local_selection): Don't check type if request is local.
2477         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
2478         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
2480 2007-08-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2482         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
2483         add comment explaining why.
2485 2007-08-03  Richard Stallman  <rms@gnu.org>
2487         * fileio.c (Fvisited_file_modtime): Use make_time.
2489 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
2491         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
2492         build.
2494 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
2496         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
2498 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
2500         * puresize.h (BASE_PURESIZE): Increase to 1130000.
2502 2007-07-30  Richard Stallman  <rms@gnu.org>
2504         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
2506 2007-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2508         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
2510 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
2512         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
2513         remote default-directory.
2515         * buffer.c (mode-line-format): Update doc string.
2517 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2519         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
2520         scroll bar gap.
2521         (x_scroll_bar_create): Set bar->fringe_extended_p.
2522         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
2523         on frame edge.  Check fringe background extension.  Don't clear
2524         extended fringe background area.
2526         * w32term.h (struct scroll_bar): New member fringe_extended_p.
2527         (w32_fill_area): Enclose multiple statements with do ... while (0).
2529         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
2530         Extend fringe background to scroll bar gap.
2531         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2532         Set bar->fringe_extended_p.
2533         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2534         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
2535         background extension.  Don't clear extended fringe background area.
2537         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2538         New member fringe_extended_p.
2540 2007-07-25  Glenn Morris  <rgm@gnu.org>
2542         * Relicense all FSF files to GPLv3 or later.
2544         * COPYING: Switch to GPLv3.
2546 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
2548         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
2550         * data.c (Finteractive_form): Check for the presence of an
2551         `interactive-form' symbol property more thoroughly.
2553         * data.c (Finteractive_form): Use an `interactive-form' property if
2554         present, analogous to the function-documentation property.
2556 2007-07-24  Jason Rumney  <jasonr@gnu.org>
2558         * w32fns.c (x_real_positions): Get real position from OS instead of
2559         calculating it.
2561 2007-07-23  Jason Rumney  <jasonr@gnu.org>
2563         * filelock.c (current_lock_owner): Allow for @ sign in username.
2565 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
2567         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
2568         remote default-directory.
2570         * buffer.c (mode-line-format): Describe above case in doc string.
2572 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
2574         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
2575         Define if not defined.
2577 2007-07-18  Jason Rumney  <jasonr@gnu.org>
2579         * w32proc.c (w32_executable_type): Handle 64 bit executables.
2581 2007-07-18  Richard Stallman  <rms@gnu.org>
2583         * data.c (Fsetq_default): Doc fix.
2585         * eval.c (Fsetq): Doc fix.
2587 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
2589         * coding.c (Ffind_operation_coding_system):
2590         * eval.c (For, Fand): Doc fixes.
2591         Reported by Johan Bockg\e,Ae\e(Brd.
2593 2007-07-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2595         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
2597         * xterm.h: Declare x_ewmh_activate_frame.
2599         * xterm.c (x_ewmh_activate_frame): New function.
2600         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
2602 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
2604         * window.c (Fdisplay_buffer): If largest or LRU window is the
2605         only window, split it even if it is not eligible for splitting.
2606         This restores the original behavior broken by the 2007-07-15
2607         change.
2609 2007-07-17  Glenn Morris  <rgm@gnu.org>
2611         * abbrev.c (abbrev_check_chars): New function.
2612         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2613         Call abbrev_check_chars to check abbrev characters are word
2614         constituents.  Doc fix.
2616 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
2618         * process.c (Fstart_process, Fmake_network_process)
2619         (read_process_output): Fix up last changes.
2621 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
2623         * makefile.w32-in (clean): Don't delete *~.
2625 2007-07-16  Andreas Schwab  <schwab@suse.de>
2627         * window.c (Fdisplay_buffer): Use NILP.
2628         (Fset_window_scroll_bars): Likewise.
2630 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
2632         * window.c (window_min_size_2): New function.
2633         (window_min_size_1, size_window, Fdisplay_buffer)
2634         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
2635         windows without mode- or header-lines when window-min-height is
2636         too small.
2637         (size_window): Reset nodelete_p after testing it, following an
2638         earlier note by Kim F. Storm.
2639         (display_buffer): Do not set split_height_threshold to twice the
2640         value of window_min_height to avoid changing the value of a
2641         customizable variable.  Rather explicitly check whether the
2642         height of the window that shall be splitted is at least as large
2643         as split_height_threshold.
2644         (Fwindow_full_width_p): New defun.
2645         (syms_of_window): Defsubr it.
2647         * window.h: Add EXFUN for Fwindow_full_width_p.
2649 2007-07-14  Jason Rumney  <jasonr@gnu.org>
2651         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
2653 2007-07-14  Richard Stallman  <rms@gnu.org>
2655         * eval.c (maybe_call_debugger): New function.
2656         (find_handler_clause): Use maybe_call_debugger.
2657         Call it when the handler says `debug'.
2658         Eliminate DEBUGGER_VALUE_PTR.
2659         (Fsignal): Eliminate debugger_value.
2660         (Qdebug): New variable.
2661         (syms_of_eval): Initialize it.
2663 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
2665         * eval.c (Fprogn):
2666         * keyboard.c (Ftrack_mouse):
2667         * print.c (Fwith_output_to_temp_buffer):
2668         * window.c (Fsave_window_excursion): Doc fix.
2670 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2672         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
2674 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2676         * process.h (struct Lisp_Process): Turn slots infd, outfd,
2677         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
2678         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
2679         read_output_delay, and read_output_skip from Lisp_Objects to ints.
2680         Remove unused encoding_carryover.
2681         * process.c: Adjust all functions accordingly.
2683 2007-07-12  Richard Stallman  <rms@gnu.org>
2685         * term.c: Include unistd.h only if HAVE_UNISTD_H.
2687 2007-07-11  Jason Rumney  <jasonr@gnu.org>
2689         * makefile.w32-in (LIBS): Include OLE32.
2691         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
2692         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
2694 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2696         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
2697         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
2698         from a Lisp_Object into a bare pointer.
2699         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
2700         Adjust the code correspondingly.
2702         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
2704         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
2705         (term_show_mouse_face): Remove unused var `j'.
2706         (handle_one_term_event): Remove unused vars `i' and `j'.
2707         Don't cast return value of ttyname since it's not necessary.
2709 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2711         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
2712         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
2714         * fns.c (map_char_table): Use an array of int for `indices' rather than
2715         an array of Lisp_Objects (which are only ever integers anyway).
2716         (Fmap_char_table): Update caller.
2717         * lisp.h: Update prototype.
2718         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
2719         * fontset.c (Ffontset_info):
2720         * casetab.c (set_case_table): Update callers.
2722         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
2724         * keymap.c (struct accessible_keymaps_data)
2725         (struct where_is_internal_data): New structures.
2726         (accessible_keymaps_1, where_is_internal_1): Use them to change
2727         interface to adhere to the one used by map_keymap.
2728         (Faccessible_keymaps, where_is_internal): Use map_keymap.
2729         (accessible_keymaps_char_table, where_is_internal_2): Remove.
2731         * keymap.h (map_keymap_function_t): More informative prototype.
2733 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
2735         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
2736         (looking_at_1): Don't change search_regs and last_thing_searched
2737         if `inhibit-changing-match-data' is non-nil.
2738         (string_match_1, search_buffer, set_search_regs): Likewise.
2739         (syms_of_search): Add Lisp level definition for
2740         `inhibit-changing-match-data' and set it to nil.
2741         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
2742         start and end of the match, instead of using values in search_regs.
2744 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2746         * minibuf.c (Fcompleting_read): New value `confirm-only'
2747         for `require-match'.
2749 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2751         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
2752         part of the 2007-06-27 change to syms_of_fileio.
2754 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2756         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2757         Check WINDOWP before using XWINDOW.  Consolidate return statements.
2759 2007-06-27  Richard Stallman  <rms@gnu.org>
2761         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
2763 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
2765         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
2767 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2769         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
2770         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
2771         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
2772         (_free_internal, memalign): Use them.
2773         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
2774         Initialize to PTHREAD_MUTEX_INITIALIZER.
2775         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
2776         (morecore_nolock): Rename from morecore.  All uses changed.
2777         Use only nolock versions of internal allocation functions.
2778         (_malloc_internal_nolock, _realloc_internal_nolock)
2779         (_free_internal_nolock): New functions created from
2780         _malloc_internal, _realloc_internal, and _free_internal.
2781         (_malloc_internal, _realloc_internal, _free_internal): Use them.
2782         Copy hook value to automatic variable before its use.
2783         (memalign): Copy hook value to automatic variable before its use.
2785 2007-06-26  Kenichi Handa  <handa@m17n.org>
2787         * coding.c (Ffind_operation_coding_system): Docstring improved.
2788         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
2790 2007-06-25  David Kastrup  <dak@gnu.org>
2792         * keymap.c (Fcurrent_active_maps): Add `position' argument.
2793         (Fwhere_is_internal): Adjust call to `current-active-maps' to
2794         cater for additional parameter.
2796         * keymap.h: Adjust number of parameters to `current-active-maps'.
2798         * doc.c (Fsubstitute_command_keys): Adjust call of
2799         `current-active-maps'.
2801 2007-06-25  David Kastrup  <dak@gnu.org>
2803         * callint.c (Fcall_interactively): Make the parsing of interactive
2804         specs somewhat more readable.
2806 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2808         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
2809         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
2810         if extended background has already been filled.
2812 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2814         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
2815         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
2817         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
2818         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
2819         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
2820         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
2821         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
2822         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
2823         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
2824         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
2825         Run timers during dialog popup.
2826         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
2828 2007-06-21  Jason Rumney  <jasonr@gnu.org>
2830         * image.c (convert_mono_to_color_image): Swap fore and background.
2832 2007-06-20  Jason Rumney  <jasonr@gnu.org>
2834         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
2835         (w32_free_bdf_font): Unmap memory not handle.
2837 2007-06-20  Sam Steingold  <sds@gnu.org>
2839         * gmalloc.c (__morecore): Fix the declaration to comply with the
2840         definition.
2842 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
2844         * w32term.c (w32_delete_display): Remove leftover declaration.
2845         (w32_define_cursor, w32_initialize): Make static.
2847         * w32.c (_wsa_errlist): Fix typo in error message.
2848         (init_environment): Ignore any environment variable from the
2849         registry having a null value.
2851 2007-06-20  Glenn Morris  <rgm@gnu.org>
2853         * Makefile.in (LIBGIF): Default to -lgif.
2855 2007-06-17  Jason Rumney  <jasonr@gnu.org>
2857         * w32menu.c (add_menu_item): Don't use multibyte string functions on
2858         unicode strings.
2860 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
2862         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
2863         Fix typo in docstring.
2865 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
2867         * w32menu.c (add_menu_item): Escape `&' characters in menu items
2868         and their keybindings.
2870 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
2872         * composite.c (update_compositions): Fix last fix.
2874 2007-06-14  Jason Rumney  <jasonr@gnu.org>
2876         * w32.c (get_process_times_fn): New function pointer.
2877         (globals_of_w32): Intialize it if present in kernel32.dll.
2878         (w32_get_internal_run_time): New function.
2880         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
2882 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
2884         * composite.c (update_compositions): Check the validness of
2885         compositions.
2887 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2889         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
2890         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
2892         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
2893         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
2895         * macgui.h (USE_MAC_TOOLBAR): New define.
2897         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2898         Return immediately unless popup is activated.
2900         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
2901         background to scroll bar gap.
2902         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
2903         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
2904         scroll bars on frame edge.  Check fringe background extension.
2905         Don't clear extended fringe background area.
2906         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
2907         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
2908         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
2909         [USE_MAC_TOOLBAR]: New macros.
2910         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
2911         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
2912         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
2913         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
2914         [USE_MAC_TOOLBAR]: New functions.
2915         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
2916         manually if previous repositioning has failed.
2917         (mac_handle_keyboard_event): Use precomputed event kind.
2918         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
2919         as tool bar item click.  Handle mouse movement over tool bar items.
2921         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
2922         toolbar_win_gravity.
2923         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
2924         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
2925         Add externs.
2927         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
2928         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
2930 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
2932         * image.c (search_image_cache): Remove unused variable.
2934 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
2936         * xfns.c, xmenu.c: Link to xaw3d if available.
2938 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2940         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
2941         frame_foreground and frame_background.
2943         * image.c (lookup_image): Save frame foreground and background colors.
2944         (search_image_cache): Check if saved and current frame colors match.
2946 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2948         * regex.c (regex_compile): Remove the `regnum' counter.
2949         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
2951 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2953         * term.c: Include intervals.h to declare Fget_text_property.
2955 2007-06-10  Jason Rumney  <jasonr@gnu.org>
2957         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
2959 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
2961         * callint.c (Fcall_interactively):
2962         * editfns.c (Fdelete_and_extract_region):
2963         * fileio.c (Fread_file_name):
2964         * fns.c (Fmapconcat):
2965         * keyboard.c (cmd_error_internal):
2966         * keymap.c (Fkey_description):
2967         * lread.c (openp):
2968         * minibuf.c (read_minibuf):
2969         * search.c (wordify):
2970         * sunfns.c (sel_read):
2971         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
2972         * xfns.c (x_default_scroll_bar_color_parameter):
2973         * xmenu.c (menu_help_callback):
2974         * xselect.c (Fx_get_atom_name):
2975         * xterm.c (x_term_init): Use empty_unibyte_string.
2977 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
2979         * alloc.c (init_strings): Initialize canonical empty strings.
2980         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
2981         canonical empty string when the requested size is 0.
2983         * emacs.c (empty_unibyte_string): Rename from empty_string.
2984         (empty_multibyte_string): New canonical empty string.
2985         (syms_of_emacs): Don't initialize empty_string.
2987         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
2988         string, if appropriate.
2989         (empty_unibyte_string, empty_multibyte_string): New externs.
2990         (empty_string): Remove extern.
2992         * lread.c (syms_of_lread): Use empty_unibyte_string.
2994 2007-06-07  Jason Rumney  <jasonr@gnu.org>
2996         * s/ms-w32.h: Don't define HAVE_TZNAME.
2998         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
3000 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3002         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
3004         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
3005         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
3007         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
3008         Don't call next handler.
3009         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
3010         Remove argument.  Install handler to application.
3011         (set_frame_menubar): Don't change deep_p.
3012         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
3013         FRAME_OUTER_TO_INNER_DIFF_Y.
3014         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
3015         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
3016         [HAVE_DIALOGS]: New macros.
3017         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
3018         Use them.
3019         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
3021         * macselect.c [MAC_OSX] (install_service_handler): Rename from
3022         init_service_handler.  All callers changed.  Return OSStatus value.
3024         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
3025         All callers changed so as not to call SetPortWindowPort.
3026         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
3027         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
3028         mac_draw_string_common.
3029         (mac_draw_image_string_qd): Likewise.
3030         (mac_draw_string_common): Use them.  Add INLINE.
3031         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
3032         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
3033         GetGlobalMouse.
3034         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
3035         and FRAME_OUTER_TO_INNER_DIFF_Y.
3036         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
3037         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
3038         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
3039         repositioning window to mac_handle_window_event.
3040         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
3041         saving window location to mac_handle_window_event
3042         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
3043         (install_menu_target_item_handler): Remove argument in extern.
3044         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
3045         Also accept command events.
3046         (do_keystroke): New function created from XTread_socket.
3047         (init_command_handler): Remove functions.
3048         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
3049         and save window location by kEventWindowShowing and kEventWindowHiding
3050         handlers here.  Don't call next handler for window state change and
3051         focus events.
3052         (mac_handle_application_event, mac_handle_keyboard_event)
3053         [TARGET_API_MAC_CARBON]: New functions.
3054         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
3055         kEventWindowShowing and kEventWindowHiding events.  Move installation
3056         of mouse, font, text input and menu target item handlers to
3057         install_application_handler.
3058         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
3059         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3060         New function.
3061         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3062         Register it.
3063         (XTread_socket) [TARGET_API_MAC_CARBON]:
3064         Consolidate SendEventToEventTarget calls.
3065         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
3066         Move application activation handler to mac_handle_application_event.
3067         Move keyboard handler to mac_handle_keyboard_event.
3068         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
3069         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
3070         init_command_handler.  Call install_application_handler.
3072         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
3073         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
3075 2007-06-07  Glenn Morris  <rgm@gnu.org>
3077         * emacs.c (main): Use `emacs-copyright' in --version output.
3079 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
3081         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
3083 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3085         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
3087         * macgui.h: Replace WindowPtr with WindowRef.
3089         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
3090         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
3091         Replace ControlHandle with ControlRef.
3092         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
3094         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
3095         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
3096         Replace ControlHandle with ControlRef.
3097         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
3098         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
3100         * macterm.h (struct scroll_bar): Rename member control_handle_low
3101         and control_handle_high to control_ref_low and control_ref_high.
3102         All uses changed.
3103         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
3104         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
3105         respectively.  All uses changed.
3106         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
3107         (install_window_handler, remove_window_handler): Replace WindowPtr
3108         with WindowRef in externs.
3110 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
3112         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
3114 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
3116         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
3118         * frame.c (Fmouse_position, Fmouse_pixel_position):
3119         Condition on HAVE_GPM too.
3121         * term.c (term_mouse_highlight): Remove unused variables.
3122         (Fterm_open_connection): Set gpm_zerobased to 1.
3123         (term_mouse_movement, term_mouse_click, handle_one_term_event):
3124         Use zero based co-ordinates.
3125         (handle_one_term_event): Report a drag as mouse movement too.
3127         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
3129 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
3131         * image.c (search_image_cache): New function.  Require background
3132         color match if background color is unspecified in the image spec.
3133         (uncache_image, lookup_image): Use it.
3135 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
3137         * window.c (Fshrink_window): Reflow docstring.
3139 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
3141         * Version 22.1 released.
3143 2007-06-01  Richard Stallman  <rms@gnu.org>
3145         * xfns.c (x_encode_text): Add GCPRO.
3147 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3149         * xfns.c (x_set_name_internal): Save encoded name before
3150         x_encode_text in case string data is relocated.
3152 2007-05-31  Richard Stallman  <rms@gnu.org>
3154         * buffer.c (syms_of_buffer): Doc fix.
3156 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
3158         * sysdep.c (init_sys_modes): Add rather than replace with
3159         O_NONBLOCK.
3161         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
3162         term_mouse_moveto.
3164         * termhooks.h (term_mouse_moveto): New extern.
3166         * term.c (mouse_face_window): Rename...
3167         (Qmouse_face_window): ...to this.
3168         (term_show_mouse_face, term_clear_mouse_face)
3169         (term_mouse_highlight): Use Qmouse_face_window.
3170         (term_mouse_moveto): New function.
3171         (term_mouse_position): Make it work.
3172         (syms_of_term): Uncomment assignment to mouse_position_hook.
3173         Staticpro Qmouse_face_window.
3175 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3177         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
3178         around current_column call.
3180 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
3182         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
3183         * xdisp.c (next_element_from_buffer):
3184         * window.c (delete_window):
3185         * term.c (term_mouse_highlight):
3186         * msdos.c (getdefdir):
3187         * macterm.c (mac_create_bitmap_from_bitmap_data)
3188         (init_font_name_table):
3189         * fns.c (Fsxhash):
3190         * data.c (Fmake_local_variable):
3191         * ccl.c (ccl_driver): Likewise.
3193 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3195         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
3196         Call mac_wakeup_from_rne on window size change.
3198 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
3200         * image.c (uncache_image): Fix typo.
3202 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
3204         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
3206 2007-05-22  Richard Stallman  <rms@gnu.org>
3208         * xterm.c (x_connection_closed): Remove NO_RETURN.
3210 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
3212         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
3214 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
3216         * image.c (uncache_image): New function.
3217         (Fimage_refresh): New function.
3219 2007-05-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3221         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
3223 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
3225         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
3226         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
3228 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
3230         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
3231         conditional on [HAVE_GPM_H].
3233 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3235         * syntax.c (skip_chars): Update syntax-table only after we checked that
3236         the new location is valid.
3238 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3240         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
3241         mac_get_window_bounds.
3243 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
3245         * Makefile.in (LIBGPM): Allow it to be set from configure.
3246         If set then link Emacs with it.
3248         * config.in: Regenerate.
3250         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
3251         New externs.
3253         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
3254         Include gpm.h.
3255         (handle_one_term_event, term_gpm): New externs.
3257         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
3258         and allow it to be interrupted by SIGIO.
3260         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
3261         (wait_reading_process_output): Wait on gpm_fd too.
3262         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
3263         (add_gpm_wait_descriptor_called_flag): New variable.
3264         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
3266         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
3267         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
3268         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
3269         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
3270         (make_lispy_event): Add case GPM_CLICK_EVENT.
3271         (read_avail_input): Handle mouse input.
3273         * term.c (write_glyphs_with_face): New function.
3274         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
3275         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
3276         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
3277         (mouse_face_face_id, term_gpm, pos_x, pos_y)
3278         (last_mouse_x, last_mouse_y): New variables.
3279         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
3280         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
3281         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
3282         (Fterm_close_connection): New functions.
3283         (term_init): Initialise mouse_face_window.
3285 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
3287         * xdisp.c (redisplay_window): If first window line is a
3288         continuation line, recompute the new window start instead of
3289         recentering.
3291 2007-05-18  Glenn Morris  <rgm@gnu.org>
3293         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
3294         Suggested by Alfred M. Szmidt <ams@gnu.org>.
3296 2007-05-17  Glenn Morris  <rgm@gnu.org>
3298         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
3300 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3302         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
3303         dead key repeat and up events.
3305 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
3307         * image.c (pbm_load): Check image size for monochrome pbm.
3309 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
3311         * xterm.c (XTread_socket): Revert last change.
3313 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
3315         * image.c (pbm_load): Correctly check image size for greyscale pbm.
3317         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
3319 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
3321         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
3322         mixup (YAILOM).
3324 2007-05-07  Andreas Schwab  <schwab@suse.de>
3326         * keymap.c (Flookup_key): Fix typo in last change.
3328 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
3330         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
3331         mapping for unibyte strings.
3333 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3335         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
3336         (Fx_popup_dialog) [MAC_OSX]: Likewise.
3338 2007-04-29  Richard Stallman  <rms@gnu.org>
3340         * insdel.c (replace_range): For undo, record insertion first.
3342 2007-04-29  Andreas Schwab  <schwab@suse.de>
3344         * lisp.h (VECSIZE): Use OFFSETOF.
3346 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3348         * xdisp.c (try_window_reusing_current_matrix): Fix number of
3349         disabled lines.
3351 2007-04-28  Richard Stallman  <rms@gnu.org>
3353         * lread.c (read_escape): In a string, \s is always space.
3355 2007-04-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3357         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
3359         * gtkutil.c (xg_update_menubar, create_menus): Create empty
3360         submenu for menu bar items.
3362 See ChangeLog.10 for earlier changes.
3364 ;; Local Variables:
3365 ;; coding: iso-2022-7bit
3366 ;; add-log-time-zone-rule: t
3367 ;; End:
3369     Copyright (C) 2007 Free Software Foundation, Inc.
3371   This file is part of GNU Emacs.
3373   GNU Emacs is free software; you can redistribute it and/or modify
3374   it under the terms of the GNU General Public License as published by
3375   the Free Software Foundation; either version 3, or (at your option)
3376   any later version.
3378   GNU Emacs is distributed in the hope that it will be useful,
3379   but WITHOUT ANY WARRANTY; without even the implied warranty of
3380   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3381   GNU General Public License for more details.
3383   You should have received a copy of the GNU General Public License
3384   along with GNU Emacs; see the file COPYING.  If not, write to the
3385   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
3386   Boston, MA 02110-1301, USA.
3388 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40