1 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
4 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
5 Update call to buffer_slot_type_mismatch.
6 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
7 (buffer_slot_type_mismatch): Update.
8 * buffer.c (buffer_local_types): Remove.
9 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10 (defvar_per_buffer): Set the type in the buffer_objfwd.
12 2007-11-21 Jason Rumney <jasonr@gnu.org>
14 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15 CreateFileMapping returns NULL on failure.
17 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19 * search.c (Fset_match_data): Remove the `evaporate' feature.
20 (unwind_set_match_data): Don't use the `evaporate' feature.
22 2007-11-21 Jason Rumney <jasonr@gnu.org>
24 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
26 * w32console.c (w32con_write_glyphs): Remove unused variables.
28 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
30 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
32 * s/darwin.h (MULTI_KBOARD): Remove.
34 * macfns.c (x_create_tip_frame, Fx_create_frame)
35 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
37 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
39 * buffer.c (Fbuffer_local_value): Remove redundant test.
40 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
41 than in `current-buffer' to match the comment.
42 Do the swap using swap_in_global_binding.
44 * data.c (store_symval_forwarding, set_internal):
45 * eval.c (specbind): Remove dead code.
47 * coding.c (detect_coding, Fupdate_coding_systems_internal):
48 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
49 Since we do not want to see internal Lisp_*fwd objects here.
51 2007-11-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
53 * sysdep.c (init_system_name): Use getaddrinfo if available.
55 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
56 (x_scroll_bar_note_movement): start, end, with, height in struct
57 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
59 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
61 * puresize.h (BASE_PURESIZE): Increase to 1190000.
63 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
65 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
66 This undoes Richard's change of 14-Oct-2002.
68 * alloc.c (allocate_other_vector):
69 * lisp.h (allocate_other_vector): Remove.
71 * window.c (struct save_window_data): Move non-lisp data to the end
72 and make it `int' rather than Lisp_Object.
73 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
74 Done wrap/unwrap integer values.
75 (Fset_window_configuration, compare_window_configurations):
76 Update use of fields to their new types.
78 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
79 Turn integer fields into `int'. Merge x_window_low and x_window_high.
80 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
81 (SET_SCROLL_BAR_X_WINDOW): Remove.
82 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
83 Access the new x_window field directly.
84 * xterm.c (x_scroll_bar_create): Use a pseudovector.
85 Don't wrap/unwrap integers into Lisp_Objects.
86 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
87 (x_scroll_bar_report_motion):
88 Don't wrap/unwrap integers into Lisp_Objects.
89 (x_term_init): Use SDATA.
90 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
91 (x_scroll_bar_set_handle, x_scroll_bar_remove)
92 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
93 (x_scroll_bar_report_motion, x_scroll_bar_clear):
94 * xfns.c (x_set_background_color):
95 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
96 Access the new x_window field directly.
98 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
99 (allocate_pseudovector): Make non-static.
101 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
102 (allocate_pseudovector): Declare.
103 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c
105 2007-11-15 Andreas Schwab <schwab@suse.de>
107 * editfns.c (Fformat): Correctly format EMACS_INT values.
108 Also take precision into account when formatting an integer.
110 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
112 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
114 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
115 (syms_of_keyboard): Defsubr it.
117 * data.c (swap_in_global_binding): Fix longstanding bug where
118 store_symval_forwarding was not called with the right second argument,
119 thus causing objfwd-ing from being dropped.
121 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
123 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
124 (Fx_display_pixel_height, Fx_display_planes)
125 (Fx_display_color_cells, Fx_server_max_request_size)
126 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
127 (Fx_display_visual_class, Fx_display_save_under):
128 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
129 (Fx_display_pixel_height, Fx_display_planes)
130 (Fx_display_color_cells, Fx_server_max_request_size)
131 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
132 (Fx_display_mm_height, Fx_display_mm_width)
133 (Fx_display_backing_store, Fx_display_visual_class)
134 (Fw32_select_font, Fx_display_save_under):
135 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
136 (Fx_display_pixel_height, Fx_display_planes)
137 (Fx_display_color_cells, Fx_server_max_request_size)
138 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
139 (Fx_display_save_under): Fix typos in docstrings.
141 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
143 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
144 corresponding to deleted entries; they are an implementation detail.
145 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
147 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
148 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
149 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
150 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
151 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
152 (Fw32_define_rgb_color, Fw32_load_color_file)
153 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
154 Fix typos in docstrings.
155 (Fx_server_version): Reflow docstring.
156 (Fw32_shell_execute): Doc fixes.
158 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
160 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
161 if w32_parse_hot_key returned nil.
163 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
165 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
167 2007-11-09 Jason Rumney <jasonr@gnu.org>
169 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
171 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
173 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
174 Remove W32_SCROLL_BAR_CLICK_EVENT.
176 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
177 Add MULTIMEDIA_KEY_EVENT.
179 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
180 (lispy_multimedia_keys) [WINDOWSNT]: New array.
181 (make_lispy_event) [WINDOWSNT]: Use it to translate
182 MULTIMEDIA_KEY_EVENT.
184 * w32term.h (WM_APPCOMMAND): Define if not already.
185 (GET_APPCOMMAND_LPARAM): Likewise.
187 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
190 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
191 (syms_of_w32fns): Export and initialize it.
192 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
194 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
196 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
199 * xdisp.c (handle_face_prop): Fix last change.
201 2007-11-09 Richard Stallman <rms@gnu.org>
203 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
204 not just for after-strings and before-strings.
205 Call face_for_overlay_string and pass the overlay to it.
206 (handle_display_prop): Determine whether property came from an overlay.
207 Pass OVERLAY arg to handle_single_display_spec.
208 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
209 (load_overlay_strings): Fill in it->string_overlays.
210 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
212 * xfaces.c (face_for_overlay_string): Function renamed from
213 face_at_buffer_position_no_overlays, and add arg OVERLAY.
215 * dispextern.h (struct it): New elt string_overlays.
216 New elt from_overlay, also in stack.
217 Rearrange a few elements.
218 (face_for_overlay_string): Decl renamed from
219 face_at_buffer_position_no_overlays, and add argument.
221 2007-11-09 Richard Stallman <rms@gnu.org>
223 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
224 to get the base face for an overlay string.
226 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
228 * xfaces.c (face_at_buffer_position_no_overlays): New function.
230 * xdisp.c (handle_stop): Move some code out of loop.
232 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
234 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
235 Fix conversion from Lisp object to ATSUFontID.
237 2007-11-09 Jason Rumney <jasonr@gnu.org>
239 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
241 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
243 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
244 Don't assume regions are aligned to page boundary.
245 (print_load_command_name): Add LC_UUID if defined.
247 2007-11-09 Richard Stallman <rms@gnu.org>
249 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
251 2007-11-07 Jason Rumney <jasonr@gnu.org>
253 * s/windows95.h: Remove.
255 2007-11-06 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
257 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
258 abort with a message on unhandled store_type values.
260 2007-11-01 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
262 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
263 Remove HAVE_X11R5 and HAVE_X11R4.
265 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
267 * Makefile.in: Remove references to sunfns.c and sunfns.o.
269 2007-11-01 Johan Bockg
\e,Ae
\e(Brd <bojohan@gnu.org>
271 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
272 Don't set s->stippled_p here, since it has already been set by
273 x_set_glyph_string_gc from x_draw_glyph_string.
275 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
277 * sunfns.c: Remove file
281 * m/sparc.h: Remove Sun windows code.
283 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
285 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
286 (init_keyboard): Set current_kboard's window-system to nil.
287 (tty_read_avail_input): Typo.
288 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
290 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
297 * Makefile.in: Remove all mentions of X10
299 * dispnew.c (syms_of_display): Don't mention version 10.
301 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
303 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
304 ($(BLD)/abbrev.$(O)): Remove.
306 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
308 Rewrite abbrev.c in Elisp.
309 * image.c (Qcount): Don't declare as extern.
310 (syms_of_image): Initialize and staticpro `Qcount'.
311 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
312 * emacs.c (main): Don't call syms_of_abbrev.
313 * Makefile.in (obj): Remove abbrev.o.
317 2007-10-26 Martin Rudalics <rudalics@gmx.at>
319 * window.c (window_min_size_2): Don't count header-line.
321 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
323 * frame.h (struct frame): Move all bit fields after the first bit
324 field to take advantage of the available space. Group all the
325 chars together to reduce wasted space due to padding.
327 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
329 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
331 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
332 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
333 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
334 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
335 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
336 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
337 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
338 (last_marked, mark_object_loop_halt): Make static.
340 * frame.c (syms_of_frame) <delete-frame-functions>:
341 Fix typo in docstring.
343 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
345 * w32.c (init_environment): Fix tiny memory leak.
346 (w32_get_resource): Remove unused variable `ok'.
348 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
350 Make `window-system' into a keyboard-local variable (rather than
351 frame-local as done originally by multi-tty).
353 * keyboard.h (struct kboard): Add Vwindow_system.
354 * keyboard.c (init_kboard): Set a default for Vwindow_system.
355 (mark_kboards): Mark Vwindow_system.
357 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
358 (init_display): Don't set the obsolete `window-system' frame-param.
360 * xterm.c (x_term_init):
361 * w32term.c (w32_create_terminal):
362 * term.c (init_tty): Set Vwindow_system.
363 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
364 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
366 * xfns.c (Fx_create_frame, x_create_tip_frame):
367 * w32fns.c (Fx_create_frame, x_create_tip_frame):
368 * macfns.c (Fx_create_frame):
369 Don't set the obsolete `window-system' frame-param.
371 * frame.h (Qwindow_system): Remove.
372 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
373 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
375 2007-10-24 Richard Stallman <rms@gnu.org>
377 * frame.c (x_figure_window_size): For fullscreen case,
378 set USPosition | PPosition without clobbering rest of window_prompting.
380 * keyboard.c (Fcurrent_idle_time): Doc fix.
382 * print.c (Fwith_output_to_temp_buffer): Doc fix.
384 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
386 * process.c (unwind_request_sigio): Only define if __ultrix__.
388 * callproc.c (child_setup): Remove spurious *.
390 * lisp.h (Fget_text_property): Declare.
391 (have_menus_p): Declare it here rather than in sys-dep header files.
392 * macterm.h (have_menus_p):
393 * msdos.h (have_menus_p):
394 * xterm.h (have_menus_p): Remove.
396 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
397 (Fmake_variable_frame_local): Just check the variable's const-ness
398 rather than checking nil or t.
400 2007-10-22 Jason Rumney <jasonr@gnu.org>
402 * w32fns.c: Include math.h.
403 (w32_abort): Declaration moved to nt/config.nt.
405 * s/ms-w32.h (HAVE_STDLIB_H): Define.
406 (abort): Redefinition moved to nt/config.nt.
408 * m/windowsnt.h: Remove.
410 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
412 * emacs.c (Fdump_emacs): Fix typo in message.
413 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
414 <installation-directory>: Reflow docstring.
416 2007-10-22 Juri Linkov <juri@jurta.org>
418 * minibuf.c: Allow minibuffer default to be a list of default values.
419 With empty input use the first element of this list as returned default.
421 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
422 (read_minibuf): If defalt is cons, set histstring to its car.
423 (Fread_string): If default_value is cons, set val to its car.
424 (Fread_buffer): If def is cons, use its car.
425 (Fcompleting_read): If defalt is cons, set val to its car.
427 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
429 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
431 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
433 * doc.c (Fdocumentation): Check for advice in all cases.
435 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
437 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
439 2007-10-19 Richard Stallman <rms@gnu.org>
441 * doc.c (Fdocumentation): Check for and handle an advised function.
443 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
445 * process.c (Fset_process_filter): Doc fix.
447 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
449 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
450 which caused key-translation-map to applied repeatedly (thus breaking
453 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
455 * xselect.c (x_own_selection, x_handle_selection_clear)
456 (x_clear_frame_selections):
457 * w32menu.c (list_of_panes, list_of_items):
458 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
459 * textprop.c (validate_plist, interval_has_all_properties)
460 (interval_has_some_properties, interval_has_some_properties_list)
461 (add_properties, text_property_list):
462 * process.c (Fget_buffer_process, list_processes_1, status_notify):
463 * minibuf.c (Fassoc_string):
464 * macselect.c (x_own_selection, x_clear_frame_selections)
465 (Fx_disown_selection_internal):
466 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
467 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
469 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
471 * process.c: Link to libs for calling res_init() if available.
472 (Fmake_network_process): Call res_init() before getaddrinfo or
473 gethostbyname, if possible.
475 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
477 * lread.c (read1): Set pvectype for char_tables.
479 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
480 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
482 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
484 * alloc.c (free_misc): Use XMISCTYPE.
485 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
487 2007-10-17 Glenn Morris <rgm@gnu.org>
489 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
490 (syms_of_minibuf): Add Qcompletion_ignore_case.
491 * dired.c (Qcompletion_ignore_case): Change to external.
492 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
493 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
494 (Fread_file_name): Use it rather than intern'ing.
496 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
497 (Fread_coding_system): Ignore case of user input.
499 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
501 * xdisp.c (handle_display_prop): Ignore display specs after
502 replacing one when string text is being replaced.
503 (handle_single_display_spec): Pretend as if characters with display
504 property haven't been consumed only when buffer text is being replaced.
506 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
508 * xfns.c (Fx_create_frame, Fx_display_list):
509 * window.c (window_fixed_size_p, enlarge_window)
510 (shrink_window_lowest_first):
511 * macterm.c (init_font_name_table):
512 * macfns.c (Fx_create_frame, Fx_display_list):
513 * lread.c (close_load_descs):
514 * keyboard.c (read_char_x_menu_prompt):
515 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
516 * coding.c (code_convert_region_unwind): Test the type of an object
517 rather than just !NILP before extracting data from it.
519 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
521 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
522 (XMISCANY): New macro.
524 (struct Lisp_Misc_Any): New type.
525 (union Lisp_Misc): Use it.
526 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
527 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
528 (find_symbol_value, set_internal, default_value, Fset_default)
529 (Fmake_variable_buffer_local, Fmake_local_variable)
530 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
531 (Flocal_variable_if_set_p, Fvariable_binding_locus):
532 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
533 * alloc.c (allocate_buffer): Set the size and tag.
534 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
536 (die): Follow the GNU convention for error messages.
537 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
538 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
540 (set_buffer_internal_1):
541 * frame.c (store_frame_param):
543 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
545 * doc.c (Fsnarf_documentation): Simplify.
547 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
549 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
550 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
552 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
554 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
556 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
558 * eval.c (do_autoload): Don't save autoloads.
560 * data.c (Ffset): Save autoload of the function being set.
562 2007-10-07 John Paul Wallington <jpw@pobox.com>
564 * xfns.c (x_create_tip_frame): Set the `display-type' frame
565 parameter before setting up faces.
567 2007-10-13 Eli Zaretskii <eliz@gnu.org>
569 * ccl.c (Fregister_code_conversion_map):
570 * keyboard.c (append_tool_bar_item): Reformat last change.
572 * lisp.h (eabs): Rename from `abs'. All callers changed.
574 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
576 * buffer.c (add_overlay_mod_hooklist):
577 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
578 * fontset.c (make_fontset):
579 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
580 (append_tool_bar_item):
581 * macmenu.c (grow_menu_items):
582 * w32menu.c (grow_menu_items):
583 * xmenu.c (grow_menu_items): Use larger_vector.
585 2007-10-13 Eli Zaretskii <eliz@gnu.org>
587 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
588 selected frame'' on MSDOS).
590 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
592 * macfns.c (x_create_tip_frame): Set terminal for frame.
594 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
596 * frame.c (Qenvironment): Remove.
597 (syms_of_frame) <Qenvironment>: Don't initialize.
598 (Fdelete_frame): Don't treat the `environment' param specially.
599 * frame.h (Qenvironment): Don't declare.
600 * callproc.c (set_initial_environment): Don't set unused frame param.
602 * frame.c (Fframe_with_environment): Remove.
603 (syms_of_frame) <Sframe_with_environment>: Don't declare.
605 * lisp.h (Fframe_with_environment): Don't declare.
607 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
609 * indent.c (indent_tabs_mode, last_known_column)
610 (last_known_column_modified): Make static.
611 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
613 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
615 * puresize.h (BASE_PURESIZE): Increase to 1170000.
617 2007-10-09 Richard Stallman <rms@gnu.org>
619 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
620 return HANDLED_RETURN.
622 2007-10-08 Martin Rudalics <rudalics@gmx.at>
624 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
625 when there's an unread command event.
627 * frame.c (focus_follows_mouse): Move here from frame.el to allow
628 window autoselection act appropriately when leaving selected frame.
629 (syms_of_frame): Initialize focus_follows_mouse.
630 * frame.h (focus_follows_mouse): Extern it.
631 * macterm.c (XTread_socket): When focus_follows_mouse is nil
632 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
633 * msdos.c (dos_rawgetc): Likewise.
634 * w32term.c (w32_read_socket): Likewise.
635 * xterm.c (handle_one_xevent): Likewise.
636 * xdisp.c (syms_of_xdisp): In doc-string of
637 mouse-autoselect-window mention focus-follows-mouse.
639 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
641 * macterm.c (mac_load_query_font): Fix missing return value.
642 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
645 2007-10-08 Richard Stallman <rms@gnu.org>
647 * xdisp.c (get_window_cursor_type): Implement documented behavior
648 for cursor-in-non-selected-windows = t.
650 2007-10-08 Jason Rumney <jasonr@gnu.org>
652 * w32.c (w32_get_resource): Always close registry keys.
654 2007-10-08 Jason Rumney <jasonr@gnu.org>
656 * makefile.w32-in (LIBS): Add COMCTL32.
658 * w32fns.c (globals_of_w32fns): Init common controls.
660 2007-10-08 Richard Stallman <rms@gnu.org>
662 * image.c (our_memory_buffer): Rename from omfib_buffer.
664 2007-10-08 Richard Stallman <rms@gnu.org>
666 * buffer.c (Foverlays_at): Doc fix.
668 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
670 * fns.c (Fplist_put): Preserve uneven tail data.
672 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
674 * termhooks.h (enum event_kind): Remove trailing comma.
676 * frame.h (enum): Remove trailing comma.
678 2007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
680 * w32proc.c (delete_child): Don't terminate threads of zombies.
682 2007-10-08 Martin Rudalics <rudalics@gmx.at>
684 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
686 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
687 last-repeatable-command.
688 (init_kboard): Initialize Vlast_repeatable_command.
689 (command_loop_1): Set it to real_this_command unless that was
690 bound to an input event.
691 (mark_kboards): Mark it.
693 2007-10-08 Richard Stallman <rms@gnu.org>
695 * eval.c (condition-case): Doc fix.
697 2007-10-08 Masatake YAMATO <jet@gyve.org>
699 * xfaces.c (tty_supports_face_attributes_p): Fix code
700 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
701 was copied and not edited.
703 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
705 Add new `input-decode-map' keymap and use it for terminal
707 * keyboard.h (struct kboard): Add Vinput_decode_map.
708 Remove Vlocal_key_translation_map.
709 * keyboard.c (read_key_sequence): Add support for input-decode-map.
710 (init_kboard): Init input-decode-map.
711 Replace local-key-translation-map back with key-translation-map.
712 (syms_of_keyboard): Declare input-decode-map.
713 Remove local-key-translation-map. Update docstrings.
714 (mark_kboards): Mark Vinput_decode_map.
715 Don't mark Vlocal_key_translation_map.
716 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
717 Replace local-key-translation-map back with key-translation-map.
718 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
719 Bind in input-decode-map rather than function-key-map.
721 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
722 This was made redundant by the previous introduction of XSETPVECTYPE.
724 2007-10-09 Richard Stallman <rms@gnu.org>
726 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
728 2007-09-29 Richard Stallman <rms@gnu.org>
730 * eval.c (internal_condition_case_2, internal_condition_case_1)
731 (internal_condition_case): Reenable abort if x_catching_errors ()
732 to see if that really happens and why.
734 2007-10-06 Andreas Schwab <schwab@suse.de>
736 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
738 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
740 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
742 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
744 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
746 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
748 * window.h (struct window):
749 * window.c (struct save_window_data, struct saved_window):
750 * termhooks.h (struct terminal):
751 * process.h (struct Lisp_Process):
752 * frame.h (struct frame):
753 * buffer.h (struct buffer):
754 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
755 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
756 The size field of (pseudo)vectors is now unsigned.
757 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
759 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
760 Turn `count' into an integer.
762 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
763 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
764 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
765 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
766 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
768 * alloc.c (allocate_pseudovector): New fun.
769 (ALLOCATE_PSEUDOVECTOR): New macro.
770 (allocate_window, allocate_terminal, allocate_frame)
771 (allocate_process): Use it.
772 (mark_vectorlike): New function.
773 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
774 (mark_terminals): Use it.
775 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
776 (Fmake_byte_code): Use XSETPVECTYPE.
778 * frame.c (Fframe_parameters): Minor simplification.
780 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
782 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
784 * buffer.c (Fget_buffer_create, init_buffer_once):
786 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
788 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
789 defined differently in the m/*.h files.
790 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
791 (XSETPVECTYPE): New macro.
792 (XSETPSEUDOVECTOR): Use it.
794 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
795 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
797 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
798 * lread.c (defvar_per_buffer):
799 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
801 * window.c (candidate_window_p): Only consider as visible frames that
802 are on the same terminal.
804 * m/ibms390x.h (MARKBIT): Remove unused macro.
806 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
808 * lread.c (Fload): Fix typo in docstring.
810 2007-10-01 Micha
\e,Ak
\e(Bl Cadilhac <michael@cadilhac.name>
812 * floatfns.c (Fexpt): Manually check for overflows, so that a power
813 of a non-zero value can't yield zero.
815 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
817 * term.c (term_clear_mouse_face, term_mouse_highlight)
818 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
820 * print.c (safe_debug_print): Use XHASH.
822 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
823 Lisp elements such as tags.
826 (SREF, SSET, STRING_COPYIN): Use SDATA.
827 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
829 * alloc.c (mark_terminal): Remove left-over declaration.
830 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
831 (allocate_vectorlike): Remove type argument. Adjust callers.
832 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
833 Only handle the one remaining MEM_TYPE_VECTORLIKE.
835 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
836 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
837 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
838 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
839 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
842 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
843 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
844 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
846 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
848 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
851 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
853 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
855 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
857 * term.c (mouse_face_window): Rename from Qmouse_face_window.
859 (handle_one_term_event): Use Gpm_DrawPointer.
860 (Fgpm_mouse_start): Rename from Fterm_open_connection.
861 Signal errors instead of returning nil. Always return nil.
862 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
863 Make it a noop if gpm-mouse was not activated.
864 (syms_of_term): Update names.
866 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
868 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
869 (init_sys_modes): Check that gpm_tty is the current tty.
871 * alloc.c (allocate_terminal): Set the vector size to only count the
872 lisp fields. Initialize those to nil.
873 (mark_object): Don't treat terminals specially.
874 (mark_terminal): Remove.
875 (mark_terminals): Use mark_object instead.
877 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
878 the GC to the beginning.
881 * indent.c: Use EMACS_INT for ints coming from Elisp data.
883 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
885 2007-09-25 Jason Rumney <jasonr@gnu.org>
887 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
889 * w32console.c (create_w32cons_output): Remove.
891 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
893 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
894 (reset_sys_modes): Use reset_terminal_modes_hook.
896 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
898 * eval.c (do_autoload): Don't output any message.
900 2007-09-24 Juri Linkov <juri@jurta.org>
902 * emacs.c (standard_args): Change priority of "--no-splash"
903 from 40 to 3. Add "--no-desktop" with the same priority.
905 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
907 * alloc.c (gc_sweep): Check cons cell mark bits word by word
908 and optimize the case where they are all 1.
910 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
912 * lisp.h (abs): Define if not defined.
913 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
914 Don't define `abs', since it's defined in lisp.h.
916 2007-09-22 Eli Zaretskii <eliz@gnu.org>
918 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
919 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
920 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
921 (init_tty): Use DEV_TTY instead of "/dev/tty".
922 [WINDOWSNT]: No need to protect from NAME arg being null.
924 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
926 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
929 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
931 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
932 (gpm_tty): Change its type.
933 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
934 (gpm_tty): Change its type and initialize it.
935 (Fterm_open_connection): Check the frame is indeed a tty.
937 (Fterm_close_connection): Use the new gpm_tty.
938 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
939 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
941 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
943 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
944 underline_color, to draw strike-through.
946 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
948 * lisp.h (allocate_terminal): Declare.
950 * window.c (candidate_window_p): Consider frames that are being placed
951 by the user as somewhere between visible and iconified.
952 (window_loop): Prefer windows on the current frame.
953 (Fselect_window): Move the use of select-frame to the beginning so we
954 can just delegate all the work (it'll call us back anyway).
956 * frame.c (Qdisplay_environment_variable):
957 * frame.h (Qdisplay_environment_variable): Delete.
959 * .gdbinit (xbacktrace): Print the arg's address rather than the value
960 of the first arg, since that value may be a union.
962 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
963 parameter rather than Qdisplay_environment_variable. If all else
964 fails, look for DISPLAY in initial-environment.
966 2007-09-21 Glenn Morris <rgm@gnu.org>
968 * Makefile.in (emacstool): Remove target.
969 (lisp, shortlisp): Remove termdev.elc.
971 2007-09-21 Markus Triska <markus.triska@gmx.at>
973 * xterm.c (x_delete_display): Compile session management conditionally.
975 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
977 * callproc.c (getenv_internal_1): New function.
978 (getenv_internal): Use it.
979 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
981 * terminal.c (get_terminal): Don't accept ints to represent terminals.
982 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
983 (Fset_terminal_parameter): Work with dead terminals as well.
984 (Fmodify_terminal_parameters): Remove.
986 * terminal.c (get_terminal): Handle terminals.
987 Make sure the terminal returned is live.
988 (create_terminal): Use allocate_terminal.
989 (mark_terminals): Move to alloc.c.
990 (delete_terminal): Use terminal->name as liveness status.
991 NULL out fields after freeing their contents.
992 Don't deallocate the object.
993 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
995 (Fterminal_live_p): Accept non-integer arguments.
996 (Fterminal_list): Return terminal objects rather than an ints.
998 * alloc.c (enum mem_type): New member for `terminal' objects.
999 (allocate_terminal): New function.
1000 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
1002 (mark_terminal): New fun.
1003 (mark_terminals): Move from terminal.c.
1005 * term.c (get_tty_terminal): Don't treat output_initial specially.
1006 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
1007 (delete_tty): Use terminal->name as liveness status.
1009 * termhooks.h (struct terminal): Make it into a pseudovector.
1010 Remove `deleted' replaced by checking `name's nullness.
1012 * print.c (print_object): Handle terminals.
1014 * lisp.h (enum pvec_type): New `terminal' pseudovector.
1015 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
1017 * frame.c (make_terminal_frame):
1018 * keyboard.c (tty_read_avail_input):
1019 * w32term.c (x_delete_terminal):
1020 * xfns.c (Fx_create_frame, x_create_tip_frame):
1021 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
1023 2007-09-20 Glenn Morris <rgm@gnu.org>
1025 * process.c (Fmake_network_process): Doc fix.
1027 2007-09-19 Jason Rumney <jasonr@gnu.org>
1029 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
1031 2007-09-19 Micha
\e,Ak
\e(Bl Cadilhac <michael@cadilhac.name>
1033 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
1034 Fix a C warning regarding variable constness.
1036 * xterm.c (handle_one_xevent): Fix a C warning.
1038 2007-09-18 Jason Rumney <jasonr@gnu.org>
1040 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
1042 2007-09-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1044 * gtkutil.c (gdpy_def): New variable.
1045 (xg_initialize): Initialize gdpy_def.
1046 (xg_display_close): If no other display exists, set gdpy_def to a
1049 2007-09-16 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1051 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1052 when we have no file name for the icon.
1053 (xg_tool_bar_expose_callback): Remove.
1054 (xg_create_tool_bar): Don't connect expose signal to
1055 xg_tool_bar_expose_callback.
1056 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1058 2007-09-16 Andreas Schwab <schwab@suse.de>
1060 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1061 values instead of zapping them.
1063 2007-09-14 Glenn Morris <rgm@gnu.org>
1065 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
1066 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1067 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1068 scope and rename to omfib_buffer for clarity.
1069 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1071 2007-09-14 Kenichi Handa <handa@m17n.org>
1073 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
1075 2007-09-13 Jason Rumney <jasonr@gnu.org>
1077 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
1079 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
1081 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
1082 (mac_term_init): Call here instead, passing rif.
1084 2007-09-13 Glenn Morris <rgm@gnu.org>
1086 * s/hpux.h: No longer define `static' as nothing.
1088 2007-09-13 Johan Bockg
\e,Ae
\e(Brd <bojohan@gnu.org>
1090 * callint.c (Fcall_interactively): Remove unused var `fun'.
1092 2007-09-12 Romain Francoise <romain@orebokech.com>
1094 * window.c (prefer_window_split_horizontally, display_buffer):
1095 Revert 2007-09-08 change.
1097 2007-09-12 Glenn Morris <rgm@gnu.org>
1099 * alloca.c: Remove file.
1100 * Makefile.in (alloca): Do not undef.
1101 (allocaobj, alloca.o): Remove.
1102 (otherobj): Remove allocaobj.
1103 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
1104 * regex.c (C_ALLOCA): Remove all references and code that was only
1105 used when this was defined.
1106 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
1107 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
1108 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
1110 * Makefile.in (SOURCES, unlock, relock): Delete.
1112 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1113 (menu_grab_callback): All uses changed.
1115 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1116 (x_reply_selection_request): All uses changed.
1118 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1120 * lread.c (load_warn_old_style_backquotes): Change message to look
1121 better when it appears in the middle of byte-compiler messages.
1123 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
1125 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
1127 * xterm.c (x_create_terminal): Add comment.
1129 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
1131 2007-09-10 Richard Stallman <rms@gnu.org>
1133 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
1135 2007-09-10 Micha
\e,Ak
\e(Bl Cadilhac <michael@cadilhac.name>
1137 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
1138 (DEFUN): Document `intspec', use it instead of `prompt'.
1140 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
1142 * data.c (Finteractive_form): If the interactive specification starts
1143 with a `(', use it as a Lisp form.
1145 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
1146 name and file modes.
1148 * callint.c (Fcall_interactively): Comment fixes.
1150 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1152 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
1153 and compiled functions.
1155 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
1157 * window.c (prefer_window_split_horizontally): New variable.
1158 (display_buffer): Consider splitting window horizontally depending
1159 on prefer_window_split_horizontally.
1161 2007-09-08 Eli Zaretskii <eliz@gnu.org>
1163 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
1165 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1167 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
1169 * frame.c (x_set_frame_parameters): Check number is positive before
1172 * window.c (freeze_window_start): Don't presume selected_window holds
1174 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
1176 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
1178 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
1180 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1182 * window.c (Vsplit_window_preferred_function): New var.
1183 (Fdisplay_buffer): Use it.
1184 (syms_of_window): Export, and initialize it.
1186 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
1188 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1190 2007-09-06 Glenn Morris <rgm@gnu.org>
1192 * gtkutil.c (menu_grab_callback) <cnt>:
1193 * xselect.c (x_reply_selection_request) <cnt>: Move static
1194 variable to file scope.
1196 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
1198 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
1199 consistent values of selected_frame and selected_window.
1201 2007-09-04 Jason Rumney <jasonr@gnu.org>
1203 * w32console.c (initialize_w32_display): Zero unused hooks.
1205 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
1207 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
1208 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
1210 2007-09-04 Jason Rumney <jasonr@gnu.org>
1212 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
1213 in w32console.c. Set up input. Remove XXX comments that have been
1214 confirmed as correct.
1216 * s/ms-w32.h (MULTI_KBOARD): Define.
1218 * w32console.c (one_and_only_w32cons): Remove.
1219 (initialize_w32_display): Take terminal argument.
1221 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
1222 initialize_w32_display.
1223 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
1225 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
1227 * keyboard.c (discard_mouse_events): Discard it.
1228 (make_lispy_event): Translate it to a lisp event.
1229 (lispy_wheel_names): Add wheel-left and right events.
1230 (syms_of_keyboard): Enlarge wheel_syms.
1232 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
1233 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
1235 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
1237 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
1238 from WM_MOUSEHWHEEL.
1239 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
1241 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
1244 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
1245 keyboard for the terminal.
1247 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
1249 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
1250 (Vresume_tty_hook): Rename from Vresume_tty_functions.
1251 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
1252 and resume-tty-function to resume-tty-hook.
1253 (Fsuspend_tty, Fresume_tty): Use new names.
1255 2007-09-02 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1257 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
1258 if it starts with "n:".
1260 2007-08-31 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1262 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
1264 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1267 * frame.c (Qterm_environment_variable): Remove.
1268 (syms_of_frame): Don't init and staticpro it.
1270 * callproc.c (getenv_internal): Remove special case for $TERM.
1272 * callproc.c (Vinitial_environment): New variable.
1273 (set_initial_environment): Initialize it.
1274 (syms_of_callproc): Declare it.
1275 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
1276 TERM under which a process runs is never related to the TERM in which
1279 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
1281 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
1282 * s/darwin.h: ... do it here.
1284 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1286 * lisp.h (set_initial_environment): Rename from set_global_environment.
1288 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
1289 removed by mistake on the multi-tty branch.
1291 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
1292 (Fmodify_frame_parameters): Return a value.
1294 * image.c (png_load): Comment-out var only used in commented-out code.
1296 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
1297 before passing it to mark_object.
1299 * xfaces.c (internal_resolve_face_name): Return a value.
1300 (internal_resolve_face_name, resolve_face_name_error): Comment out.
1302 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
1303 (x_icon): Comment-out var only used in commented-out code.
1305 2007-08-29 Romain Francoise <romain@orebokech.com>
1307 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
1308 QUIT hasn't been provided.
1310 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
1312 * callproc.c (child_setup, getenv_internal): Use the
1313 display-environment-variable and term-environment-variable frame
1315 (set_initial_environment): Initialise Vprocess_environment.
1317 * config.in: Disable multi-keyboard support on a mac.
1319 * frame.c (Qterm_environment_variable)
1320 (Qdisplay_environment_variable): New variables.
1321 (syms_of_frame): Intern and staticpro them.
1322 (Fmake_terminal_frame): Disable output method test.
1324 * frame.h: Declare them here.
1326 * macfns.c (x_set_mouse_color): Get rif from the frame.
1327 (x_set_tool_bar_lines): Don't use updating_frame.
1328 (mac_window): Add 2 new parameters for consistency with other systems.
1329 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
1330 frame parameters following what is done in X11 and w32. Don't use
1331 FRAME_MAC_DISPLAY_INFO.
1332 (Fx_open_connection, start_hourglass): Remove window-system check.
1333 (x_create_tip_frame): Get the keyboard from the terminal.
1335 * macmenu.c: Reorder includes.
1336 (Fx_popup_menu): Use terminal specific mouse_position_hook.
1338 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
1340 (x_clear_frame): Add a frame parameter.
1341 (note_mouse_movement): Get rif from the frame.
1342 (mac_term_init): Initialize the terminal.
1343 (mac_initialize): Make static and move terminal initialization ...
1344 (mac_create_terminal): ... to this new function.
1346 * macterm.h (struct mac_display_info): Add terminal.
1347 (mac_initialize): Delete declaration.
1349 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
1351 * sysdep.c: Comment out text after #endif.
1353 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
1354 is defined. Better initialize ttys in windows. Use terminal
1355 specific mouse_position_hook.
1357 * termhooks.h (union display_info): Add mac_display_info.
1359 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
1360 Set the default minibuffer frame, window_system and the rest of the
1361 frame parameters following what is done in X11.
1363 * w32term.c (w32_initialize): Make static.
1365 * xselect.c (x_handle_selection_clear): Only access
1366 terminal->kboard when MULTI_KBOARD is defined.
1368 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
1369 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
1371 2007-08-29 Jason Rumney <jasonr@gnu.org>
1373 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
1374 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
1376 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
1377 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
1379 * keyboard.c (restore_kboard_configuration): Only define when
1380 MULTI_KBOARD defined.
1382 * makefile.w32-in: Update dependancies from Makefile.in.
1383 (OBJ1): Add terminal.$(O)
1385 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
1386 Don't define function body.
1387 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
1389 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
1391 * w32.c (request_sigio, unrequest_sigio): Remove.
1393 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
1394 (w32con_clear_frame, w32con_clear_end_of_line)
1395 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
1396 (w32con_delete_glyphs, w32con_set_terminal_window)
1397 (scroll_line, w32_sys_ring_bell): Add frame arg.
1398 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
1400 (PICK_FRAME): Remove.
1401 (w32con_write_glyphs): Use frame specific terminal coding.
1402 (one_and_only_w32cons): New global variable.
1403 (initialize_w32_display): Use it for storing hooks.
1404 (create_w32cons_output): New function.
1406 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
1409 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
1411 (x_set_tool_bar_lines): Don't use updating_frame.
1412 (Fx_create_frame): Set terminal and ref count.
1413 (Fx_open_connection): Remove window-system check.
1415 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
1417 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
1418 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
1419 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
1421 (x_delete_terminal, w32_create_terminal): New functions.
1422 (w32_term_init): Create a terminal.
1423 (w32_initialize): Move terminal specific initialization to
1424 w32_create_terminal.
1426 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
1427 (w32_clear_rect, w32_clear_area): Use background from frame.
1428 (w32_display_info): Add terminal.
1429 (w32_sys_ring_bell, x_delete_display): Declare here.
1431 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
1433 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
1435 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
1437 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
1438 Fix get_named_tty calls for the controlling tty.
1440 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
1442 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
1444 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
1446 * term.c (tty_insert_glyphs): Add missing first parameter.
1448 2007-08-29 K
\e,Aa
\e(Broly L
\e$,1 q
\e(Brentey <karoly@lorentey.hu>
1450 * buffer.c (Fbuffer_list, Fbury_buffer):
1451 Take frame->buried_buffer_list into account.
1453 * cm.c (current_tty): New variable, for cmputc().
1455 (cmcheckmagic): Add tty parameter, look up terminal streams there.
1456 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
1457 (cmgoto): Add tty parameter. Pass it on to calccost().
1458 Use emacs_tputs() instead of tputs().
1460 * cm.h (emacs_tputs): New macro to set current_tty, and then call
1462 (current_tty): New variable, for cmputc().
1463 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
1465 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
1466 (internal_condition_case, internal_condition_case_1)
1467 (internal_condition_case_2): Don't abort when x_catching_errors.
1469 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
1470 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
1471 prevent crashes caused by bogus longjmps in read_char.
1473 * keymap.h (Fset_keymap_parent): Add EXFUN.
1475 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1476 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1477 Remove redundant definition.
1479 * macfns.c (x_set_mouse_color, x_make_gc):
1480 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1482 * w32term.c (x_free_frame_resources):
1483 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1484 (w32_initialize): Use the accessor macros for terminal characteristics.
1486 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
1487 Use the accessor macros for terminal characteristics.
1488 * msdos.c (internal_terminal_init): Use the accessor macros for
1489 terminal characteristics.
1490 (ScreenVisualBell, internal_terminal_init):
1491 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1493 * termopts.h (no_redraw_on_reenter): Declare.
1495 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
1496 (mark_terminals, mark_ttys): Declare.
1497 (Fgarbage_collect): Call them.
1498 (mark_object): Mark buried_buffer_list.
1500 * prefix-args.c: Include stdlib.h for exit.
1502 * syssignal.h: Add comment.
1504 * indent.c: Include stdio.h.
1506 * window.h (Vinitial_window_system): Declare.
1507 (Vwindow_system): Delete declaration.
1509 * fontset.c (Finternal_char_font): Use FRAME_RIF.
1511 * image.c (lookup_image): Don't initialize `c' until the xasserts
1514 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
1515 FRAME_FOREGROUND_PIXEL.
1517 * print.c (print_preprocess): Don't lose print_depth levels while
1520 * widget.c (update_from_various_frame_slots):
1521 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1523 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
1525 (window_internal_height): Remove bogus make_number call.
1526 (init_window_once): Call make_terminal_frame with two zero parameters.
1528 * fileio.c (Fread_file_name): Update comment.
1530 * callint.c (Fcall_interactively):
1531 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
1532 Make sure it is correctly unwound.
1534 * xsmfns.c (x_session_close): New function.
1536 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
1537 Delete declarations.
1539 * xterm.h: Remove declaration for x_fully_uncatch_errors.
1540 (x_output): Remove background_pixel and foreground_pixel fields.
1541 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
1543 (x_session_close): Declare.
1545 * lread.c: Include setjmp.h. Update declaration of `read_char'.
1546 (read_filtered_event): Call `read_char' with a local
1547 `wrong_kboard_jmpbuf'.
1549 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
1550 Don't call single_kboard_state. Use FRAME_RIF.
1552 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
1555 * lisp.h (set_process_environment): Rename to `set_global_environment'.
1556 (Fframe_with_environment, Fset_input_meta_mode)
1557 (Fset_quit_char): EXFUN.
1558 (x_create_device, tty_output, terminal, tty_display_info): Declare.
1559 (init_sys_modes, reset_sys_modes): Update prototypes.
1560 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
1562 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
1563 Vlocal_key_translation_map, and Vkeyboard_translate_table.
1564 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
1565 Delete declarations.
1566 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
1567 (temporarily_switch_to_single_kboard, tty_read_avail_input):
1570 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
1571 already does that during init_display(). Call syms_of_keymap
1572 before syms_of_keyboard. Call `syms_of_terminal'.
1573 Call set_initial_environment, not set_process_environment.
1574 (shut_down_emacs): Call reset_all_sys_modes() instead of
1577 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
1578 (internal_resolve_face_name, resolve_face_name_error): New functions.
1579 (resolve_face_name): Protect against loops and errors thrown by Fget.
1580 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
1581 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
1583 * scroll.c: Replace CURTTY() with local variables throughout the
1584 file (where applicable).
1585 (calculate_scrolling, calculate_direct_scrolling)
1586 (scrolling_1, scroll_cost): Use the accessor macros for terminal
1589 * keymap.c (Vfunction_key_map): Remove.
1590 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
1591 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
1592 (Vkey_translation_map): Remove.
1593 (syms_of_keymap): Remove DEFVAR for key-translation-map.
1594 (Fdescribe_buffer_bindings):
1595 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
1596 Update for terminal-local key-translation-map.
1598 * Makefile.in (callproc.o): Update dependencies.
1599 (lisp, shortlisp): Add termdev.elc.
1600 (obj): Add terminal.o.
1601 (terminal.o): Add dependencies.
1602 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
1603 (data.o, fns.o): Add termhooks.h dependency.
1604 (SOME_MACHINE_LISP): Add dnd.elc.
1605 (minibuf.o): Fix typo.
1606 Update dependencies.
1608 * data.c (do_symval_forwarding, store_symval_forwarding)
1609 (find_symbol_value): Use the selected frame's keyboard, not
1612 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
1615 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
1617 (syms_of_xmenu): Update defsubr.
1618 (mouse_position_for_popup, Fx_popup_menu)
1619 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
1620 (set_frame_menubar, free_frame_menubar)
1621 (create_and_show_popup_menu, xmenu_show, )
1622 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
1625 * xselect.c (x_own_selection): Abort if not an X frame.
1626 (some_frame_on_display): Check if it is an X frame.
1627 (x_handle_selection_clear): Deal with MULTI_KBOARD.
1629 * coding.c: Include frame.h and termhooks.h.
1630 (terminal_coding, keyboard_coding): Delete.
1631 (Fset_terminal_coding_system_internal):
1632 (Fset_keyboard_coding_system_internal):
1633 (Fkeyboard_coding_system):
1634 (Fterminal_coding_system): Add a terminal parameter.
1635 Get terminal_coding from the terminal.
1636 (init_coding_once): Don't call setup_coding_system here.
1638 * dispextern.h (set_scroll_region, turn_off_insert)
1639 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
1640 (tty_clear_end_of_line, tty_setup_colors)
1641 (delete_tty, updating_frame)
1642 (produce_special_glyphs, produce_glyphs, write_glyphs)
1643 (insert_glyphs): Remove.
1644 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
1645 (tty_turn_off_highlight, get_tty_size): Add declaration.
1646 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
1648 * frame.h (enum output_method): Add output_initial.
1649 (struct x_output): Delete.
1650 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1651 Access foreground_pixel and background_pixel directly from the frame.
1652 (tty_display): Delete.
1653 (struct frame): Add buried_buffer_list, foreground_pixel,
1654 background_pixel and terminal. Delete kboard
1655 (union output_data): Add tty.
1656 (FRAME_KBOARD): Get the kboard from the terminal.
1657 (FRAME_INITIAL_P): New macro.
1658 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
1659 (Qterm_environment_variable, Qdisplay_environment_variable)
1660 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
1663 * termchar.h (tty_output, tty_display_info): New structures.
1664 (tty_list): Declare.
1665 (FRAME_TTY, CURTTY): New macros.
1666 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
1667 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
1668 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
1669 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
1671 * callproc.c: Include frame.h and termhooks.h, for terminal
1673 (add_env): New function.
1674 (child_setup): Use it.
1675 (child_setup, getenv_internal): Handle the new Vprocess_environment.
1676 (getenv_internal): Fix get_terminal_param call.
1677 (Fgetenv_internal, egetenv): Update doc.
1678 (syms_of_callproc): Initialize Vprocess_environment to nil.
1679 Register and initialize them. Remove obsolete defvars. Update doc
1681 (child_setup): Handle Vlocal_environment_variables.
1682 (getenv_internal): Add terminal parameter.
1683 Handle Vlocal_environment_variables.
1684 (Fgetenv_internal): Add terminal parameter.
1685 (child_setup, getenv_internal, Fgetenv_internal): Store the local
1686 environment in a frame (not terminal) parameter. Update doc strings.
1687 (set_initial_environment): Rename from set_global_environment.
1688 Store Emacs environment in initial frame parameter.
1690 * xdisp.c (redisplay_internal): Update references to
1691 `previous_terminal_frame'.
1692 (display_mode_line, Fformat_mode_line): Replace calls to
1693 `push_frame_kboard' with `push_kboard'.
1694 (get_glyph_string_clip_rects): Add extra parentheses and
1695 braces to prevent compiler warnings.
1696 (calc_pixel_width_or_height): Add xassert to check that the
1697 frame is alive. Don't call `lookup_image' on a termcap frame.
1698 (message2_nolog, message3_nolog, redisplay_internal)
1699 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
1700 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
1701 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
1702 (Fx_display_pixel_width, Fx_display_pixel_height)
1703 (Fx_display_planes, Fx_display_color_cells)
1704 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
1705 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
1706 (Fx_display_backing_store, Fx_display_visual_class)
1707 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
1708 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
1710 * xfns.c (x_set_foreground_color x_set_background_color)
1711 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
1712 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1713 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
1714 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
1715 terminal that is being deleted.
1716 (Fx_create_frame): Use `store_frame_param' to set `window-system'
1717 frame parameter, and make sure it overrides any user-supplied setting.
1718 (Fx_close_connection, Fx_synchronize): Unify argument names with
1719 the rest of the DEFUNs.
1721 * dispnew.c (Fsend_string_to_terminal): Update call to
1723 (Fredraw_frame, Fsend_string_to_terminal)
1724 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
1725 FRAME_TERMCAP_P and FRAME_TTY.
1726 (window_change_signal): Don't believe width/height values that are
1728 (Vinitial_window_system): Rename from Vwindow_system.
1729 (termscript, Wcm, rif): Delete.
1731 * termhooks.h (struct terminal): New struct containing the
1732 previously global text display hooks and new members NAME,
1733 DELETED and PARAM_ALIST.
1734 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
1735 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
1736 (FRAME_RIF): New macros.
1737 (get_terminal_param, get_device): New declarations.
1738 (termscript): Delete declaration.
1740 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
1741 (XTflash, x_free_frame_resources, x_scroll_bar_create)
1742 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
1743 FRAME_FOREGROUND_PIXEL.
1744 (x_fully_uncatch_errors): Disable definition.
1745 (x_scroll_bar_expose): Fix reference to foreground pixel.
1746 (XTread_socket): Disable loop on all X displays.
1747 (x_delete_terminal): Don't set terminal->deleted and let
1748 delete_terminal delete the frames on the terminal.
1749 (x_delete_display): Doc update to reflect changes in
1751 (x_display_info) <terminal>: Move member earlier in the struct.
1752 (deleting_tty): Remove old variable.
1753 (Fsuspend_tty): Call clear_tty_hooks.
1754 (Fresume_tty, init_tty): Call set_tty_hooks.
1755 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
1757 (x_catch_errors_unwind): Abort if x_error_message is NULL.
1758 (handle_one_xevent): Initialize `f' to NULL.
1759 (x_delete_terminal, x_create_terminal): New functions.
1760 (XTset_terminal_modes, XTreset_terminal_modes)
1761 (XTread_socket, x_connection_closed, x_term_init)
1762 (x_term_init, x_delete_display): Add terminal parameter.
1763 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
1766 * frame.c (Fframep): Deal with output_initial.
1767 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
1768 (Qtty_type, Qwindow_system, Qenvironment)
1769 (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
1770 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
1771 (make_terminal_frame): Don't create frames on a terminal that is
1773 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
1774 FRAME_FOREGROUND_PIXEL.
1775 (store_frame_param): Check for found_for_frame before calling XFRAME.
1776 (Fmake_terminal_frame): Handle NULL tty names correctly.
1777 (syms_of_frame): Enhance doc string of `default-frame-alist'.
1778 (Fdelete_frame): Remove unused variable `count'.
1779 (Qenvironment): New variable.
1780 (Fdelete_frame): Don't allow other frames to refer to a deleted
1781 frame in their 'environment parameter.
1782 (Fframe_with_environment): New function.
1783 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
1784 (get_future_frame_param): New function.
1785 (Fmake_terminal_frame): Use it.
1786 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
1788 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
1789 * sysdep.c (reset_sys_modes): Update for renames.
1791 * keyboard.c (tty_read_avail_input): New function.
1792 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
1793 (syms_of_keyboard): Defsubr them.
1794 (Fset_input_meta_mode, Fset_quit_char): New functions.
1795 (Fset_input_mode): Split to above functions.
1797 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
1798 parameter. Use it in call to `read_char'.
1799 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
1800 Set wrong_kboard_jmpbuf correctly in recursive calls.
1801 Use current_kboard to access Vkeyboard_translate_table.
1802 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
1803 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
1804 Update longjmp invocations. Remember the original current_kboard,
1805 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
1806 changes it. Comment out unnecessary calls to
1807 `record_single_kboard_state' and `any_kboard_state'.
1808 Update recursive calls.
1809 (wrong_kboard_jmpbuf): Remove global variable.
1810 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
1811 Handle deleted interrupted_kboards correctly; that is a legal
1812 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
1813 and read_char calls. Abort if interrupted_kboard died in read_char.
1814 (any_kboard_state, single_kboard_state)
1815 (push_frame_kboard): Remove function.
1816 (pop_kboard): Switch out of single_kboard mode if the kboard has
1817 been deleted. Remove unused variable. Help debugging by not
1818 changing current_kboard unnecessarily. Set current_kboard to the
1819 kboard of the selected frame when the stored kboard object has
1820 been deleted before pop_kboard.
1821 (temporarily_switch_to_single_kboard): Change first parameter to a
1822 frame pointer. Throw an error when caller wants to change kboards
1823 while in single_kboard mode. Don't push_kboard if we weren't in
1824 single kboard state. Don't pop_kboard if we popped into any
1826 (restore_kboard_configuration): Abort if pop_kboard changed the
1827 kboard in single_kboard mode. Call pop_kboard only after setting
1828 up single_kboard mode.
1829 (Frecursive_edit): Switch to single_kboard mode only in nested
1831 (cmd_error, command_loop, command_loop_1, timer_check):
1832 Comment out unnecessary call to `any_kboard_state' and
1833 `record_single_kboard_state'.
1834 (delete_kboard): Exit single_kboard mode if we have just deleted
1835 that kboard. Use FRAME_KBOARD.
1836 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
1837 `fatal_error_signal'.
1838 (record_single_kboard_state): Don't push_kboard if we weren't in
1839 single kboard state. Don't pop_kboard if we popped into any
1841 (push_frame_kboard): Rename to push_kboard.
1842 (kbd_buffer_get_event): Use FRAME_TERMINAL.
1843 (read_avail_input): Read input from all terminals.
1844 (mark_kboards): Also mark Vkeyboard_translate_table.
1845 (kbd_buffer_store_event_hold): Simplify condition.
1846 (read_key_sequence): Reinitialize fkey and keytran at each replay.
1847 (Vkeyboard_translate_table): Move to struct kboard.
1848 (init_kboard): Initialize Vkeyboard_translate_table.
1849 (syms_of_keyboard): Use DEFVAR_KBOARD to define
1850 Vkeyboard_translate_table. Update doc strings. Update docs of
1851 local-function-key-map and function-key-map.
1853 * terminal.c: New file.
1855 * term.c: Include errno.h.
1856 (Vring_bell_function, device_list, initial_device)
1857 (next_device_id, ring_bell, update_begin, update_end)
1858 (set_terminal_window, cursor_to, raw_cursor_to)
1859 (clear_to_end, clear_frame, clear_end_of_line)
1860 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
1861 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
1862 (syms_of_term): Move their initialization to terminal.c.
1863 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
1864 (Ftty_display_color_cells)
1865 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
1866 (clear_tty_hooks, set_tty_hooks)
1867 (init_tty, maybe_fatal): New functions.
1868 (Ftty_type): Return nil if terminal is not on a tty instead of
1869 throwing an error. Doc update.
1870 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
1871 Doc update. Initialize new subrs and variables.
1872 (delete_tty): Use terminal->deleted.
1873 (tty_set_terminal_modes): Rename from set_terminal_modes.
1874 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
1875 (set_scroll_region): Rename to `tty_set_scroll_region'.
1876 (turn_on_insert): Rename to `tty_turn_on_insert'.
1877 (turn_off_insert): Rename to `tty_turn_off_insert'.
1878 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
1879 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
1880 (toggle_highligh): Rename to `tty_toggle_highlight'.
1881 (background_highlight): Rename to `tty_background_highlight'.
1882 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
1883 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
1884 (tty_set_scroll_region, tty_background_highlight)
1885 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
1886 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
1887 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
1888 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
1889 Add static modifier.
1890 (tty_reset_terminal_modes, tty_set_terminal_window)
1891 (tty_set_scroll_region, tty_background_highlight)
1892 (tty_highlight_if_desired, tty_cursor_to)
1893 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
1894 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
1895 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
1898 2007-08-28 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
1900 * keyboard.c: Qrtl is new.
1901 (parse_tool_bar_item): Handle :rtl keyword.
1902 (syms_of_keyboard): Intern :rtl keyword.
1904 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1906 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1907 so no Lisp code is executed.
1908 (file_for_image, find_rtl_image): New functions.
1909 (xg_get_image_for_pixmap): Use file_for_image
1910 (update_frame_tool_bar): If direction is RTL, use RTL image if
1911 defined. Use Gtk stock images if defined.
1913 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1915 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1916 for nonexistent or zero-width glyph in composition glyph.
1918 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
1920 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
1922 * xdisp.c (Finvisible_p): New function.
1923 (syms_of_xdisp): defsubr it.
1925 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
1927 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1930 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1932 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
1934 2007-08-24 Martin Rudalics <rudalics@gmx.at>
1936 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
1937 whether decoding has modified buffer contents.
1939 2007-08-24 Jason Rumney <jasonr@gnu.org>
1941 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
1942 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
1943 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
1944 (init_svg_functions) [HAVE_NTGUI]: New function.
1945 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
1946 (svg_load_image): Use them.
1947 (svg_load_image) [HAVE_NTGUI]: Implement background.
1949 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1951 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
1952 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
1953 (LIBX): Remove @RSVG_LIBS@.
1954 (LIBES): Add $(RSVG_LIBS).
1956 * image.c (svg_load_image): Blend with specified background if exists.
1957 Use IMAGE_BACKGROUND. Add Mac OS Support.
1959 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
1960 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
1962 [MAC_OSX] (socket_callback): Do nothing.
1963 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
1965 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
1967 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
1969 2007-08-22 Glenn Morris <rgm@gnu.org>
1971 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
1973 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
1975 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
1977 * image.c: Add support for SVG images. Some additional comments
1978 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
1979 (svg_image_p): New function to test for SVG image.
1980 (svg_load): New function to load SVG image.
1981 (svg_load_image): New function, helper for svg_load.
1982 (Qsvg): New Lisp_object.
1983 (svg_keyword_index): New enum.
1984 (svg_format): New static `image_keyword' struct.
1985 (svg_type): New static `image_type' struct.
1986 (librsvg/rsvg.h): Include it.
1988 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
1990 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1992 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1994 * lread.c (Qold_style_backquotes): New var.
1995 (syms_of_lread): Init and staticpro it.
1996 (load_warn_old_style_backquotes): New fun.
1997 (Fload): Use them to warn about old style backquotes.
1998 (end_of_file_error, Fload): Remove unused vars.
2000 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
2002 * lread.c (Vold_style_backquotes): New var.
2003 (syms_of_lread): Init and export it to Elisp.
2004 (read1): Set it when we find an old-style (back)quote.
2006 2007-08-22 Jason Rumney <jasonr@gnu.org>
2008 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
2010 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
2012 * puresize.h (BASE_PURESIZE): Increase to 1140000.
2014 2007-08-19 Richard Stallman <rms@gnu.org>
2016 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
2018 2007-08-19 Andreas Schwab <schwab@suse.de>
2020 * alloc.c (pure): Round PURESIZE up.
2022 2007-08-17 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2024 * xterm.c (handle_one_xevent): Remove check that mouse click is in
2027 2007-08-16 Richard Stallman <rms@gnu.org>
2029 * eval.c (Fcommandp): Add parens to clarify.
2031 * minibuf.c (Fall_completions): Use enum for type of table.
2033 * emacs.c (USAGE2): Improve text.
2035 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
2037 * term.c (tty_default_color_capabilities): Declare static
2038 variables in file scope, to avoid HPUX compiler problem.
2040 2007-08-13 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2042 * gtkutil.c (update_frame_tool_bar): Use -1 as index
2043 to gtk_toolbar_insert.
2045 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
2047 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
2049 * insdel.c (reset_var_on_error): New fun.
2050 (signal_before_change, signal_after_change):
2051 Use it to reset (after|before)-change-functions to nil in case of error.
2052 Bind inhibit-modification-hooks to t.
2053 Don't bind (after|before)-change-functions to nil while they run.
2055 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2057 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
2058 filling pixmap with stippled background.
2060 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2062 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
2063 Don't use invisible frame as parent window for repositioning.
2065 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
2067 * print.c (new_backquote_output): Rename from old_backquote_output.
2068 (print): Inverse its logic (according to its name) so as to match the
2069 behavior of new_backquote_flag in lread.c.
2071 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2073 * gmalloc.c (posix_memalign): New function.
2075 * macterm.c (frame_highlight, frame_unhighlight): Don't call
2076 ActivateControl/DeactivateControl here.
2077 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
2078 frame-notice-user-settings is non-nil.
2079 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
2080 for kEventParamFMFontStyle.
2081 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
2082 mac_pass_command_to_system and mac_pass_control_to_system here.
2083 (XTread_socket): Call ActivateControl/DeactivateControl here.
2084 (XTread_socket) [TARGET_API_MAC_CARBON]:
2085 Check mac_pass_command_to_system and mac_pass_control_to_system here.
2086 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
2087 for window repositioning.
2089 2007-08-08 Glenn Morris <rgm@gnu.org>
2091 * Replace `iff' in doc-strings and comments.
2093 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
2095 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
2097 2007-08-07 Martin Rudalics <rudalics@gmx.at>
2099 * fileio.c (Finsert_file_contents): Run format-decode and
2100 after_insert_file_functions on entire buffer when REPLACE is
2101 non-nil and inhibit modification_hooks and point_motion_hooks.
2102 For consistency, run after_insert_file_functions iff something
2103 got inserted. Move signal_after_change and update_compositions
2104 after code running after_insert_file_functions. Make sure that
2105 undo_list doesn't record intermediate steps of the decoding process.
2107 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2110 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
2111 Call malloc_enable_thread on interactive startup.
2113 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
2114 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
2115 [USE_PTHREAD]: Conditionalize with it.
2116 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
2117 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
2120 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
2122 * xdisp.c (redisplay_window): When restoring original buffer
2123 position, make sure it is still valid.
2125 * image.c (png_load): Ignore png-supplied background color.
2127 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2129 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
2130 Use kCFAbsoluteTimeIntervalSince1970.
2132 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
2134 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
2135 event loop should be quit.
2136 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
2137 Quit dialog event loop if quit_dialog_event_loop is set.
2139 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
2140 (Selection): New typedef. Use instead of ScrapRef.
2141 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
2142 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
2143 (mac_clear_selection): Rename from clear_scrap.
2144 (get_flavor_type_from_symbol): New argument SEL and subsume function of
2145 scrap_has_target_type. All uses changed.
2146 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2147 (mac_selection_has_target_p): New functions.
2148 (mac_put_selection_value): Rename from put_scrap_string.
2149 (mac_get_selection_value): Rename from get_scrap_string.
2150 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
2151 (put_scrap_private_timestamp, scrap_has_target_type)
2152 (get_scrap_private_timestamp): Remove functions.
2153 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
2154 (x_own_selection, x_get_local_selection):
2155 Use mac_valid_selection_value_p.
2156 (x_own_selection): Don't use put_scrap_private_timestamp.
2157 Record OWNERSHIP-INFO into Vselection_alist instead.
2158 (x_get_local_selection): Don't check type if request is local.
2159 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
2160 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
2162 2007-08-04 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2164 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
2165 add comment explaining why.
2167 2007-08-03 Richard Stallman <rms@gnu.org>
2169 * fileio.c (Fvisited_file_modtime): Use make_time.
2171 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
2173 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
2176 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
2178 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
2180 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
2182 * puresize.h (BASE_PURESIZE): Increase to 1130000.
2184 2007-07-30 Richard Stallman <rms@gnu.org>
2186 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
2188 2007-07-29 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2190 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
2192 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
2194 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
2195 remote default-directory.
2197 * buffer.c (mode-line-format): Update doc string.
2199 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2201 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
2203 (x_scroll_bar_create): Set bar->fringe_extended_p.
2204 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
2205 on frame edge. Check fringe background extension. Don't clear
2206 extended fringe background area.
2208 * w32term.h (struct scroll_bar): New member fringe_extended_p.
2209 (w32_fill_area): Enclose multiple statements with do ... while (0).
2211 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
2212 Extend fringe background to scroll bar gap.
2213 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2214 Set bar->fringe_extended_p.
2215 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2216 Put leftmost/rightmost scroll bars on frame edge. Check fringe
2217 background extension. Don't clear extended fringe background area.
2219 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2220 New member fringe_extended_p.
2222 2007-07-25 Glenn Morris <rgm@gnu.org>
2224 * Relicense all FSF files to GPLv3 or later.
2226 * COPYING: Switch to GPLv3.
2228 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
2230 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
2232 * data.c (Finteractive_form): Check for the presence of an
2233 `interactive-form' symbol property more thoroughly.
2235 * data.c (Finteractive_form): Use an `interactive-form' property if
2236 present, analogous to the function-documentation property.
2238 2007-07-24 Jason Rumney <jasonr@gnu.org>
2240 * w32fns.c (x_real_positions): Get real position from OS instead of
2243 2007-07-23 Jason Rumney <jasonr@gnu.org>
2245 * filelock.c (current_lock_owner): Allow for @ sign in username.
2247 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
2249 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
2250 remote default-directory.
2252 * buffer.c (mode-line-format): Describe above case in doc string.
2254 2007-07-20 Eli Zaretskii <eliz@gnu.org>
2256 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
2257 Define if not defined.
2259 2007-07-18 Jason Rumney <jasonr@gnu.org>
2261 * w32proc.c (w32_executable_type): Handle 64 bit executables.
2263 2007-07-18 Richard Stallman <rms@gnu.org>
2265 * data.c (Fsetq_default): Doc fix.
2267 * eval.c (Fsetq): Doc fix.
2269 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
2271 * coding.c (Ffind_operation_coding_system):
2272 * eval.c (For, Fand): Doc fixes.
2273 Reported by Johan Bockg
\e,Ae
\e(Brd.
2275 2007-07-18 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2277 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
2279 * xterm.h: Declare x_ewmh_activate_frame.
2281 * xterm.c (x_ewmh_activate_frame): New function.
2282 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
2284 2007-07-17 Martin Rudalics <rudalics@gmx.at>
2286 * window.c (Fdisplay_buffer): If largest or LRU window is the
2287 only window, split it even if it is not eligible for splitting.
2288 This restores the original behavior broken by the 2007-07-15
2291 2007-07-17 Glenn Morris <rgm@gnu.org>
2293 * abbrev.c (abbrev_check_chars): New function.
2294 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2295 Call abbrev_check_chars to check abbrev characters are word
2296 constituents. Doc fix.
2298 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2300 * process.c (Fstart_process, Fmake_network_process)
2301 (read_process_output): Fix up last changes.
2303 2007-07-16 Eli Zaretskii <eliz@gnu.org>
2305 * makefile.w32-in (clean): Don't delete *~.
2307 2007-07-16 Andreas Schwab <schwab@suse.de>
2309 * window.c (Fdisplay_buffer): Use NILP.
2310 (Fset_window_scroll_bars): Likewise.
2312 2007-07-15 Martin Rudalics <rudalics@gmx.at>
2314 * window.c (window_min_size_2): New function.
2315 (window_min_size_1, size_window, Fdisplay_buffer)
2316 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
2317 windows without mode- or header-lines when window-min-height is
2319 (size_window): Reset nodelete_p after testing it, following an
2320 earlier note by Kim F. Storm.
2321 (display_buffer): Do not set split_height_threshold to twice the
2322 value of window_min_height to avoid changing the value of a
2323 customizable variable. Rather explicitly check whether the
2324 height of the window that shall be splitted is at least as large
2325 as split_height_threshold.
2326 (Fwindow_full_width_p): New defun.
2327 (syms_of_window): Defsubr it.
2329 * window.h: Add EXFUN for Fwindow_full_width_p.
2331 2007-07-14 Jason Rumney <jasonr@gnu.org>
2333 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
2335 2007-07-14 Richard Stallman <rms@gnu.org>
2337 * eval.c (maybe_call_debugger): New function.
2338 (find_handler_clause): Use maybe_call_debugger.
2339 Call it when the handler says `debug'.
2340 Eliminate DEBUGGER_VALUE_PTR.
2341 (Fsignal): Eliminate debugger_value.
2342 (Qdebug): New variable.
2343 (syms_of_eval): Initialize it.
2345 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
2348 * keyboard.c (Ftrack_mouse):
2349 * print.c (Fwith_output_to_temp_buffer):
2350 * window.c (Fsave_window_excursion): Doc fix.
2352 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
2354 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
2356 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
2358 * process.h (struct Lisp_Process): Turn slots infd, outfd,
2359 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
2360 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
2361 read_output_delay, and read_output_skip from Lisp_Objects to ints.
2362 Remove unused encoding_carryover.
2363 * process.c: Adjust all functions accordingly.
2365 2007-07-12 Richard Stallman <rms@gnu.org>
2367 * term.c: Include unistd.h only if HAVE_UNISTD_H.
2369 2007-07-11 Jason Rumney <jasonr@gnu.org>
2371 * makefile.w32-in (LIBS): Include OLE32.
2373 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
2374 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
2376 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2378 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
2379 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
2380 from a Lisp_Object into a bare pointer.
2381 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
2382 Adjust the code correspondingly.
2384 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
2386 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
2387 (term_show_mouse_face): Remove unused var `j'.
2388 (handle_one_term_event): Remove unused vars `i' and `j'.
2389 Don't cast return value of ttyname since it's not necessary.
2391 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
2393 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
2394 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
2396 * fns.c (map_char_table): Use an array of int for `indices' rather than
2397 an array of Lisp_Objects (which are only ever integers anyway).
2398 (Fmap_char_table): Update caller.
2399 * lisp.h: Update prototype.
2400 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
2401 * fontset.c (Ffontset_info):
2402 * casetab.c (set_case_table): Update callers.
2404 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
2406 * keymap.c (struct accessible_keymaps_data)
2407 (struct where_is_internal_data): New structures.
2408 (accessible_keymaps_1, where_is_internal_1): Use them to change
2409 interface to adhere to the one used by map_keymap.
2410 (Faccessible_keymaps, where_is_internal): Use map_keymap.
2411 (accessible_keymaps_char_table, where_is_internal_2): Remove.
2413 * keymap.h (map_keymap_function_t): More informative prototype.
2415 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
2417 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
2418 (looking_at_1): Don't change search_regs and last_thing_searched
2419 if `inhibit-changing-match-data' is non-nil.
2420 (string_match_1, search_buffer, set_search_regs): Likewise.
2421 (syms_of_search): Add Lisp level definition for
2422 `inhibit-changing-match-data' and set it to nil.
2423 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
2424 start and end of the match, instead of using values in search_regs.
2426 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
2428 * minibuf.c (Fcompleting_read): New value `confirm-only'
2429 for `require-match'.
2431 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
2433 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
2434 part of the 2007-06-27 change to syms_of_fileio.
2436 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2438 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2439 Check WINDOWP before using XWINDOW. Consolidate return statements.
2441 2007-06-27 Richard Stallman <rms@gnu.org>
2443 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
2445 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
2447 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
2449 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2451 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
2452 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
2453 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
2454 (_free_internal, memalign): Use them.
2455 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
2456 Initialize to PTHREAD_MUTEX_INITIALIZER.
2457 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
2458 (morecore_nolock): Rename from morecore. All uses changed.
2459 Use only nolock versions of internal allocation functions.
2460 (_malloc_internal_nolock, _realloc_internal_nolock)
2461 (_free_internal_nolock): New functions created from
2462 _malloc_internal, _realloc_internal, and _free_internal.
2463 (_malloc_internal, _realloc_internal, _free_internal): Use them.
2464 Copy hook value to automatic variable before its use.
2465 (memalign): Copy hook value to automatic variable before its use.
2467 2007-06-26 Kenichi Handa <handa@m17n.org>
2469 * coding.c (Ffind_operation_coding_system): Docstring improved.
2470 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
2472 2007-06-25 David Kastrup <dak@gnu.org>
2474 * keymap.c (Fcurrent_active_maps): Add `position' argument.
2475 (Fwhere_is_internal): Adjust call to `current-active-maps' to
2476 cater for additional parameter.
2478 * keymap.h: Adjust number of parameters to `current-active-maps'.
2480 * doc.c (Fsubstitute_command_keys): Adjust call of
2481 `current-active-maps'.
2483 2007-06-25 David Kastrup <dak@gnu.org>
2485 * callint.c (Fcall_interactively): Make the parsing of interactive
2486 specs somewhat more readable.
2488 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2490 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
2491 to scroll bar gap also when bitmap fills fringe. Draw only foreground
2492 if extended background has already been filled.
2494 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2496 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
2497 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
2499 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
2500 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
2501 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
2502 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
2503 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
2504 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
2505 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
2506 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
2507 Run timers during dialog popup.
2508 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
2510 2007-06-21 Jason Rumney <jasonr@gnu.org>
2512 * image.c (convert_mono_to_color_image): Swap fore and background.
2514 2007-06-20 Jason Rumney <jasonr@gnu.org>
2516 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
2517 (w32_free_bdf_font): Unmap memory not handle.
2519 2007-06-20 Sam Steingold <sds@gnu.org>
2521 * gmalloc.c (__morecore): Fix the declaration to comply with the
2524 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
2526 * w32term.c (w32_delete_display): Remove leftover declaration.
2527 (w32_define_cursor, w32_initialize): Make static.
2529 * w32.c (_wsa_errlist): Fix typo in error message.
2530 (init_environment): Ignore any environment variable from the
2531 registry having a null value.
2533 2007-06-20 Glenn Morris <rgm@gnu.org>
2535 * Makefile.in (LIBGIF): Default to -lgif.
2537 2007-06-17 Jason Rumney <jasonr@gnu.org>
2539 * w32menu.c (add_menu_item): Don't use multibyte string functions on
2542 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
2544 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
2545 Fix typo in docstring.
2547 2007-06-16 Eli Zaretskii <eliz@gnu.org>
2549 * w32menu.c (add_menu_item): Escape `&' characters in menu items
2550 and their keybindings.
2552 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
2554 * composite.c (update_compositions): Fix last fix.
2556 2007-06-14 Jason Rumney <jasonr@gnu.org>
2558 * w32.c (get_process_times_fn): New function pointer.
2559 (globals_of_w32): Intialize it if present in kernel32.dll.
2560 (w32_get_internal_run_time): New function.
2562 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
2564 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
2566 * composite.c (update_compositions): Check the validness of
2569 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2571 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
2572 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
2574 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
2575 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
2577 * macgui.h (USE_MAC_TOOLBAR): New define.
2579 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2580 Return immediately unless popup is activated.
2582 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
2583 background to scroll bar gap.
2584 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
2585 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
2586 scroll bars on frame edge. Check fringe background extension.
2587 Don't clear extended fringe background area.
2588 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
2589 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
2590 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
2591 [USE_MAC_TOOLBAR]: New macros.
2592 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
2593 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
2594 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
2595 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
2596 [USE_MAC_TOOLBAR]: New functions.
2597 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
2598 manually if previous repositioning has failed.
2599 (mac_handle_keyboard_event): Use precomputed event kind.
2600 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
2601 as tool bar item click. Handle mouse movement over tool bar items.
2603 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
2604 toolbar_win_gravity.
2605 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
2606 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
2609 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
2610 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
2612 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
2614 * image.c (search_image_cache): Remove unused variable.
2616 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
2618 * xfns.c, xmenu.c: Link to xaw3d if available.
2620 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2622 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
2623 frame_foreground and frame_background.
2625 * image.c (lookup_image): Save frame foreground and background colors.
2626 (search_image_cache): Check if saved and current frame colors match.
2628 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2630 * regex.c (regex_compile): Remove the `regnum' counter.
2631 Use bufp->re_nsub instead. Add support for \(?N:RE\).
2633 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2635 * term.c: Include intervals.h to declare Fget_text_property.
2637 2007-06-10 Jason Rumney <jasonr@gnu.org>
2639 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
2641 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
2643 * callint.c (Fcall_interactively):
2644 * editfns.c (Fdelete_and_extract_region):
2645 * fileio.c (Fread_file_name):
2646 * fns.c (Fmapconcat):
2647 * keyboard.c (cmd_error_internal):
2648 * keymap.c (Fkey_description):
2650 * minibuf.c (read_minibuf):
2651 * search.c (wordify):
2652 * sunfns.c (sel_read):
2653 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
2654 * xfns.c (x_default_scroll_bar_color_parameter):
2655 * xmenu.c (menu_help_callback):
2656 * xselect.c (Fx_get_atom_name):
2657 * xterm.c (x_term_init): Use empty_unibyte_string.
2659 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
2661 * alloc.c (init_strings): Initialize canonical empty strings.
2662 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
2663 canonical empty string when the requested size is 0.
2665 * emacs.c (empty_unibyte_string): Rename from empty_string.
2666 (empty_multibyte_string): New canonical empty string.
2667 (syms_of_emacs): Don't initialize empty_string.
2669 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
2670 string, if appropriate.
2671 (empty_unibyte_string, empty_multibyte_string): New externs.
2672 (empty_string): Remove extern.
2674 * lread.c (syms_of_lread): Use empty_unibyte_string.
2676 2007-06-07 Jason Rumney <jasonr@gnu.org>
2678 * s/ms-w32.h: Don't define HAVE_TZNAME.
2680 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
2682 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2684 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
2686 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
2687 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
2689 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2690 Don't call next handler.
2691 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
2692 Remove argument. Install handler to application.
2693 (set_frame_menubar): Don't change deep_p.
2694 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
2695 FRAME_OUTER_TO_INNER_DIFF_Y.
2696 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2697 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2698 [HAVE_DIALOGS]: New macros.
2699 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
2701 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
2703 * macselect.c [MAC_OSX] (install_service_handler): Rename from
2704 init_service_handler. All callers changed. Return OSStatus value.
2706 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
2707 All callers changed so as not to call SetPortWindowPort.
2708 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2709 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
2710 mac_draw_string_common.
2711 (mac_draw_image_string_qd): Likewise.
2712 (mac_draw_string_common): Use them. Add INLINE.
2713 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
2714 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
2716 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
2717 and FRAME_OUTER_TO_INNER_DIFF_Y.
2718 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
2719 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
2720 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
2721 repositioning window to mac_handle_window_event.
2722 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
2723 saving window location to mac_handle_window_event
2724 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
2725 (install_menu_target_item_handler): Remove argument in extern.
2726 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
2727 Also accept command events.
2728 (do_keystroke): New function created from XTread_socket.
2729 (init_command_handler): Remove functions.
2730 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
2731 and save window location by kEventWindowShowing and kEventWindowHiding
2732 handlers here. Don't call next handler for window state change and
2734 (mac_handle_application_event, mac_handle_keyboard_event)
2735 [TARGET_API_MAC_CARBON]: New functions.
2736 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
2737 kEventWindowShowing and kEventWindowHiding events. Move installation
2738 of mouse, font, text input and menu target item handlers to
2739 install_application_handler.
2740 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
2741 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2743 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2745 (XTread_socket) [TARGET_API_MAC_CARBON]:
2746 Consolidate SendEventToEventTarget calls.
2747 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
2748 Move application activation handler to mac_handle_application_event.
2749 Move keyboard handler to mac_handle_keyboard_event.
2750 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
2751 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
2752 init_command_handler. Call install_application_handler.
2754 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
2755 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
2757 2007-06-07 Glenn Morris <rgm@gnu.org>
2759 * emacs.c (main): Use `emacs-copyright' in --version output.
2761 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
2763 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
2765 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2767 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
2769 * macgui.h: Replace WindowPtr with WindowRef.
2771 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
2772 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
2773 Replace ControlHandle with ControlRef.
2774 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
2776 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
2777 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
2778 Replace ControlHandle with ControlRef.
2779 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
2780 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
2782 * macterm.h (struct scroll_bar): Rename member control_handle_low
2783 and control_handle_high to control_ref_low and control_ref_high.
2785 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
2786 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
2787 respectively. All uses changed.
2788 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
2789 (install_window_handler, remove_window_handler): Replace WindowPtr
2790 with WindowRef in externs.
2792 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
2794 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
2796 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
2798 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
2800 * frame.c (Fmouse_position, Fmouse_pixel_position):
2801 Condition on HAVE_GPM too.
2803 * term.c (term_mouse_highlight): Remove unused variables.
2804 (Fterm_open_connection): Set gpm_zerobased to 1.
2805 (term_mouse_movement, term_mouse_click, handle_one_term_event):
2806 Use zero based co-ordinates.
2807 (handle_one_term_event): Report a drag as mouse movement too.
2809 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
2811 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
2813 * image.c (search_image_cache): New function. Require background
2814 color match if background color is unspecified in the image spec.
2815 (uncache_image, lookup_image): Use it.
2817 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
2819 * window.c (Fshrink_window): Reflow docstring.
2821 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
2823 * Version 22.1 released.
2825 2007-06-01 Richard Stallman <rms@gnu.org>
2827 * xfns.c (x_encode_text): Add GCPRO.
2829 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2831 * xfns.c (x_set_name_internal): Save encoded name before
2832 x_encode_text in case string data is relocated.
2834 2007-05-31 Richard Stallman <rms@gnu.org>
2836 * buffer.c (syms_of_buffer): Doc fix.
2838 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
2840 * sysdep.c (init_sys_modes): Add rather than replace with
2843 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
2846 * termhooks.h (term_mouse_moveto): New extern.
2848 * term.c (mouse_face_window): Rename...
2849 (Qmouse_face_window): ...to this.
2850 (term_show_mouse_face, term_clear_mouse_face)
2851 (term_mouse_highlight): Use Qmouse_face_window.
2852 (term_mouse_moveto): New function.
2853 (term_mouse_position): Make it work.
2854 (syms_of_term): Uncomment assignment to mouse_position_hook.
2855 Staticpro Qmouse_face_window.
2857 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2859 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
2860 around current_column call.
2862 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
2864 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
2865 * xdisp.c (next_element_from_buffer):
2866 * window.c (delete_window):
2867 * term.c (term_mouse_highlight):
2868 * msdos.c (getdefdir):
2869 * macterm.c (mac_create_bitmap_from_bitmap_data)
2870 (init_font_name_table):
2872 * data.c (Fmake_local_variable):
2873 * ccl.c (ccl_driver): Likewise.
2875 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2877 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
2878 Call mac_wakeup_from_rne on window size change.
2880 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
2882 * image.c (uncache_image): Fix typo.
2884 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
2886 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
2888 2007-05-22 Richard Stallman <rms@gnu.org>
2890 * xterm.c (x_connection_closed): Remove NO_RETURN.
2892 2007-05-22 Martin Rudalics <rudalics@gmx.at>
2894 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
2896 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
2898 * image.c (uncache_image): New function.
2899 (Fimage_refresh): New function.
2901 2007-05-20 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
2903 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
2905 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
2907 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
2908 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
2910 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
2912 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
2913 conditional on [HAVE_GPM_H].
2915 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2917 * syntax.c (skip_chars): Update syntax-table only after we checked that
2918 the new location is valid.
2920 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2922 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
2923 mac_get_window_bounds.
2925 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
2927 * Makefile.in (LIBGPM): Allow it to be set from configure.
2928 If set then link Emacs with it.
2930 * config.in: Regenerate.
2932 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
2935 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
2937 (handle_one_term_event, term_gpm): New externs.
2939 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
2940 and allow it to be interrupted by SIGIO.
2942 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
2943 (wait_reading_process_output): Wait on gpm_fd too.
2944 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
2945 (add_gpm_wait_descriptor_called_flag): New variable.
2946 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
2948 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
2949 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
2950 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
2951 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
2952 (make_lispy_event): Add case GPM_CLICK_EVENT.
2953 (read_avail_input): Handle mouse input.
2955 * term.c (write_glyphs_with_face): New function.
2956 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
2957 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
2958 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
2959 (mouse_face_face_id, term_gpm, pos_x, pos_y)
2960 (last_mouse_x, last_mouse_y): New variables.
2961 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
2962 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
2963 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
2964 (Fterm_close_connection): New functions.
2965 (term_init): Initialise mouse_face_window.
2967 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
2969 * xdisp.c (redisplay_window): If first window line is a
2970 continuation line, recompute the new window start instead of
2973 2007-05-18 Glenn Morris <rgm@gnu.org>
2975 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
2976 Suggested by Alfred M. Szmidt <ams@gnu.org>.
2978 2007-05-17 Glenn Morris <rgm@gnu.org>
2980 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
2982 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2984 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
2985 dead key repeat and up events.
2987 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
2989 * image.c (pbm_load): Check image size for monochrome pbm.
2991 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
2993 * xterm.c (XTread_socket): Revert last change.
2995 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
2997 * image.c (pbm_load): Correctly check image size for greyscale pbm.
2999 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
3001 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3003 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
3006 2007-05-07 Andreas Schwab <schwab@suse.de>
3008 * keymap.c (Flookup_key): Fix typo in last change.
3010 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3012 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
3013 mapping for unibyte strings.
3015 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3017 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
3018 (Fx_popup_dialog) [MAC_OSX]: Likewise.
3020 2007-04-29 Richard Stallman <rms@gnu.org>
3022 * insdel.c (replace_range): For undo, record insertion first.
3024 2007-04-29 Andreas Schwab <schwab@suse.de>
3026 * lisp.h (VECSIZE): Use OFFSETOF.
3028 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3030 * xdisp.c (try_window_reusing_current_matrix): Fix number of
3033 2007-04-28 Richard Stallman <rms@gnu.org>
3035 * lread.c (read_escape): In a string, \s is always space.
3037 2007-04-27 Jan Dj
\e,Ad
\e(Brv <jan.h.d@swipnet.se>
3039 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
3041 * gtkutil.c (xg_update_menubar, create_menus): Create empty
3042 submenu for menu bar items.
3044 See ChangeLog.10 for earlier changes.
3047 ;; coding: iso-2022-7bit
3048 ;; add-log-time-zone-rule: t
3051 Copyright (C) 2007 Free Software Foundation, Inc.
3053 This file is part of GNU Emacs.
3055 GNU Emacs is free software; you can redistribute it and/or modify
3056 it under the terms of the GNU General Public License as published by
3057 the Free Software Foundation; either version 3, or (at your option)
3060 GNU Emacs is distributed in the hope that it will be useful,
3061 but WITHOUT ANY WARRANTY; without even the implied warranty of
3062 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3063 GNU General Public License for more details.
3065 You should have received a copy of the GNU General Public License
3066 along with GNU Emacs; see the file COPYING. If not, write to the
3067 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
3068 Boston, MA 02110-1301, USA.
3070 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40