2008-03-26 Chong Yidong * Version 22.2 released. 2008-03-10 Kenichi Handa * fileio.c (Finsert_file_contents): Don't make CCL program to append "CCL: Quitted" when the decoding is quitted, but just signal `quit'. * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't append "CCL: Quitted" when the CCL program is quitted. (setup_ccl_program): Initialize ccl->quit_silently to zero. * ccl.h (struct ccl_program): New member quit_silently. 2008-03-08 Andreas Schwab * process.h (struct Lisp_Process): Declare bit field as unsigned. 2008-03-07 Stefan Monnier * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum size of resulting string. 2008-03-05 Jason Rumney * dispnew.c (adjust_glyph_matrix): Initialize window_height. 2008-03-03 YAMAMOTO Mitsuharu * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. Don't pretend as if characters with display property haven't been consumed for string-replacing-string case. 2008-02-29 Chong Yidong * xdisp.c (get_overlay_strings_1): Add missing argument type. 2008-02-27 YAMAMOTO Mitsuharu * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. 2008-02-27 Chong Yidong * process.c (wait_reading_process_output): Check for window changes caused by timers. Suggested by Johan Bockg,Ae(Brd. 2008-02-26 Chong Yidong * editfns.c (Fformat): Doc fix. 2008-02-25 Chong Yidong * keyboard.c (command_loop_1): Revert 2006-10-09 change. 2008-02-24 Jason Rumney * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode. 2008-02-24 Ulrich Neumerkel (tiny change) * xterm.c (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1. 2008-02-19 Stefan Monnier * intervals.h (INT_LISPLIKE): Remove. It may misfire. (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it. 2008-02-18 Jason Rumney * w32fns.c (Fw32_shell_execute): Encode parameters. 2008-02-15 Jason Rumney * w32term.c (x_draw_glyph_string_background): Clear the background manually when cleartype is in use. (x_draw_glyph_string_foreground): Draw text transparently when cleartype is in use. 2008-02-09 Eli Zaretskii * fileio.c (syms_of_fileio) : Doc fix. 2008-02-05 Jason Rumney * w32term.c (w32_read_socket) : Use locale-coding-system instead of using mule-unicode-* charsets directly. 2008-02-05 Juanma Barranquero * unexec.c (make_hdr): * unexhp9k800.c (read_header): Replace `legal' with `valid'. 2008-02-04 YAMAMOTO Mitsuharu * macterm.c [MAC_OSX] (fn_keycode_to_keycode_table): Add more entries that ignore kEventKeyModifierFnMask. (XTread_socket) [MAC_OSX]: Move code for ignoring kEventKeyModifierFnMask for some keys ... (mac_mapped_modifiers) [MAC_OSX]: ... to here. Add argument KEY_CODE. All callers changed. (mac_to_emacs_modifiers): New argument UNMAPPED_MODS. All callers changed. (mac_quit_char_key_p, XTread_socket): Get Emacs modifiers from mapped modifiers together with original ones. 2008-02-01 Kenichi Handa * ccl.c (CCL_WRITE_CHAR): Fix overflow checking. (CCL_WRITE_MULTIBYTE_CHAR): Likewise. 2008-01-31 Kenichi Handa * keyboard.c (make_ctrl_char): If C is a multibyte character, just return it ORed with ctrl_modifier. 2008-01-26 Thien-Thi Nguyen * fns.c (Fclrhash): Return TABLE. 2008-01-21 YAMAMOTO Mitsuharu * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p is set even without positional changes. (x_scroll_bar_clear): Set bar->redraw_needed_p. * macterm.h (struct scroll_bar): New member `redraw_needed_p'. 2008-01-19 Kenichi Handa * coding.c (detect_coding_iso2022): New arg latin_extra_code_state. Allow Latin extra codes only when *latin_extra_code_state is nonzero. (detect_coding_mask): If there is a NULL byte, detect the encoding as UTF-16 or binary. If Latin extra codes exist, detect the encoding as ISO-2022 only when no other proper encoding is found. 2008-01-17 Jason Rumney * xterm.c (handle_one_xevent): Revert to counting chars not bytes. * w32term.c (w32_read_socket) : Decode characters outside the unicode range available in MULE by locale-coding-system. Improve dbcs lead byte detection. Set event timestamp and modifiers earlier. 2008-01-17 Glenn Morris * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according to HAVE_X86_64_LIB64_DIR. 2008-01-11 YAMAMOTO Mitsuharu * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. [MAC_OSX] (init_mac_osx_environment): Initialize it. [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 when used on child processes. 2008-01-10 Chong Yidong * process.c (wait_reading_process_output): Check for window changes caused by timers. 2008-01-08 Glenn Morris * emacs.c (main): Set copyright year to 2008. 2008-01-07 YAMAMOTO Mitsuharu * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of #ifdef MAC_OS. 2008-01-04 Richard Stallman * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes. 2007-12-24 YAMAMOTO Mitsuharu * process.c (make_process): Initialize pty_flag to Qnil instead of 0 as it is not a bit field on Emacs 22 yet. * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area. 2007-12-23 YAMAMOTO Mitsuharu * macmenu.c (fill_menubar) [MAC_OSX]: Add workaround for Mac OS X 10.5 about not changing Help menu title. 2007-12-22 Eli Zaretskii * callint.c (syms_of_callint) : Add reference to history-length in the doc string. 2007-12-17 Jason Rumney * w32fns.c (w32_wnd_proc) : Cast char to unsigned before passing as wParam. 2007-12-14 Jason Rumney * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT for characters above 127. 2007-12-13 Jason Rumney * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check before dereferencing array. (lookup_vk_code): Remove zero comparison. 2007-12-02 Magnus Henoch * process.c (make_process): Initialize pty_flag to 0. 2007-12-02 Jason Rumney * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly specified XBMs. 2007-12-01 Richard Stallman * xdisp.c (syms_of_xdisp) : Doc fix. 2007-11-30 YAMAMOTO Mitsuharu * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]: New variable. (mac_try_close_socket) [MAC_OSX]: New function. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Update cfsockets_for_select. Replace invalid CFRunLoop source. * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]: Use mac_try_close_socket. 2007-11-28 Petr Salinger (tiny change) * s/gnu-kfreebsd.h: New file. 2007-11-27 YAMAMOTO Mitsuharu * unexmacosx.c (unrelocate): New argument BASE. Use it instead of reloc_base. (copy_dysymtab): Compute relocation base here. (rebase_reloc_address) [__ppc64__]: New function. (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be changed. 2007-11-26 Jason Rumney * w32proc.c (sys_spawnve): Quote args with wildcards. 2007-11-26 Andreas Schwab * process.c (list_processes_1): Fix indentation level of the command column. 2007-11-24 YAMAMOTO Mitsuharu * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and __objc_* sections. (unrelocate) [_LP64]: Set relocation base to address of data segment. 2007-11-23 Andreas Schwab * editfns.c (Fformat): Handle %c specially since it requires the argument to be of type int. 2007-11-22 Jan Dj,Ad(Brv * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if file for image is nil. 2007-11-19 Jason Rumney * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping returns NULL on failure. 2007-11-16 Stefan Monnier * search.c (Fset_match_data): Remove the `evaporate' feature. (unwind_set_match_data): Don't use the `evaporate' feature. 2007-11-15 Andreas Schwab * editfns.c (Fformat): Correctly format EMACS_INT values. Also take precision into account when formatting an integer. 2007-11-15 Juanma Barranquero * macfns.c (Fx_create_frame, Fx_display_pixel_width) (Fx_display_pixel_height, Fx_display_planes) (Fx_display_color_cells, Fx_server_max_request_size) (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) (Fx_display_visual_class, Fx_display_save_under): * w32fns.c (Fx_create_frame, Fx_display_pixel_width) (Fx_display_pixel_height, Fx_display_planes) (Fx_display_color_cells, Fx_server_max_request_size) (Fx_server_vendor, Fx_server_version, Fx_display_screens) (Fx_display_mm_height, Fx_display_mm_width) (Fx_display_backing_store, Fx_display_visual_class) (Fw32_select_font, Fx_display_save_under): * xfns.c (Fx_create_frame, Fx_display_pixel_width) (Fx_display_pixel_height, Fx_display_planes) (Fx_display_color_cells, Fx_server_max_request_size) (Fx_server_vendor, Fx_server_version, Fx_display_backing_store) (Fx_display_save_under): Fix typos in docstrings. 2007-11-14 Juanma Barranquero * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values corresponding to deleted entries; they are an implementation detail. (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): Remove variables. (Fw32_define_rgb_color, Fw32_load_color_file): Fix typos in docstrings. (Fx_server_version): Reflow docstring. (Fw32_shell_execute): Doc fixes. 2007-11-13 Juanma Barranquero * w32fns.c (Fw32_register_hot_key): Don't try to register hot key if w32_parse_hot_key returned nil. 2007-11-10 Juri Linkov * puresize.h (BASE_PURESIZE): Increase to 1130000. 2007-11-10 Stefan Monnier * xdisp.c (load_overlay_strings): Fix copy&paste typo. 2007-11-07 Chong Yidong * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE twice. * xdisp.c (handle_face_prop): Fix last change. 2007-11-06 Jan Dj,Ad(Brv * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and abort with a message on unhandled store_type values. 2007-11-04 Richard Stallman * xdisp.c (handle_face_prop): Test for strings that came from overlays, not just for after-strings and before-strings. Call face_for_overlay_string and pass the overlay to it. (handle_display_prop): Determine whether property came from an overlay. Pass OVERLAY arg to handle_single_display_spec. (handle_single_display_spec): New arg OVERLAY sets it->from_overlay. (load_overlay_strings): Fill in it->string_overlays. (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays. * xfaces.c (face_for_overlay_string): Function renamed from face_at_buffer_position_no_overlays, and add arg OVERLAY. * dispextern.h (struct it): New elt string_overlays. New elt from_overlay, also in stack. Rearrange a few elements. (face_for_overlay_string): Decl renamed from face_at_buffer_position_no_overlays, and add argument. 2007-11-03 Richard Stallman * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays to get the base face for an overlay string. * dispextern.h (face_at_buffer_position_no_overlays): Add decl. * xfaces.c (face_at_buffer_position_no_overlays): New function. * xdisp.c (handle_stop): Move some code out of loop. 2007-11-01 Johan Bockg,Ae(Brd * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): Don't set s->stippled_p here, since it has already been set by x_set_glyph_string_gc from x_draw_glyph_string. 2007-10-31 YAMAMOTO Mitsuharu * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes): Fix conversion from Lisp object to ATSUFontID. 2007-10-30 Jason Rumney * xdisp.c (Fformat_mode_line): Do nothing when noninteractive. 2007-10-30 YAMAMOTO Mitsuharu * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge): Don't assume regions are aligned to page boundary. (print_load_command_name): Add LC_UUID if defined. 2007-10-30 Richard Stallman * emacs.c (syms_of_emacs) : Reflow docstring. 2007-10-29 Juanma Barranquero * emacs.c (syms_of_emacs) : Fix typo in docstring. : Reflow docstring. 2007-10-26 Martin Rudalics * window.c (window_min_size_2): Don't count header-line. 2007-10-25 Juanma Barranquero * w32.c (init_environment): Fix tiny memory leak. (w32_get_resource): Remove unused variable `ok'. 2007-10-24 Jason Rumney * w32fns.c: Include math.h. 2007-10-24 Richard Stallman * frame.c (x_figure_window_size): For fullscreen case, set USPosition | PPosition without clobbering rest of window_prompting. * keyboard.c (Fcurrent_idle_time): Doc fix. * print.c (Fwith_output_to_temp_buffer): Doc fix. 2007-10-19 Juanma Barranquero * process.c (Fset_process_filter): Doc fix. 2007-10-17 Glenn Morris * minibuf.c (Qcompletion_ignore_case): New Lisp_Object. (syms_of_minibuf): Add Qcompletion_ignore_case. * dired.c (Qcompletion_ignore_case): Change to external. (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case. * fileio.c (Qcompletion_ignore_case): New external Lisp_Object. (Fread_file_name): Use it rather than intern'ing. * coding.c (Qcompletion_ignore_case): New external Lisp_Object. (Fread_coding_system): Ignore case of user input. 2007-10-16 YAMAMOTO Mitsuharu * xdisp.c (handle_display_prop): Ignore display specs after replacing one when string text is being replaced. (handle_single_display_spec): Pretend as if characters with display property haven't been consumed only when buffer text is being replaced. 2007-10-14 Juanma Barranquero * eval.c (do_autoload): Don't save autoloads. * data.c (Ffset): Save autoload of the function being set. 2007-10-07 John Paul Wallington * xfns.c (x_create_tip_frame): Set the `display-type' frame parameter before setting up faces. 2007-10-13 Eli Zaretskii * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving selected frame'' on MSDOS). 2007-10-12 Martin Rudalics * frame.c (Qexplicit_name): New variable. (x_report_frame_params): Report it in parameter alist. (syms_of_frame): Intern and staticpro it. 2007-10-09 Jason Rumney * w32term.c (x_set_window_size): Disable code that attempts to tell Lisp code about a size change before it actually happens. 2007-10-09 Richard Stallman * xdisp.c (handle_invisible_prop): After setting up an ellipsis, return HANDLED_RETURN. 2007-10-06 Martin Rudalics * keyboard.c (kbd_buffer_get_event): Break loop waiting for input when there's an unread command event. * frame.c (focus_follows_mouse): Moved here from frame.el to allow window autoselection act appropriately when leaving selected frame. (syms_of_frame): Initialize focus_follows_mouse. * frame.h (focus_follows_mouse): Extern it. * macterm.c (XTread_socket): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame. * msdos.c (dos_rawgetc): Likewise. * w32term.c (w32_read_socket): Likewise. * xterm.c (handle_one_xevent): Likewise. * xdisp.c (syms_of_xdisp): In doc-string of mouse-autoselect-window mention focus-follows-mouse. 2007-10-06 Andreas Schwab * fileio.c (Fwrite_region): Ignore EINVAL error from fsync. 2007-10-05 YAMAMOTO Mitsuharu * macterm.c (mac_load_query_font): Fix missing return value. [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): Add BLOCK_INPUT. 2007-10-04 Juanma Barranquero * image.c (syms_of_image) : Fix typo in docstring. 2007-10-02 Richard Stallman * xdisp.c (get_window_cursor_type): Implement documented behavior for cursor-in-non-selected-windows = t. 2007-10-01 Juanma Barranquero * lread.c (Fload): Fix typo in docstring. 2007-09-29 Juri Linkov * emacs.c (standard_args): Change priority of "--no-splash" from 40 to 3. Add "--no-desktop" with the same priority. 2007-09-29 Jason Rumney * w32.c (w32_get_resource): Always close registry keys. 2007-09-27 Jason Rumney * makefile.w32-in (LIBS): Add COMCTL32. * w32fns.c (globals_of_w32fns): Init common controls. 2007-09-21 Richard Stallman * image.c (our_memory_buffer): Renamed from omfib_buffer. 2007-09-21 Juanma Barranquero * w32term.c (x_draw_glyph_string): Use strike_through_color, not underline_color, to draw strike-through. 2007-09-20 Glenn Morris * process.c (Fmake_network_process): Doc fix. 2007-09-19 Richard Stallman * buffer.c (Foverlays_at): Doc fix. 2007-09-18 Stefan Monnier * fns.c (Fplist_put): Preserve uneven tail data. 2007-09-16 Jan Dj,Ad(Brv * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf when we have no file name for the icon. (xg_tool_bar_expose_callback): Remove. (xg_create_tool_bar): Don't connect expose signal to xg_tool_bar_expose_callback. 2007-09-16 Andreas Schwab * alloc.c (reset_malloc_hooks): Set the hooks to the previous values instead of zapping them. 2007-09-15 Glenn Morris * s/hpux.h: No longer define `static' as nothing. 2007-09-14 Glenn Morris * fringe.c (init_fringe_bitmap) : Move to file scope. * gtkutil.c (xg_separator_p) : Move to file scope. * image.c (our_memory_fill_input_buffer) : Move to file scope and rename to omfib_buffer for clarity. (gif_load) : Move to file scope. 2007-09-14 Peter O'Gorman (tiny change) * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations. * termhooks.h (enum event_kind): Remove trailing comma. * frame.h (enum): Remove trailing comma. 2007-09-14 Jan Dj,Ad(Brv * keyboard.c, xterm.c, xfaces.c (abs): #undef before #define. 2007-09-12 Glenn Morris * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. (menu_grab_callback): All uses changed. * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. (x_reply_selection_request): All uses changed. 2007-09-06 Pixel (tiny change) * image.c (gif_load): Fix bug: Handle nonexistent colormap. 2007-09-06 Glenn Morris * gtkutil.c (menu_grab_callback) : * xselect.c (x_reply_selection_request) : Move static variable to file scope. 2007-09-02 Dhuvra Krishnamurthy (tiny change) * w32proc.c (delete_child): Don't terminate threads of zombies. 2007-09-02 Jan Dj,Ad(Brv * keyboard.c: Qrtl is new. (parse_tool_bar_item): Handle :rtl keyword. (syms_of_keyboard): Intern :rtl keyword. * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. * gtkutil.c (file_for_image, find_rtl_image): New functions. (xg_get_image_for_pixmap): Use file_for_image (update_frame_tool_bar): If direction is RTL, use RTL image if defined. Use Gtk stock images or named theme icons if defined. 2007-08-29 Martin Rudalics * keyboard.h (struct kboard): New elt Vlast_repeatable_command. * keyboard.c (syms_of_keyboard): Set up new Lisp variable last-repeatable-command. (init_kboard): Initialize Vlast_repeatable_command. (command_loop_1): Set it to real_this_command unless that was bound to an input event. (mark_kboards): Mark it. 2007-08-28 Juanma Barranquero * image.c (syms_of_image) : Doc fixes. 2007-08-28 Jan Dj,Ad(Brv * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED so no Lisp code is executed. 2007-08-27 YAMAMOTO Mitsuharu * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle for nonexistent or zero-width glyph in composition glyph. 2007-08-27 Richard Stallman * eval.c (condition-case): Doc fix. 2007-08-27 Masatake YAMATO * xfaces.c (tty_supports_face_attributes_p): Fix code for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code was copied and not edited. 2007-08-23 Stefan Monnier * lread.c (load_warn_old_style_backquotes): Fix up array size typo. 2007-08-22 Stefan Monnier * lread.c (Qold_style_backquotes): New var. (syms_of_lread): Init and staticpro it. (load_warn_old_style_backquotes): New fun. (Fload): Use them to warn about old style backquotes. (end_of_file_error, Fload): Remove unused vars. * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. * lread.c (Vold_style_backquotes): New var. (syms_of_lread): Init and export it to Elisp. (read1): Set it when we find an old-style (back)quote. 2007-08-22 Jason Rumney * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. 2007-08-21 Stefan Monnier * insdel.c (reset_var_on_error): New fun. (signal_before_change, signal_after_change): Use it to reset (after|before)-change-functions to nil in case of error. Bind inhibit-modification-hooks to t. Don't bind (after|before)-change-functions to nil while they run. 2007-08-19 Andreas Schwab * alloc.c (pure): Round PURESIZE up. 2007-08-17 Jan Dj,Ad(Brv * xterm.c (handle_one_xevent): Remove check that mouse click is in active frame. 2007-08-15 Philippe Waroquiers * term.c (tty_default_color_capabilities): Declare static variables in file scope, to avoid HPUX compiler problem. 2007-08-13 Jan Dj,Ad(Brv * gtkutil.c (update_frame_tool_bar): Use -1 as index to gtk_toolbar_insert. 2007-08-11 YAMAMOTO Mitsuharu * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when filling pixmap with stippled background. 2007-08-10 Stefan Monnier * print.c (new_backquote_output): Rename from old_backquote_output. (print): Inverse its logic (according to its name) so as to match the behavior of new_backquote_flag in lread.c. 2007-08-09 YAMAMOTO Mitsuharu * gmalloc.c (posix_memalign): New function. 2007-08-08 Glenn Morris * Replace `iff' in doc-strings and comments. 2007-08-07 Chong Yidong * dispextern.h (struct image): New members. * image.c: Sync to trunk version. (search_image_cache, uncache_image, image-refresh): New functions. Check for fg and bg colors. (lookup_image): Use search_image_cache. Cache fg and bg colors. (pbm_load): Another check for invalid image data. (png_load): Ignore default background field. * xdisp.c (move_it_by_lines): Remove incorrect optimization. 2007-08-07 Jan Dj,Ad(Brv * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. 2007-08-07 Sam Steingold * gmalloc.c (__morecore): Fix the declaration to comply with the definition. 2007-08-07 YAMAMOTO Mitsuharu * emacs.c (main) [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: Call malloc_enable_thread on interactive startup. * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) [USE_PTHREAD]: Conditionalize with it. (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: New functions. 2007-08-06 Chong Yidong * xdisp.c (redisplay_window): When restoring original buffer position, make sure it is still valid. 2007-08-06 Martin Rudalics * window.c (window_min_size_2): New function. (window_min_size_1, size_window, Fdisplay_buffer) (Fsplit_window, adjust_window_trailing_edge): Use it to avoid windows without mode- or header-lines when window-min-height is too small. (size_window): Reset nodelete_p after testing it, following an earlier note by Kim F. Storm. (display_buffer): Do not set split_height_threshold to twice the value of window_min_height to avoid changing the value of a customizable variable. Rather explicitly check whether the height of the window that shall be splitted is at least as large as split_height_threshold. (Fwindow_full_width_p): New defun. (syms_of_window): Defsubr it. * window.h: Add EXFUN for Fwindow_full_width_p. 2007-08-06 Andreas Schwab * window.c (Fdisplay_buffer): Use NILP. (Fset_window_scroll_bars): Likewise. 2007-08-03 Richard Stallman * fileio.c (Fvisited_file_modtime): Use make_time. 2007-08-01 Ryo Yoshitake (tiny change) * mac.c (init_mac_osx_environment): Adjust load-path on self-contained build. 2007-07-30 Stefan Monnier * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. 2007-07-25 Glenn Morris * Relicense all FSF files to GPLv3 or later. * COPYING: Switch to GPLv3. 2007-07-24 Jason Rumney * w32fns.c (x_real_positions): Get real position from OS instead of calculating it. 2007-07-23 Jason Rumney * filelock.c (current_lock_owner): Allow for @ sign in username. 2007-07-20 Eli Zaretskii * makefile.w32-in (clean): Don't delete *~. * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): Define if not defined. 2007-07-18 Jason Rumney * w32proc.c (w32_executable_type): Handle 64 bit executables. 2007-07-16 Juanma Barranquero * coding.c (Ffind_operation_coding_system): * eval.c (For, Fand, Fprogn): * keyboard.c (Ftrack_mouse): * print.c (Fwith_output_to_temp_buffer): * window.c (Fsave_window_excursion): Doc fixes (some reported by Johan Bockg,Ae(Brd). 2007-07-15 Richard Stallman * data.c (Fsetq_default): Doc fix. * eval.c (Fsetq): Doc fix. 2007-07-11 Jason Rumney * makefile.w32-in (LIBS): Include OLE32. * w32fns.c (w32_msg_pump) : Initialize COM. (w32_msg_pump) : Uninitialize COM. 2007-06-28 YAMAMOTO Mitsuharu * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Check WINDOWP before using XWINDOW. 2007-06-27 Juanma Barranquero * buffer.c (syms_of_buffer) : Fix typo in docstring. 2007-06-26 YAMAMOTO Mitsuharu * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. (_free_internal, memalign): Use them. (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: Initialize to PTHREAD_MUTEX_INITIALIZER. (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. (morecore_nolock): Rename from morecore. All uses changed. Use only nolock versions of internal allocation functions. (_malloc_internal_nolock, _realloc_internal_nolock) (_free_internal_nolock): New functions created from _malloc_internal, _realloc_internal, and _free_internal. (_malloc_internal, _realloc_internal, _free_internal): Use them. Copy hook value to automatic variable before its use. (memalign): Copy hook value to automatic variable before its use. 2007-06-21 Jason Rumney * image.c (convert_mono_to_color_image): Swap fore and background. 2007-06-20 Jason Rumney * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. (w32_free_bdf_font): Unmap memory not handle. 2007-06-20 Juanma Barranquero * w32.c (_wsa_errlist): Fix typo in error message. (init_environment): Ignore any environment variable from the registry having a null value. 2007-06-17 Jason Rumney * w32menu.c (add_menu_item): Don't use multibyte string functions on unicode strings. 2007-06-17 Juanma Barranquero * xdisp.c (syms_of_xdisp) : Fix typo in docstring. 2007-06-16 Eli Zaretskii * w32menu.c (add_menu_item): Escape `&' characters in menu items and their keybindings. 2007-06-14 Chong Yidong * composite.c (update_compositions): Check validity of compositions. 2007-06-10 Jason Rumney * w32fns.c (Fx_file_dialog): Take size from struct not pointer. 2007-06-06 Jason Rumney * s/ms-w32.h: Don't define HAVE_TZNAME. 2007-06-06 Chong Yidong * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. 2007-06-06 Martin Rudalics * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. 2007-06-05 Dan Nicolaescu * xfaces.c (syms_of_xfaces): Delete stray semicolon. * xdisp.c (next_element_from_buffer): * window.c (delete_window): * term.c (term_mouse_highlight): * msdos.c (getdefdir): * macterm.c (mac_create_bitmap_from_bitmap_data) (init_font_name_table): * fns.c (Fsxhash): * data.c (Fmake_local_variable): * ccl.c (ccl_driver): Likewise. 2007-06-04 Juanma Barranquero * window.c (Fshrink_window): Reflow docstring. 2007-06-02 Chong Yidong * Version 22.1 released. * xfns.c (x_set_name_internal): Undo last change. 2007-06-01 Richard Stallman * xfns.c (x_encode_text): Add GCPRO. (x_set_name_internal): Separate USE_GTK and non-USE_GTK cases. 2007-06-01 YAMAMOTO Mitsuharu * xfns.c (x_set_name_internal): Save encoded name before x_encode_text in case string data is relocated. 2007-05-31 Richard Stallman * buffer.c (syms_of_buffer): Doc fix. 2007-05-28 YAMAMOTO Mitsuharu * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t around current_column call. 2007-05-24 Chong Yidong * xdisp.c (redisplay_window): If first window line is a continuation line, recompute the new window start instead of recentering. 2007-05-24 YAMAMOTO Mitsuharu * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event): Call mac_wakeup_from_rne on window size change. 2007-05-22 Richard Stallman * xterm.c (x_connection_closed): Remove NO_RETURN. 2007-05-19 Stefan Monnier * syntax.c (skip_chars): Update syntax-table only after we checked that the new location is valid. 2007-05-19 YAMAMOTO Mitsuharu * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around mac_get_window_bounds. 2007-05-17 Glenn Morris * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. 2007-05-16 YAMAMOTO Mitsuharu * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert dead key repeat and up events. 2007-05-13 Chong Yidong * xterm.c (XTread_socket): Revert last change. 2007-05-12 Chong Yidong * image.c (pbm_load): Correctly check image size for greyscale pbm. * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). 2007-05-07 Stefan Monnier * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM) 2007-05-06 Richard Stallman * process.c: Undo May 3 change. 2007-05-03 Per Cederqvist (tiny change) * process.c (Faccept_process_output): Revert 2006-03-22 change so that the third argument once again is in microseconds (not milliseconds). This makes it compatible with Emacs 21 and earlier. Problem found by Henrik Rindl,Av(Bw. 2007-05-01 YAMAMOTO Mitsuharu * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c. (Fx_popup_dialog) [MAC_OSX]: Likewise. 2007-04-29 Richard Stallman * insdel.c (replace_range): For undo, record insertion first. 2007-04-29 YAMAMOTO Mitsuharu * xdisp.c (try_window_reusing_current_matrix): Fix number of disabled lines. 2007-04-27 Jan Dj,Ad(Brv * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog. * gtkutil.c (xg_update_menubar, create_menus): Create empty submenu for menu bar items. 2007-04-24 Chong Yidong * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED values of the actual window. 2007-04-23 Richard Stallman * process.c (Fstart_process): Doc fix. 2007-04-23 Eli Zaretskii * process.c (Fstart_process): Doc fix. 2007-04-22 Richard Stallman * abbrev.c (Fdefine_abbrev): Doc fix. * keymap.c (Fdefine_key): Minor doc fix. 2007-04-21 Glenn Morris * keymap.c (Fdefine_key): Fix info ref in doc string. 2007-04-20 Glenn Morris * sysdep.c (init_system_name): Don't accept localhost.localdomain. 2007-04-19 Juanma Barranquero * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties) (Fminibuffer_completion_contents, Fdelete_minibuffer_contents): Doc fixes. 2007-04-16 Chong Yidong * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Set garbaged flag in presence of window margins. (showing_window_margins_p): New function. * xdisp.c (cursor_row_p): Only end row on newline if it's a display string. Suggested by Lennart Borgman. 2007-04-16 YAMAMOTO Mitsuharu * alloc.c (mem_insert): Set min_heap_address and max_heap_address if they are not yet initialized. 2007-04-15 Chong Yidong * xdisp.c (redisplay_window): When deciding whether or not to recenter, don't use the reset values of BEG_UNCHANGED and END_UNCHANGED. 2007-04-13 Kim F. Storm * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes and check that buffer is still alive upon return. 2007-04-13 YAMAMOTO Mitsuharu * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h. (mac_screen_config_changed): New variable. (mac_handle_dm_notification, init_dm_notification_handler) (mac_get_screen_info): New functions. [MAC_OS8] (main): Call init_dm_notification_handler. (mac_initialize) [MAC_OSX]: Likewise. (XTread_socket): Call mac_get_screen_info if screen config changed. (mac_initialized): Make static. (mac_initialize_display_info): Remove function. (mac_term_init): Call mac_get_screen_info. Add partial contents of mac_initialize_display_info. 2007-04-12 YAMAMOTO Mitsuharu * mac.c (xrm_get_preference_database, Fmac_get_preference) [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize. * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): Use GetGlobalMouse instead of GetMouse and LocalToGlobal. (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero. (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and dpyinfo->width are those of whole screen. 2007-04-10 Chong Yidong * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement glyph pointer before start of glyph row. 2007-04-09 YAMAMOTO Mitsuharu * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds. (C_SWITCH_SYSTEM): Remove `-I../mac/src'. 2007-04-09 Martin Rudalics * indent.c (Fmove_to_column): Set next_boundary with correct start pt. 2007-04-08 Richard Stallman * xdisp.c (syms_of_xdisp) : Default 100. 2007-04-07 Chong Yidong * editfns.c (Ftranspose_regions): Validate interval before setting text properties. 2007-04-03 Eli Zaretskii * emacs.c (main): Fix instructions for building Emacs for profiling. 2007-04-03 Jan Dj,Ad(Brv * gtkutil.c (xg_update_menubar): Call g_list_next after moving menu bar item. 2007-04-02 Juanma Barranquero * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX. 2007-04-01 Chong Yidong * keymap.c (Fcommand_remapping): New optional argument. (where_is_internal): Use new keymaps argument. (Fkey_binding): Caller changed. * keyboard.c (command_loop_1): Caller changed. 2007-03-31 Eli Zaretskii * window.c (Fget_lru_window): Doc fix. 2007-03-30 Chong Yidong * undo.c (Fprimitive_undo): Give clearer error message when trying to change text properties outside accessible part of buffer. 2007-03-29 Kim F. Storm * process.c (wait_reading_process_output) [HAVE_PTYS]: When EIO happens, clear channel from descriptor masks before raising SIGCHLD signal to avoid busy loop between read and sigchld_handler. (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes). 2007-03-29 Juanma Barranquero * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid. * process.c (Fformat_network_address): Return nil when the argument vector contains invalid values. 2007-03-28 YAMAMOTO Mitsuharu * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD. [USE_PTHREAD]: Include pthread.h. (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables. (malloc_initialize_1): New function created from __malloc_initialize. (__malloc_initialize): Use it. (LOCK, UNLOCK): New macros to make malloc etc. thread safe. (_malloc_internal, _free_internal, _realloc_internal): Use them. * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr. 2007-03-27 Juanma Barranquero * process.c (Fformat_network_address): Make args array big enough to format IPv6 addresses. 2007-03-27 Glenn Morris * m/hp800.h: Restore HP-UX support (removed 2007-01-29). 2007-03-26 YAMAMOTO Mitsuharu * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole screen size in pixels by millimeters per pixel of main display. * macselect.c (get_scrap_target_type_list, x_own_selection): Move assignments outside predicate macros. (Vselection_converter_alist): Doc fix. * macterm.c (create_text_encoding_info_alist): Move assignments outside predicate macros. (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and dpyinfo->width are those of whole screen. 2007-03-26 Sam Steingold * process.c (sigchld_handler): Delay by 1ms instead of 1s to alleviate sluggishness (the original problem is still fixed). 2007-03-25 Kim F. Storm * intervals.c (merge_properties): Use explicit loop instead of Fplist_member to avoid QUIT. Don't use Fcdr. (intervals_equal): Likewise. Rewrite loop to perform length check on the fly rather than calling Flength. Don't use Fcar. 2007-03-24 Eli Zaretskii * editfns.c (Fgoto_char): Doc fix. * indent.c (Findent_to): Doc fix. 2007-03-24 Chong Yidong * editfns.c (Ftranspose_regions): Use set_text_properties_1 instead of Fset_text_properties to avoid GC. Signal after change. 2007-03-24 Eli Zaretskii * xfns.c (Fx_show_tip): Doc fix. * macfns.c (Fx_show_tip): Doc fix. * w32fns.c (Fx_show_tip): Doc fix. 2007-03-23 Kim F. Storm * intervals.c (merge_properties, intervals_equal): Use Fplist_member instead of Fmemq to find properties. 2007-03-23 Glenn Morris * unexhp9k800.c: Restore file with clarified legal status. * m/sr2k.h: Restore since dependency unexhp9k800.c is restored. 2007-03-22 Chong Yidong * widget.c (EmacsFrameSetCharSize): Catch X errors. 2007-03-22 Kenichi Handa * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with non-encoded file name. (Frename_file): Likewise. (Fadd_name_to_file): Likewise. (Fmake_symbolic_link): Likewise. 2007-03-20 YAMAMOTO Mitsuharu * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h. (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h. (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and systime.h. (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and systime.h. (macfns.o): Remove duplicate dependency on systime.h. * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose. (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite. * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose. (Fdo_auto_save): Add BLOCK_INPUT around fwrite. * keyboard.c (record_char): Add BLOCK_INPUT around fwrite. (Fopen_dribble_file): Add BLOCK_INPUT around fclose. * lread.c: Include blockinput.h. (readchar, Fget_file_char): Add BLOCK_INPUT around getc. (unreadchar): Add BLOCK_INPUT around ungetc. (load_unwind): Add BLOCK_INPUT around fclose. * print.c: Include blockinput.h. (Fredirect_debugging_output): Add BLOCK_INPUT around fclose. * process.c (Fmake_network_process) [HAVE_GETADDRINFO]: Clear immediate_quit before calling freeaddrinfo. Add BLOCK_INPUT around freeaddrinfo. * term.c: Include blockinput.h. (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite. 2007-03-19 Richard Stallman * keyboard.c (NUM_RECENT_KEYS): Bump up to 300. * buffer.c (syms_of_buffer): Doc fix. 2007-03-18 Chong Yidong * image.c (pbm_load): Signal error for invalid image size. 2007-03-18 YAMAMOTO Mitsuharu * macterm.c (note_mouse_movement): Don't return immediately for LeaveNotify case. * macmenu.c (popup_activated_flag): New variable. (x_activate_menubar, mac_menu_show): Set it during menu tracking. (popup_activated): New function. * xdisp.c (redisplay_internal, note_mouse_highlight): Check popup_activated for MAC_OS. 2007-03-17 Juanma Barranquero * buffer.c (syms_of_buffer) : Doc fix. Reported by Nikolaj Schumacher . 2007-03-17 Richard Stallman * dired.c (file_name_completion): gcpro NAME. 2007-03-17 Chong Yidong * xdisp.c (try_window_id): Increment matrix positions if the buffer's byte count has increased, but not the character count. 2007-03-12 Andreas Schwab * lisp.h: Declare check_obarray. * process.c (Fdelete_process): Properly handle deletion of first element of deleted_pid_list. (create_process): Declare pid as pid_t. 2007-03-12 Kim F. Storm * process.c (sigchld_handler): Change type of pid to pid_t. Scan deleted_pid_list explicitly to avoid using Fmember which don't know about mark bits and make_fixnum_or_float which may malloc. Reported by Andreas Schwab. * keyboard.c (read_key_sequence): Store original event into keybuf when replaying sequence with local keymap(s) from string. 2007-03-12 Glenn Morris * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight savings" to "daylight saving"). 2007-03-11 Sam Steingold * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop. 2007-03-11 YAMAMOTO Mitsuharu * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.". 2007-03-10 YAMAMOTO Mitsuharu * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event): Ignore mouse wheel movement on title bar or tool bar. 2007-03-10 Chong Yidong * keyboard.c (help_form_saved_window_configs): New var. (read_char_help_form_unwind): New function. (read_char): Don't restore window configuration if a mouse click arrives while the help form is being displayed. 2007-03-10 Kim F. Storm * xdisp.c (redisplay_window): Don't automatically select a new window start for a contination line during mouse-click. 2007-03-09 Jan Dj,Ad(Brv * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar. 2007-03-09 Juanma Barranquero * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid. 2007-03-08 Richard Stallman * keyboard.c (syms_of_keyboard): Doc fix. 2007-03-08 Chong Yidong * minibuf.c (Ftry_completion): Don't short circuit if completion-ignore-case is non-nil. 2007-03-07 YAMAMOTO Mitsuharu * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers): Undo 2006-03-06 changes. * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll bar if its width is smaller than that of Aqua small scroll bar. 2007-03-07 Stefan Monnier * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as to handle correctly prompts with read-only property. 2007-03-06 Jan Dj,Ad(Brv * sound.c (wav_play): Check header->data_length to see how much we shall read. (alsa_period_size): Convert ALSA period size in frames to bytes. (alsa_write): Return if frames is zero. 2007-03-06 Kenichi Handa * xselect.c (Vselection_coding_system): Documentation improved. 2007-03-05 YAMAMOTO Mitsuharu * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS. (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if internal border width has changed. * macterm.h (struct mac_output): New member `internal_border_width'. 2007-03-04 Richard Stallman * window.c (Fdisplay_buffer): Doc fix. 2007-03-03 Glenn Morris * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does not include -lX11 on Solaris. 2007-03-02 Stuart D. Herring * keymap.c (Fkey_binding): Don't consider one-element lists as events. 2007-03-01 Kenichi Handa * process.c (send_process_object): Check the process status and signal an error if something is wrong. 2007-02-28 Chong Yidong * insdel.c (Fcombine_after_change_execute): Return nil if combine_after_change_buffer has been invalidated. 2007-02-25 Dan Nicolaescu * m/xtensa.h: New file. 2007-02-24 Nick Roberts * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name as strings and not character arrays. 2007-02-24 YAMAMOTO Mitsuharu * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag) (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to scroll bar handle size in order to avoid `scroll backward' problem. (x_scroll_bar_create, XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle. * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: New member `min_handle'. 2007-02-23 Kim F. Storm * print.c (print): Reset print_number_index if Vprint_number_table is nil. 2007-02-23 Eli Zaretskii * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk instead of strpbrk. 2007-02-23 YAMAMOTO Mitsuharu * macmenu.c (mac_menu_show): Call unbind_to early. Use variable `menu_item_selection' as in W32 version. [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit braces to avoid ambiguous `else'. * macterm.c (mac_display_info_for_display): Remove function. (mac_flush_display_optional) [USE_CG_DRAWING]: New function. (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for flush_display_optional. [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press): New argument MOUSE_POS. All uses changed. Set bar->dragging to negative integer if scroll bar handle is pressed. [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release): Negative bar->dragging means scroll bar handle is not dragged. [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial offset of scroll bar handle from negative bar->dragging. (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll bar click is compared against mapped one. Set down/up_modifier for scroll bar click event with control key. * macterm.h (x_display_info_for_display): Remove extern. (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit value to be unpacked to 32-bit on LP64 model. 2007-02-23 Kenichi Handa * process.c (send_process_object_unwind): New function. (send_process_object): New function. (Fprocess_send_region): Call send_process_object. (Fprocess_send_string): Likewise. 2007-02-22 Jason Rumney * w32menu.c (w32_menu_show): Mark the frame's menu as inactive when popup menu finishes. * w32fns.c (menubar_in_use): New flag. (w32_wnd_proc) : Use it. * w32menu.c (Fx_popup_menu): Don't free menu strings here. (w32_menu_show): Do it here instead. * w32fns.c (w32_wnd_proc) : Set menubar_active frame parameter. * w32menu.c (current_popup_menu): Make available globally. (menubar_selection_callback): Free menu strings before pushing the menu event into the keyboard buffer. Remove menu_command_in_progress. * w32fns.c (current_popup_menu): Use from w32menu.c. (w32_wnd_proc) : Use menubar_active and current_popup_menu to determine whether a menubar menu has been cancelled. * w32term.h (w32_output): Remove menu_command_in_progress. 2007-02-22 Kim F. Storm * dispnew.c (update_frame, update_single_window): Set force_p here if redisplay_dont_pause is set or Vredisplay_preemption_period is nil... (update_window, update_frame_1): ... instead of here. (update_text_area): Clear mouse face on header lines. 2007-02-21 Kim F. Storm * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too. 2007-02-21 YAMAMOTO Mitsuharu * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros. [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable `mapped_modifiers'. (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard Layout Services routines to get current Unicode keyboard layout. 2007-02-20 Chong Yidong * frame.c (x_set_screen_gamma): Apply gamma value to the frame's bgcolor. 2007-02-19 Kim F. Storm * minibuf.c (Fassoc_string): Allow symbols as keys. * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar handle while dragging, except when we get close to eob. Fix position and size calculations so we don't scroll backwards just by clicking on the handle. 2007-02-17 YAMAMOTO Mitsuharu * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc) [HAVE_CARBON]: Remove target. (macosx-app) [HAVE_CARBON]: Don't depend on it. 2007-02-17 Juanma Barranquero * callproc.c (syms_of_callproc) : : (Fgetenv_internal): Fix typos in docstrings. * doc.c (Fsubstitute_command_keys): Fix typo in docstring. 2007-02-16 Andreas Schwab * frame.c (Fmodify_frame_parameters): Return a value. * editfns.c (Fformat): Add support for '+' flag. * doprnt.c (doprnt1): Likewise. Fix overflow checking. 2007-02-14 Chong Yidong * s/umips.h: Unused file removed. 2007-02-14 Juanma Barranquero * xfaces.c (Fcolor_distance): Don't continue checking a color for errors after it has been correctly parsed as an RGB list. 2007-02-14 Jan Dj,Ad(Brv * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN. 2007-02-13 YAMAMOTO Mitsuharu * macfns.c (Fx_focus_frame): Move current process to foreground if it is not. [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with #ifdef MAC_OSX. (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from Fmac_set_font_panel_visibility. All uses changed. Rename argument VISIBLE to FLAG. * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function. (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of MakeMeTheFrontProcess. 2007-02-12 Chong Yidong * frame.c (x_set_screen_gamma): Clear face cache. 2007-02-11 Juanma Barranquero * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick): Reflow docstrings. 2007-02-10 Eli Zaretskii * window.c (Fwindow_height, Fwindow_hscroll) (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start) (Fwindow_end, Fwindow_display_table, Fwindow_text_height): Document the effect of WINDOW arg being nil. 2007-02-08 Kim F. Storm * minibuf.c (read_minibuf): Fix 2007-01-30 change. Use Qlambda as interim value of Vminibuffer_completing_file_name. (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil). (syms_of_minibuf) : Document lambda. 2007-02-07 Juanma Barranquero * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead of $(ALL_DEPS). 2007-02-07 Eli Zaretskii * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is put into $(BLD). 2007-02-06 Chong Yidong * frame.c (Fmodify_frame_parameters): Don't bind Qinhibit_default_face_x_resources, which has no effect. (Qinhibit_default_face_x_resources): Symbol deleted. 2007-02-03 Eli Zaretskii * indent.c (Fmove_to_column): Document that the argument COLUMN is taken from prefix numeric argument. 2007-02-03 Juanma Barranquero * lread.c (syms_of_lread) : Doc fix. 2007-01-29 Andreas Seltenreich (tiny change) * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose): Use the foreground color of the scroll-bar face when drawing the scroll-bar's border. 2007-02-02 Jan Dj,Ad(Brv * xterm.c (do_ewmh_fullscreen): Check that what != NULL before calling wm_supports. 2007-02-01 Juanma Barranquero * lread.c (syms_of_lread) : Doc fix. Wording by Eli Zaretskii. 2007-01-31 Jan Dj,Ad(Brv * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0. 2007-01-30 Richard Stallman * minibuf.c (read_minibuf): Save and clear Vminibuffer_completing_file_name. (read_minibuf_unwind): Restore it. (Vminibuffer_completion_table, Qminibuffer_completion_table) (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate) (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm) (Vminibuffer_completing_file_name): Definitions moved up. 2007-01-29 Chong Yidong * m/hp800.h: Restore, removing HP-UX support. 2007-01-29 Jan Dj,Ad(Brv * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB. 2007-01-28 Richard Stallman * minibuf.c (Ftry_completion, Fall_completions) (Fcompleting_read, Ftest_completion): Rename arg ALIST or TABLE to COLLECTION. 2007-01-27 Chong Yidong * unexhp9k800.c: Remove due to lack of legal papers. * m/sr2k.h, m/hp800.h: Remove due to dependence on above. 2007-01-27 Eli Zaretskii * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix. * minibuf.c (Fcompleting_read): Doc fix. 2007-01-26 Jan Dj,Ad(Brv * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT. * Makefile.in: Use XFT_LIBS if defined. 2007-01-26 YAMAMOTO Mitsuharu * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use BLOCK_INPUT/UNBLOCK_INPUT. * blockinput.h (interrupt_input_blocked): Declare volatile. * keyboard.c (interrupt_input_blocked): Declare volatile. * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal. 2007-01-24 Kim F. Storm * keymap.c (describe_map): Don't consider prefix keys to be shadowed. 2007-01-23 Juanma Barranquero * editfns.c (Finsert_char): Doc fix. (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings. 2007-01-22 YAMAMOTO Mitsuharu * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Don't pass keyboard modifiers to mac_store_drag_event, but put them as kEventParamKeyModifiers Apple event parameter. 2007-01-21 Chong Yidong * xdisp.c (try_window): Revert previous change. * dispnew.c (update_text_area): Revert 2006-09-17 change. Always redraw non-mode-line rows with mouse-face. 2007-01-20 Chong Yidong * xdisp.c (try_window): Clear mouse-face highlights first. * window.c (set_window_buffer): Revert 2006-11-22 change. 2007-01-20 Eli Zaretskii * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe) (xbuffer, xcons, xcar, xcdr): Fix doc strings. 2007-01-20 Chong Yidong * keyboard.c (read_key_sequence): Extract local map only if the given position is in an accessible buffer region. 2007-01-19 Nick Roberts * .gdbinit: Reformat documentation so that first sentence displays properly with "help user-defined" (like apropos). 2007-01-18 Bruno Haible (tiny change) * epaths.in: Move PATH_DOC from local/info to local/share/info. 2007-01-15 YAMAMOTO Mitsuharu * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Create movable modal window instead of movable alert window. (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead of DisableControl. * macselect.c (Fmac_resume_apple_event): Set error number when descriptor type of reply is non-null. 2007-01-14 YAMAMOTO Mitsuharu * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Use DisableControl for disabled items. Set default button to first enabled one. Use icon of application in execution. 2007-01-13 Eli Zaretskii * process.c (Fdelete_process, Fprocess_id, sigchld_handler): Copy PID into EMACS_INT to avoid GCC warnings. * fns.c (maybe_resize_hash_table): Copy new size of hash table into EMACS_INT to avoid GCC warnings. * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by geteuid and getuid into EMACS_INT to avoid GCC warnings. * dired.c (Ffile_attributes): Fix last change. 2007-01-12 Eli Zaretskii * dired.c (Ffile_attributes): Copy some members of `struct stat' into int's to avoid GCC warnings about limited range of short in arguments to FIXNUM_OVERFLOW_P. 2007-01-12 YAMAMOTO Mitsuharu * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON. (mac_handle_dialog_event, install_dialog_event_handler) (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions. (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN) (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH) (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE) (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH) (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE) (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN) (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros. (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function. (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog. * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs outside #ifdef MAC_OSX. (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function outside #ifdef MAC_OSX. (mac_check_bundle) [MAC_OSX]: Remove unused function. * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX. (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions. 2007-01-11 Jan Dj,Ad(Brv * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal, block/unblock SIGIO. 2007-01-10 Stefan Monnier * editfns.c (Fformat): Allow integer-format to work with floats of size larger than most-positive-fixnum (but still smaller than MAXINT). * dired.c (Ffile_attributes): Use floats for large uids/gids. 2007-01-09 Eli Zaretskii * emacs.c (syms_of_emacs) : Doc fix. 2007-01-09 YAMAMOTO Mitsuharu * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT around mkstemp. * image.c (XDrawLine) [MAC_OS]: Remove macro. (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise. (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of XCreateGC_pixmap. * macgui.h (Display): Typedef to opaque type. * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function. (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from Fmessage_box, Fyes_or_no_p, or Fy_or_n_p. [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler): Use mac_quit_char_key_p. * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap. (XCreateGC): Change type of 2nd argument to void *. (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Fix last change. (mac_to_emacs_modifiers): Change return type to int. [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise. (mac_mapped_modifiers): New function. (XTread_socket): Use it. [USE_TSM] (mac_handle_text_input_event): Likewise. (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]: Remove variables. (mac_determine_quit_char_modifiers, init_quit_char_handler) [MAC_OSX]: Remove functions. (make_ctrl_char) [MAC_OSX]: Add extern. (mac_quit_char_key_p) [MAC_OSX]: New function. (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler. * macterm.h (FONT_MAX_WIDTH): Remove unused macro. (XCreateGC): Change type in extern. (XDrawLine): Rename from mac_draw_line_to_pixmap. (mac_quit_char_key_p) [MAC_OSX]: Add extern. 2007-01-08 Jan Dj,Ad(Brv * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and interrupt_input_pending. * xterm.h (x_display_info): New: net_supported_atoms, nr_net_supported_atoms and net_supported_window. * xterm.c (last_user_time): New variable. (handle_one_xevent): Set last_user_time from events that have Time. Set net_supported_window to 0 when reparented. (wm_supports): New function. (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE. (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms and net_supported_window. 2007-01-05 Kim F. Storm * indent.c (Fvertical_motion): Fix it overshoot check for overlay strings without embedded newlines immediately followed by newline. 2007-01-05 YAMAMOTO Mitsuharu * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time) (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around gmtime/localtime/emacs_memftimeu/mktime. * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'. [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise. * macgui.h (struct _XGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color and cg_back_color. * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern. (restore_show_help_function, menu_target_item_handler) [TARGET_API_MAC_CARBON]: New functions. (install_menu_target_item_handler): New function. (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu item property. * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR) (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND) (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND) (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR) (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros. (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable. (mac_cg_color_black) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable. (init_cg_color) [USE_CG_DRAWING]: New function. (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR. (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image) (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]: Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR. (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise. (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or gc->cg_back_color. (install_drag_handler, remove_drag_handler): Make extern. (install_menu_target_item_handler): Add extern. (install_window_handler): Call install_menu_target_item_handler. [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'. (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color. * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator. 2007-01-04 Juanma Barranquero * window.c (Fwindow_end): Fix use of >= operator. 2007-01-03 Richard Stallman * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF. 2007-01-02 Jan Dj,Ad(Brv * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and unhighlight_id. * gtkutil.c (menuitem_highlight_callback): Invoked widget is the parent of the menu item. Get menu item widget from event. (xg_create_one_menuitem, xg_update_menu_item): highlight_id and unhighlight_id has been removed. (create_menus): Connect enter/leave-notify-event to the menu instead of individual items. 2006-12-31 Jan Dj,Ad(Brv * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with xg_tool_bar_menu_proxy. (xg_tool_bar_menu_proxy): New function. (xg_tool_bar_proxy_callback): New function. 2006-12-30 Jan Dj,Ad(Brv * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget. (xg_tool_bar_callback): Remove check for button. (update_frame_tool_bar): Put an event box in the tool bar and a button in the event box. Attach enter/leave-notify-event to the event box. 2006-12-30 Richard Stallman * keymap.c (Fdefine_key): Doc fix. 2006-12-29 Kim F. Storm * frame.h (struct frame): New member minimize_tool_bar_window_p. * xdisp.c (auto_resize_tool_bars_p): Replace with ... (Vauto_resize_tool_bars): ... this. (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string to describe new value `grow-only', and use of C-l. (display_tool_bar_line): Only use default face for border below toolbar if not grow-only (to get acceptable visual appearence). Explicitly set visible_height for empty toolbar lines. (redisplay_tool_bar): Handle `grow-only' setting. Check and clear minimize_tool_bar_window_p flag. * window.c (Frecenter): Set minimize_tool_bar_window_p flag when called without arg to redraw with minimum toolbar height. Update doc string. 2006-12-29 Jason Rumney * s/ms-w32.h (tzname): Do not define in msvc8. (utime): Do not define in msvc8. * regex.c (regerror): Change parameter name err_code. 2006-12-26 Richard Stallman * search.c (Fsearch_forward): Doc fix. * callint.c (Finteractive): Doc fix. 2006-12-25 Kim F. Storm * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it. 2006-12-23 Eli Zaretskii * keyboard.c (some_mouse_moved): Fix last change. 2006-12-22 Eli Zaretskii * callproc.c (syms_of_callproc) : Doc fix. 2006-12-22 Mark Davies * m/amdx86-64.h, m/hp800.h: Add support for NetBSD. * m/sh3el.h: New file. 2006-12-22 Eli Zaretskii * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of $(BLD). ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD. (bootstrap-temacs): Pass $(XMFLAGS) to sub-make. ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O). (clean): Delete stamp_BLD. 2006-12-22 YAMAMOTO Mitsuharu * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]: Call mac_update_proxy_icon also when buffer modification flag changed. [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias, but compare FSRef/FSSpec of resolved alias. 2006-12-21 Kim F. Storm * w32.c (_sys_wait_accept): Fix handle leak. 2006-12-20 Jan Dj,Ad(Brv * sound.c: Include if ALSA_SUBDIR_INCLUDE is defined. 2006-12-20 Kim F. Storm * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it. 2006-12-19 Juanma Barranquero * keyboard.c (syms_of_keyboard) : * mac.c (Fmac_code_convert_string): * search.c (Fsearch_forward): Doc fixes. 2006-12-19 Kim F. Storm Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates a sigusr1 event instead of [signal usr1] sequence, and signal events are now supposed to be handled via special-event-map. * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change. (make_lispy_event): Don't generate Qsignal prefix for code 0. Abort if signal code is unknown. (store_user_signal_events): Don't make Qsignal prefix (code 0). (Qsignal): Move declaration back to process.c. (syms_of_keyboard): Don't intern or staticpro it here. * process.c (Qsignal): Declare here. (syms_of_process): Intern or staticpro it. * emacs.c (main): Rename user signals to sigusr1 and sigusr2. * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs. 2006-12-19 Juanma Barranquero * buffer.c (syms_of_buffer) : : Doc fixes. 2006-12-17 Richard Stallman * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate to Ffile_name_completion. * dired.c (file_name_completion): New arg PREDICATE. Some cleanup. (Ffile_name_completion): New arg PREDICATE. 2006-12-17 Juanma Barranquero * buffer.c (Fkill_buffer): Doc fix. (syms_of_buffer) : Doc fix. 2006-12-16 Juanma Barranquero * minibuf.c (Ftry_completion): Check that obarray buckets are symbols. 2006-12-16 Eli Zaretskii * w32fns.c (w32-window-exists-p): New function. (syms_of_w32fns): Defsubr it. * prefix-args.c [STDC_HEADERS]: Include stdlib.h. 2006-12-16 Juanma Barranquero * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector. 2006-12-15 Eli Zaretskii * emacs.c (USAGE3): Clarify documentation of --color. 2006-12-15 YAMAMOTO Mitsuharu * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]: New variable. (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros. [!MAC_OSX] (select): Use them. [MAC_OSX] (select_and_poll_event, sys_select): Likewise. (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function. * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern. (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function. (syms_of_macfns) [USE_ATSUI]: Defsubr it. * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event. * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call ATSUGetGlyphBounds if not necessary. (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable. (syms_of_macterm) [USE_ATSUI]: Don't defvar it. (fm_get_style_from_font, atsu_find_font_from_family_name) (atsu_find_font_family_name, mac_atsu_font_face_attributes) [USE_ATSUI]: New functions. (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name. (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name. Don't get metrics for Latin-1 right half characters. (mac_load_query_font): Don't load font if space width is not positive. [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event. (XTread_socket): Call SelectWindow when unfocused frame is clicked. * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern. 2006-12-15 Kim F. Storm * keyboard.c (ignore_mouse_drag_p): New global var. (some_mouse_moved): Return 0 if it is non-zero. (make_lispy_event): Generate click event on mouse up if ignore_mouse_drag_p is non-zero, even if mouse moved. Clear ignore_mouse_drag_p on mouse down/up. * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar is resized to avoid generating a mouse drag event. 2006-12-14 Juanma Barranquero * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the minimum tracking size. Remove non-working old hack to do the same. 2006-12-14 YAMAMOTO Mitsuharu * emacs.c (handle_user_signal): Move function to keyboard.c. (main): Use add_user_signal for SIGUSR1 and SIGUSR2. * keyboard.c (make_lispy_event): Use find_user_signal_name. (read_avail_input): Store pending user signal events. (struct user_signal_info): New struct. (user_signals): New variable. (add_user_signal, store_user_signal_events) (find_user_signal_name): New functions. (handle_user_signal): Move function from emacs.c. Don't store USER_SIGNAL_EVENT here, but increment number of pending signals. * keyboard.h (add_user_signals): Add extern. 2006-12-11 Juanma Barranquero * buffer.c (syms_of_buffer) : : : Doc fixes. * xdisp.c (syms_of_xdisp) : Doc fix. 2006-12-10 Kim F. Storm * xdisp.c (show_mouse_face): Never use text cursor in tool-bar. 2006-12-10 Juanma Barranquero * abbrev.c (syms_of_abbrev) : * buffer.c (syms_of_buffer) : * keymap.c (Flookup_key): * lread.c (Feval_buffer, Feval_region): * macterm.c (syms_of_macterm) : : * marker.c (Fmarker_insertion_type): * minibuf.c (syms_of_minibuf) : * msdos.c (syms_of_msdos) : * w32term.c (syms_of_w32term) : : * xdisp.c (format-mode-line): * xterm.c (syms_of_xterm) : : Doc fixes. 2006-12-10 Andreas Schwab * systime.h (EMACS_GET_TIME): Remove check for HAVE_STRUCT_TIMEZONE which is never defined. 2006-12-10 Alan Mackenzie * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the result is now neither the last elt nor optional for OLDSTATE. 2006-12-09 Eli Zaretskii * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to extract the process ID from a Lisp float. 2006-12-09 Chong Yidong * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code. 2006-12-08 Eli Zaretskii * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit platforms where long is 64-bit. * msdos.h (PIX_TYPE): Redefine as `unsigned long'. 2006-12-08 NAKAJI Hiroyuki (tiny change) * m/amdx86-64.h: Add support for Solaris 10 on x86-64. 2006-12-08 Kenichi Handa * xterm.c (x_query_font): Use xstricmp instead off strcasecmp. 2006-12-08 Juanma Barranquero * emacs.c (syms_of_emacs) : Doc fix. 2006-12-07 Kim F. Storm * process.c (parse_signal): Use xstricmp instead of strcasecmp. (Fsignal_process): Don't use strncasecmp. 2006-12-05 Glenn Morris * abbrev.c (Qforce): New Lisp_Object. (Fdefine_abbrev): Do not overwrite non-system abbrevs with system abbrevs, unless 'force is applied. (syms_of_abbrev): Add Qforce. 2006-12-04 Kim F. Storm * process.c (parse_signal): Rename macro from handle_signal. (Fsignal_process): Also accept lower-case variants of signal names (to align with signal names generated by Emacs itself). * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by... (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs first with code == 0 [signal] and one with code == sig number. (main): Use it as handler for SIGUR1 and SIGUSR2. * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input if first event in [signal xxx] sequence. (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove. (syms_of_keyboard): Don't intern and staticpro them. (Qsignal): Declare here. (syms_of_keyboard): Intern and staticpro it. (make_lispy_event): Use it. Intern symbols on the fly for other USER_SIGNAL_EVENTs events. * process.c (Qsignal): Declare extern. (syms_of_process): Don't intern/staticpro it here. * process.c (read_process_output): Abort if carryover < 0. 2006-12-04 YAMAMOTO Mitsuharu * config.in: Regenerate. * fileio.c [__NetBSD__]: Don't define `unix'. (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of `#ifdef unix'. 2006-12-04 Glenn Morris * Makefile.in (version): New variable, set by configure. (bootstrapclean, mostlyclean): Also remove emacs-${version}. 2006-12-03 Jan Dj,Ad(Brv * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item without an image. 2006-12-01 Eli Zaretskii * w32fns.c (Fw32_shell_execute): Doc fix. 2006-11-30 Chong Yidong * xdisp.c (move_it_to): Correctly count tab glyphs for continued lines ending in tab. 2006-11-30 Jan Dj,Ad(Brv * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW property ... (XTframe_raise_lower): ... to here. 2006-11-30 Kenichi Handa * regex.c (regex_compile): Fix previous change. 2006-11-29 Juanma Barranquero * sound.c (Fplay_sound_internal): Remove spurious newline in docstring. 2006-11-28 Chong Yidong * config.in: Regenerate. 2006-11-28 Kenichi Handa * regex.c (regex_compile): Don't call SET_LIST_BIT with a multibyte character. 2006-11-27 Chong Yidong * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler. 2006-11-27 Kim F. Storm * window.c (set_window_buffer): Refactor recent changes. 2006-11-27 Jason Rumney * w32term.c (w32_msg_worker): Declare correctly. (w32_initialize): Don't cast w32_msg_worker. * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer. 2006-11-26 Chong Yidong * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that directory exists. 2006-11-25 Eli Zaretskii * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for as per the calling sequence change on 2006-07-11. 2006-11-25 Chong Yidong * window.c (set_window_buffer): Use BLOCK_INPUT. 2006-11-24 Juanma Barranquero * fns.c (substring_both): Add missing address operator. 2006-11-24 Stefan Monnier * fns.c: Use AREF/ASIZE macros. (concat): Provide the full ANSI prototype. 2006-11-24 Juanma Barranquero * buffer.c (syms_of_buffer) : Doc fix. 2006-11-23 William Smith (tiny change) * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo. 2006-11-22 Alfred M. Szmidt (tiny change) * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from the library search path. (LD_SWITCH_X_DEFAULT): New macro. 2006-11-22 Chong Yidong * window.c (set_window_buffer): Clear mouse highlight if it is in this window. 2006-11-21 Chong Yidong * xfaces.c (realize_default_face): Check if the default font name exists on this display before trying to use it. 2006-11-21 Richard Stallman * fileio.c: Break line before &&, not after. 2006-11-20 Eli Zaretskii * fns.c (concat) [!__GNUC__]: Add prototype. 2006-11-20 Kenichi Handa * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to check the tailing slash of a filename. 2006-11-20 KOBAYASHI Yasuhiro (tiny change) * indent.c (Fvertical_motion): Include composition in the case of overshoot expected. 2006-11-19 Andreas Schwab * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports. * xmenu.c (Fx_popup_menu): Initialize selection. 2006-11-18 Andreas Schwab * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory. 2006-11-17 Tetsurou Okazaki (tiny change) * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME to avoid gcc 2.96 error. 2006-11-17 NIIMI Satoshi (tiny change) * search.c (simple_search): In the loop of backward searching, check also the byte position against the limit. 2006-11-14 Romain Francoise * minibuf.c (Fcompleting_read): Fix typo in docstring. 2006-11-14 Kenichi Handa * coding.c (code_convert_region): Initialize coding->heading_ascii. (decode_coding_string, code_convert_region): Likewise. 2006-11-14 YAMAMOTO Mitsuharu * config.in: Regenerate. * macfns.c (Fx_display_mm_height, Fx_display_mm_width) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if CGDisplayScreenSize is available. * macmenu.c (menu_quit_handler, install_menu_quit_handler): Replace `#ifdef HAVE_CANCELMENUTRACKING' with `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'. (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if CancelMenuTracking is available. * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if CGContextShowGlyphsWithAdvances is available. 2006-11-13 Jason Rumney * s/ms-w32.h: Define HAVE_INET_SOCKETS. 2006-11-13 Nozomu Ando * alloc.c (mark_memory): New argument OFFSET. All uses changed. Fix address calculations for case END < START. (mark_stack): Impose Lisp_Object alignment on jmp_buf. 2006-11-12 Juanma Barranquero * coding.c (Fencode_sjis_char, Fencode_big5_char): Improve argument/docstring consistency. * editfns.c (Fmessage): Doc fixes. * process.c (syms_of_process) : Doc fix. 2006-11-12 Chong Yidong * xmenu.c (popup_activated): Define outside HAVE_MENUS. 2006-11-12 Romain Francoise * xselect.c (selection-coding-system): Fix docstring. 2006-11-12 Juanma Barranquero * category.c (Fchar_category_set): Improve arg/docstring consistency. * data.c (Flogxor): * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes) (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence) (Fstring_make_unibyte): Fix typos in docstrings. 2006-11-10 Jan Dj,Ad(Brv * xterm.h (struct x_display_info): Fix indentation. * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions. (x_check_fullscreen): Call do_ewmh_fullscreen. (x_initialize): Set fullscreen_hook to XTfullscreen_hook. * frame.c (x_set_fullscreen): Call fullscreen_hook if set. * term.c: Define fullscreen_hook. (syms_of_term): Initialize fullscreen_hook to NULL. * termhooks.h: Add fullscreen_hook. 2006-11-08 Juanma Barranquero * bytecode.c (Fbyte_code): * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro. 2006-11-06 Juanma Barranquero * lread.c (syms_of_lread): * xsmfns.c (syms_of_xsmfns): Fix typo in docstring. 2006-11-06 Martin Rudalics * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS. * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS. Return nil if building without menus. * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS. Return nil if building without menus. 2006-11-05 Mark Davies (tiny change) * s/netbsd.h (POSIX_SIGNALS): Define. 2006-11-05 Martin Rudalics * macmenu.c (Fmenu_or_popup_active_p): New function. (syms_of_macmenu): Defsubr it. * w32menu.c (Fmenu_or_popup_active_p): New function. (syms_of_w32menu): Defsubr it. (popup_activated_flag, popup_activated): Remove. * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to check popup_activated. * xmenu.c (Fmenu_or_popup_active_p): New function. (syms_of_xmenu): Defsubr it. 2006-11-05 YAMAMOTO Mitsuharu * unexmacosx.c (malloc_cookie): Remove unused variable. (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr) (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd) (emacs_zone, data_segment_old_fileoff, data_segment_scp) (num_unexec_regions, unexec_regions): Make variables static. (print_regions, find_emacs_zone_regions): Make static. (unexec_region_info): New typedef. (unexec_regions): Change type from vm_range_t[] to unexec_region_info[]. All uses changed. (unexec_regions_recorder): Subtract size of trailing null pages from filesize. Show filesize. (unexec_regions_merge): Don't merge if null pages of preceding region is not too small. Use long format in printf. (copy_segment, copy_data_segment): Show filesize. (copy_data_segment): Write filesize bytes of region data. Adjust filesize in segment command accordingly. (dump_it): Use long format in printf. 2006-11-05 Juanma Barranquero * dosfns.c (Finsert_startup_screen): * fns.c (Ffeaturep, syms_of_fns): * frame.c (syms_of_frame): Fix typos in docstrings. * unexcw.c (unexec): Fix typo in output message. 2006-11-04 Ralf Angeli * w32fns.c (w32_createwindow): Remove code for handling -geometry command line option and `initial-frame-alist' which is superfluous after the last change to `w32_createwindow'. 2006-11-04 Slawomir Nowaczyk (tiny change) * w32proc.c (sys_wait): Only wait for processes with fd<0. Others should be handled by sys_select instead. Fixes problems with (progn (start-process "" nil "ls") (call-process "ls")). 2006-11-04 Giorgos Keramidas (tiny change) * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to avoid gcc 2.95 error. 2006-11-04 Chong Yidong * gtkutil.c (update_frame_tool_bar): If icon image is invalid and wicon is null, insert an empty button. 2006-11-03 Jan Dj,Ad(Brv * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the window. 2006-11-02 Juanma Barranquero * emacs.c (Fkill_emacs): Fix typo in docstring. 2006-11-02 Nozomu Ando * unexmacosx.c (mach_header, segment_command, vm_region, section) [_LP64]: New defines. (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT) (MH_MAGIC) [_LP64]: Redefine. (delta): Remove variable. (curr_file_offset, pagesize): New variables. (ROUNDUP_TO_PAGE_BOUNDARY): New macro. (data_segment_old_fileoff): Initialize explicitly. (print_region, unexec_regions_recorder, print_load_command_name) (copy_segment, copy_data_segment): Use long format in printf. (MAX_UNEXEC_REGIONS): Increase to 400. (unexec_regions_recorder): Don't warn too many regions here. (find_emacs_zone_regions): Warn too many regions here. (print_load_command_name) [_LP64]: Show correct load command name. (copy_segment, copy_data_segment): Use variable `curr_file_offset'. Show starting virtual memory address. Don't show ending file offset. (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA. (dump_it): Use new local variable `linkedit_delta' and pass to them. Error if trying to handle multiple DATA segments. (unexec): Initialize variable `pagesize'. 2006-11-01 Juanma Barranquero * eval.c (Fcatch): Doc fix. 2006-10-31 YAMAMOTO Mitsuharu * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v) (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h) (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key) (xpm_load_image): Add const qualifier to arguments. [MAC_OS] (xpm_color_key_strings): Make static const. * mac.c (create_apple_event_from_event_ref) (create_apple_event_from_drag_ref, skip_white_space, parse_comment) (parse_include_file, parse_binding, parse_component) (parse_resource_name, parse_value, parse_resource_line) (xrm_merge_string_database, xrm_get_resource) (xrm_get_preference_database): Add const qualifier to arguments. [MAC_OSX] (sys_select): Make variable `context' static const. * macfns.c (mac_color_map): Make static const. (mac_color_map_lookup): Add const qualifier to arguments. * macmenu.c (install_menu_quit_handler): Make variable `typesList' static const. (name_is_separator): Add const qualifier to arguments. * macselect.c (init_service_handler): Make variable `specs' static const. * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable `swap_nibbles' static const. (atsu_get_text_layout_with_text_ptr): Make variables `lengths', `tags', `sizes', `values' static const. (mac_draw_string_common): Make variables `context' static. Make variables `tags', `sizes', and `values' static const. (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click) (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match) (mac_to_x_fontname, parse_x_font_name, add_mac_font_name) (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window) (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const qualifier to arguments. (xlfd_scalable_fields, keycode_to_xkeysym_table) (fn_keycode_to_keycode_table): Make static const. (mac_load_query_font): Make variables `tags', `sizes', `values', `types', and `selectors' static const. (mac_handle_command_event, mac_handle_window_event): Make variables `names' and `types' static const. (init_command_handler, install_window_handler): Make variables `specs*' static const. (mac_handle_font_event, mac_handle_text_input_event) (mac_store_service_event): Make variables `names' and `types' const. Make variables `names_*' and `types_*' static const. * macterm.h (create_apple_event_from_event_ref) (create_apple_event_from_drag_ref, xrm_merge_string_database) (xrm_get_resource, xrm_get_preference_database): Add const qualifier to arguments in externs. 2006-10-31 Kenichi Handa * xfns.c (xic_create_xfontset): Fix previous change. 2006-10-30 Chong Yidong * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and /usr/pkg/lib to library search path. 2006-10-29 Mark Davies (tiny change) * ralloc.c (relinquish): Use a long for excess space counter to handle 64-bit case correctly. 2006-10-29 Jeramey Crawford * m/amdx86-64.h: Add defines for OpenBSD x86-64. 2006-10-29 Juanma Barranquero * window.c (Fdisplay_buffer): Fix typo in docstring. 2006-10-27 Ben North (tiny change) * w32term.c (x_draw_glyph_string_foreground): Set background mode to TRANSPARENT before using overstrike to simulate bold faces. * xfaces.c (best_matching_font): Fix logic to decide whether to use overstriking to simulate bold-face (it was reversed). 2006-10-23 Kim F. Storm * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not initialized. * keyboard.c (read_char): Make an element (t . EVENT) in unread-command-events add EVENT to the current command's key sequence. (syms_of_keyboard) : Update doc. 2006-10-21 Richard Stallman * minibuf.c (Vread_expression_map): Define here. (Qread_expression_history): New variable. (syms_of_minibuf): Initialize them. (Feval_minibuffer): Use Vread_expression_map and Qread_expression_history. 2006-10-21 Kenichi Handa * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild card, change it to "*". (xic_create_xfontset): Call XCreateFontSet for each single fontname in fontsetname. 2006-10-19 Chong Yidong * callint.c (callint_message): Convert to a Lisp string. (syms_of_callint): Initialize it. (callint_message_size): Var deleted. (Fcall_interactively): Use Fformat instead of doprnt to construct prompt string. 2006-10-19 YAMAMOTO Mitsuharu * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row. 2006-10-19 YAMAMOTO Mitsuharu * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]: New variable. (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it. 2006-10-19 Jan Dj,Ad(Brv * xselect.c (x_handle_selection_request): If the converted_selection is nil or XCDR (converted_selection) is nil, decline the request. 2006-10-16 Jan Dj,Ad(Brv * gtkutil.c (get_utf8_string): Remove warnings with casts. (xg_tool_bar_button_cb): Ditto. (xg_tool_bar_callback): Ditto. 2006-10-16 YAMAMOTO Mitsuharu * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused variable ch_dim. (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate menu bar window matrices on non-X systems. * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs. * macterm.c (mac_query_char_extents): Don't return glyph ID if layout adjustment is needed. (mac_load_query_font): Check if width and height are positive. 2006-10-14 Richard Stallman * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place. 2006-10-13 Chong Yidong * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame title. 2006-10-12 Chong Yidong * keymap.c (Fkey_binding): Check Lisp_Object types before doing XCAR and XINT. 2006-10-12 Romain Francoise * image.c (xbm_read_bitmap_data): Delete extra semicolon. 2006-10-10 Stefan Monnier * eval.c: Include xterm.h for x_fully_uncatch_errors and friends. * dispextern.h: Declare x_create_bitmap_from_xpm_data. * xterm.c (x_check_expected_move): Remove unused var `count'. * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since Fdefalias is not declared in any *.h file. 2006-10-09 Chong Yidong * dispnew.c (sit_for): Sit forever if TIMEOUT is t. * keyboard.c (command_loop_1): Handle non-number values of `minibuffer-message-timeout'. (Fexecute_extended_command): Fix typo. * minibuf.c (temp_echo_area_glyphs): Sit for `minibuffer-message-timeout' seconds. 2006-10-08 YAMAMOTO Mitsuharu * macterm.c (mac_draw_image_string, mac_draw_image_string_16): Add argument OVERSTRIKE_P. (mac_draw_string_common, mac_draw_image_string_cg): Likewise. Support overstrike. (mac_draw_string, mac_draw_string_16): Remove functions. (x_draw_glyph_string_foreground): Use overstrike when needed. (x_draw_composite_glyph_string_foreground): Likewise. Use mac_draw_image_string_16 instead of mac_draw_string_16. (mac_load_query_font): Rename from XLoadQueryFont. Take argument F instead of DPY. All uses changed. Don't save/restore font. 2006-10-07 Ralf Angeli * w32fns.c (w32_createwindow): Honour left and top positions if supplied explicitly. 2006-10-06 Kim F. Storm * xdisp.c (pos_visible_p): Fix value when EOB is visible. 2006-10-05 Chong Yidong * frame.c (Qinhibit_face_set_after_frame_default): New var. (syms_of_frame): Initialize it. (x_set_frame_parameters): Avoid resetting :font attributes to the new-frame defaults. 2006-10-03 Stefan Monnier * lisp.h (clear_regexp_cache): Declare. * search.c (compile_pattern): Only check `cp->syntax_table' if needed. (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'. (clear_regexp_cache): Only flush those regexps which depend on a syntax-table. * regex.c (regex_compile): Set the new `used_syntax' bit. * regex.h: Remove file local variables. (struct re_pattern_buffer): New field `used_syntax'. 2006-10-03 Kim F. Storm * process.c (list_processes_1): Run sentinels before removing dead processes. Also remove `closed' network connections. 2006-10-01 Stefan Monnier * xdisp.c (handle_fontified_prop): Don't fontify at EOB. 2006-09-30 Eli Zaretskii * config.in: Regenerated. 2006-09-29 Juri Linkov * buffer.c (syms_of_buffer): Reorder coding systems in the docstring of %z to the real order displayed in the modeline. 2006-09-28 Stefan Monnier * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM). 2006-09-26 Chong Yidong * indent.c (Fvertical_motion): Do move back if the Lisp string being displayed contains newlines. 2006-09-26 YAMAMOTO Mitsuharu * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds. 2006-09-26 Kenichi Handa * keymap.c (Fsingle_key_description): For an invalid char, return "Invalid char code NNNNN". 2006-09-25 Chong Yidong * callint.c (Fcall_interactively): Doc fix. 2006-09-25 YAMAMOTO Mitsuharu * macterm.c (x_underline_at_descent_line): New variable. (syms_of_macterm): DEFVAR_BOOL it. (x_draw_glyph_string): Use it. (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent. 2006-09-25 Kenichi Handa * keymap.c (Fsingle_key_description): Return unique names for generic characters. 2006-09-24 Richard Stallman * search.c (compile_pattern_1): Don't BLOCK_INPUT. 2006-09-24 Eli Zaretskii * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)): Depend on nt/inc/langinfo.h and nt/inc/nl_types.h. * w32proc.c (nl_langinfo): New function. * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta) (w32-pass-lwindow-to-system, w32-enable-num-lock) (w32-enable-caps-lock, w32-scroll-lock-modifier) (w32-lwindow-modifier, w32-rwindow-modifier) (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix. 2006-09-23 Juanma Barranquero * minibuf.c (Finternal_complete_buffer, Fread_minibuffer) (Fdisplay_completion_list): Fix typos in docstrings. 2006-09-23 Romain Francoise * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too. 2006-09-23 Kenichi Handa * keymap.c (Fmap_keymap): Docstring mentions about generic character. 2006-09-22 Stefan Monnier * regex.c (analyse_first): For eight-bit-control chars, mark both the char's value and its leading byte in the fastmap. (re_search_2): When fast-scanning without translation, be careful to check that we only match the leading byte of a multibyte char. * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's byte sequence. (AT_CHAR_BOUNDARY): New macro. 2006-09-22 Kenichi Handa * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table whose default value is non-nil. 2006-09-22 Jan Dj,Ad(Brv * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for Gtk+ versions < 2.10. * xfns.c (syms_of_xfns): Fix typo in help text for x-gtk-file-dialog-help-text. 2006-09-21 Kim F. Storm * fns.c (Fmemq): Refill doc string. (Fmemql): New defun, like memq but using eql. (syms_of_fns): Defsubr it. 2006-09-20 Kim F. Storm * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for last visible glyph in window. * window.c (Fset_window_hscroll, Fwindow_line_height): Doc fix. Use "off-window" instead of "off-screen". (Fpos_visible_in_window_p): Likewise. If POS is t, return info for last visible glyph in window. 2006-09-19 Chong Yidong * search.c (struct regexp_cache): New entry syntax_table. (compile_pattern_1): Set it. (syms_of_search): Initialize it. (compile_pattern): Require the syntax_table entry of the cache element to match the current syntax table entry. 2006-09-19 Stefan Monnier * window.c (Fwindow_end): Fix recent change. 2006-09-19 Kim F. Storm * window.c (Fset_window_hscroll, Fpos_visible_in_window_p): Doc fix. Use "off-screen" instead of "invisible". (Fwindow_line_height): Make line numbers 0-based. Make line arg optional; if nil, use current cursor row. Handle text terminals properly. Return nil if non-interactive or pseudo-window. 2006-09-19 Stefan Monnier * keymap.c: Include alloca.h if available. (Fkey_binding): Only use AREF after checking it's a vector. Remove unused var `window'. 2006-09-19 YAMAMOTO Mitsuharu * emacs.c (shut_down_emacs) [!subprocesses]: Don't set inhibit_sentinels. * mac.c [!MAC_OSX] (select): Fix argument name. * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and menu ID for Apple menu. (menubar_selection_callback): Remove function. (find_and_call_menu_selection): New function from xmenu.c. (x_activate_menubar): Use it. (set_frame_menubar): Don't use f->output_data.mac->menubar_active. * macterm.c (menubar_selection_callback): Remove extern. (M_APPLE): Change to 234. (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static. (do_menu_choice): Remove function. * macterm.h (struct mac_output): Remove member menubar_active. (do_menu_choice): Remove extern. (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern. 2006-09-18 Jan Dj,Ad(Brv * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to x_gtk_file_dialog_help_text. * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog to x-gtk-use-old-file-dialog. (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to x_gtk_file_dialog_help_text. * xfns.c (syms_of_xfns): Ditto. 2006-09-18 Kim F. Storm * window.c (Fwindow_line_visibility): Remove. (Fwindow_line_height): New defun replacing it. (syms_of_window): Defsubr it. 2006-09-18 YAMAMOTO Mitsuharu * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type. 2006-09-17 Jay Belanger * gmalloc.c: * md5.c: * md5.h: * strftime.c: Replace "GNU Library General Public License" by "GNU General Public License" throughout. 2006-09-17 Kim F. Storm * dispnew.c (update_text_area): Undo 2000-07-18 change. Always redrawing whole row if line has mouse-face in it causes excessive flickering of the mode line. 2006-09-17 Chong Yidong * search.c (clear_regexp_cache): New function. * syntax.c (Fmodify_syntax_entry): Clear regexp cache. 2006-09-16 Jan Dj,Ad(Brv * gtkutil.c (xg_get_file_with_chooser): Check x-gtk-show-chooser-help-text before adding the help text. * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text. * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+ will simply crash if we fail. 2006-09-16 Richard Stallman * regex.c (re_compile_pattern): Set gl_state.current_syntax_table. 2006-09-15 Kim F. Storm * window.c (Fwindow_line_visibility): New defun for line-move-partial. (syms_of_window): Defsubr it. (Fwindow_end): Use window's buffer rather than current buffer. 2006-09-15 Jay Belanger * COPYING: Replace "Library Public License" by "Lesser Public License" throughout. 2006-09-15 David Kastrup * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies. * keymap.c: include "window.h". (Fcommand_remapping): New optional POSITION argument. (Fkey_binding): New optional POSITION argument. Completely rework handling of mouse clicks to get the same order of keymaps as `read-key-sequence' and heed POSITION. Also temporarily switch buffers to location of mouse click and back. * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping' for additional argument. (parse_menu_item): Adjust call of `Fkey_binding' for additional argument. (read_key_sequence): If there are both `local-map' and `keymap' text properties at some buffer position, heed both. * keymap.h: Declare additional optional arguments of `Fcommand_remapping' and `Fkey_binding'. 2006-09-15 Juanma Barranquero * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring. 2006-09-14 Andreas Schwab * print.c: Whitespace fixup. 2006-09-14 Kim F. Storm * xdisp.c (produce_image_glyph): Automatically crop wide images at right window edge so we can draw the cursor on the same row to avoid confusing redisplay by placing the cursor outside the visible window area. 2006-09-13 YAMAMOTO Mitsuharu * xterm.c (x_initialize): Don't install Xt event timer here. (x_timeout_atimer_activated_flag): New var. (x_activate_timeout_atimer): New function to install Xt timer. (x_send_scroll_bar_event, x_process_timeouts): Use it. * xmenu.c (x_menu_set_in_use, popup_activate_callback) (create_and_show_popup_menu, create_and_show_dialog): Use it. * xterm.h (x_activate_timeout_atimer): Add prototype. 2006-09-13 Richard Stallman * print.c (print_string): When printcharfun is t, copy string contents and call strout on the copy. * keyboard.c (read_char): If end_time specified, don't put the event into this_command_keys. (read_key_sequence): If Voverriding_terminal_local_map is specified, don't check Voverriding_local_map at all. 2006-09-12 Stefan Monnier * textprop.c (Fnext_property_change, Fnext_single_property_change) (Fprevious_property_change, Fprevious_single_property_change): Avoid changing limit, so we can correctly catch the case where the property is constant up to limit. 2006-09-12 YAMAMOTO Mitsuharu * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Undo 2006-09-08 change. 2006-09-11 Chong Yidong * keymap.c (Fkey_binding): Use string position for string objects. 2006-09-11 Kim F. Storm * keymap.c (Fkey_binding): Fix last change. * editfns.c (Fmessage): Recommend using (message "%s" ...). 2006-09-10 Chong Yidong * keymap.c (Fkey_binding): Check for local keymap for mouse click events. 2006-09-10 Kim F. Storm * keyboard.c (Finput_pending_p): Check Vunread_input_method_events and Vunread_post_input_method_events. * dispnew.c (Fredisplay): Document return value. 2006-09-10 Jan Dj,Ad(Brv * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK. * gtkutil.c (xg_display_close): Always change default display if needed, check for < Gtk+ version 2.10 before calling gdk_display_close. 2006-09-10 YAMAMOTO Mitsuharu * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly. Make variable `ofds' static. Remove variable `maxfd'. * macfns.c (Fx_file_dialog): Remove unused variable `f'. Call check_mac. * macmenu.c (Vmenu_updating_frame, syms_of_macmenu): * w32menu.c (Vmenu_updating_frame, syms_of_w32menu): Apply 2006-09-08 change for xmenu.c. * xfns.c (Fx_file_dialog): Call check_x. 2006-09-10 Kim F. Storm * xdisp.c (get_window_cursor_type): Use hollow cursor on non-transparent images. 2006-09-09 Eli Zaretskii * editfns.c (Fsystem_name): Mention "host" in the doc string. (syms_of_editfns) : Likewise. 2006-09-08 Martin Rudalics * xdisp.c (mouse_autoselect_window): Remove. (Vmouse_autoselect_window): New variable. DEFVAR_LISP it. * dispextern.h (mouse_autoselect_window): Remove extern. (Vmouse_autoselect_window): Add extern. * macterm.c (XTread_socket): Test Vmouse_autoselect_window instead of mouse_autoselect_window. * msdos.c (dos_rawgetc): Likewise. * w32term.c (w32_read_socket): Likewise. * xterm.c (handle_one_xevent): Likewise. 2006-09-08 Richard Stallman * xdisp.c (Vmenu_updating_frame): Define here. (syms_of_xdisp): DEFVAR it here. (update_menu_bar): Always return hooks_run. Set Vmenu_updating_frame. * xdisp.c (redisplay_internal): Test Vinhibit_redisplay before calculating SELECTED_FRAME. * xmenu.c (Vmenu_updating_frame): Don't define here. (syms_of_xmenu): Don't DEFVAR it here. * xterm.c (x_error_quitter): For BadName error, just return. * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P. * casetab.c (init_casetab_once): Call set_case_table. * emacs.c (shut_down_emacs): Set inhibit_sentinels. * process.c (inhibit_sentinels): New variable. (exec_sentinel): Test inhibit_sentinels. (init_process): Initialize it. * process.h (inhibit_sentinels): Add decl. * search.c (looking_at_1, string_match_1, search_command): Make syntax table's canon table point to eqv table. 2006-09-08 Andreas Schwab * print.c (strout): Fix whitespace. 2006-09-08 Kim F. Storm * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change. 2006-09-08 YAMAMOTO Mitsuharu * mac.c [!MAC_OSX]: Don't include keyboard.h. [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent in the same BLOCK_INPUT block, in case that some input has already been read asynchronously. Pretend to be interrupted by a signal if some input is available. [MAC_OSX] (select_and_poll_event, sys_select): Likewise. (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000. Now used for ReceiveNextEvent timeout instead of select timeout. (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro. [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect support. Quit event loop. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking connect support. Reuse previously allocated CFRunLoopSource. (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function. (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it. * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Specify kWindowAsyncDragAttribute. * macterm.c (mac_handle_origin_change, mac_handle_size_change) (mac_get_ideal_size): New functions. (x_set_offset, x_set_window_size, x_make_frame_visible) (do_zoom_window, mac_handle_window_event, XTread_socket): Use them. (install_window_handler, mac_handle_window_event) [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and kEventWindowBoundsChanged. (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call DragWindow. 2006-09-07 Andreas Schwab * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to use lib64 instead of lib. 2006-09-06 Stefan Monnier * Makefile.in: Avoid double quotes when possible. 2006-09-06 Kenichi Handa * editfns.c (Fformat_time_string): Use make_unibyte_string to make a Lisp string from the result of emacs_memftimeu call. 2006-09-06 Kim F. Storm * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg; so calculate heights even when pos-visible-in-window-p is called with partially = t. Don't overshoot last_visible_y in move_it_to. Return row height and row number in new rowh and vpos args. (cursor_row_fully_visible_p): First line is always "fully visible". (try_window): Don't clear matrix if vscrolled. * lisp.h (pos_visible_p): Update prototype. * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p. Return row height and row number for partially visible rows. Modify return value to a 2 element list for fully visible rows and 6 for partially visible row. (window_scroll_pixel_based): Use pos_visible_p directly instead of Fpos_visible_in_window_p. Fix auto vscrolling for partially visible lines. Only vscroll backwards if already vscrolled forwards. Unconditionally vscroll forwards if PT is first (and only) line. Set new window start instead of scrolling at start/end of tall line. 2006-09-05 YAMAMOTO Mitsuharu * macterm.c (install_window_handler, mac_handle_window_event) [USE_CARBON_EVENTS]: Handle kEventWindowClose. [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for ASCII keystroke event. 2006-09-04 Jan Dj,Ad(Brv * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in the file chooser message. Only call gtk_file_chooser_set_current_name when action is SAVE. 2006-09-04 Andreas Schwab * Makefile.in: Double all single and back quotes in C-style comments to help fontifier. 2006-09-03 Jason Rumney * w32.c (shutdown_handler): New function to exit cleanly on shutdown. (globals_of_w32): Register it as a signal handler. 2006-09-02 Juri Linkov * marker.c (Fmarker_position): Doc fix. 2006-09-03 Eli Zaretskii * window.c (syms_of_window) : : Doc fix. 2006-09-02 Jan Dj,Ad(Brv * gtkutil.c (xg_get_file_with_chooser): Change file chooser message for writing files. Call gtk_file_chooser_set_current_name to keep default filename. * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls 2006-09-02 Jindrich Makovicka (tiny change) * fns.c (concat) [__GNUC__]: Declare with `__attribute__((noinline))'. * eval.c (apply1, call2) [__GNUC__]: Declare with `__attribute__((noinline))'. 2006-09-02 Stuart D. Herring * minibuf.c (Finternal_complete_buffer): New function. (syms_of_minibuf): Defsubr it. (Fread_buffer): Use it, instead of Vbuffer_alist. 2006-09-01 Martin Rudalics * buffer.h (struct buffer_text): New field chars_modiff. (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros. * buffer.c (Fbuffer_chars_modified_tick): New function returning value of BUF_CHARS_MODIFF. (syms_of_buffer): Defsubr it. (Fget_buffer_create): Initialize BUF_CHARS_MODIFF. * insdel.c (modify_region): New argument preserve_chars_modiff. Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero. (insert_1_both, insert_from_string_1, insert_from_buffer_1) (adjust_after_replace, adjust_after_replace_noundo) (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF. * lisp.h (modify_region): Add fourth argument in extern. * casefiddle.c (casify_region): Call modify_region with fourth argument zero to assert that CHARS_MODIFF is updated. * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal) (Ftranspose_regions): Likewise. * textprop.c (Fadd_text_properties, Fset_text_properties) (Fremove_text_properties, Fremove_list_of_text_properties): Call modify_region with fourth argument 1 to avoid that CHARS_MODIFF is updated. 2006-08-31 Richard Stallman * editfns.c (Fformat): Don't sign-extend for %o or %x. 2006-08-29 Chong Yidong * indent.c (Fvertical_motion): Don't move back if we were displaying a Lisp string, either. 2006-08-28 Kim F. Storm * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]: Don't attempt to replace cursor on image glyphs. 2006-08-28 Kenichi Handa * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix docstring about ISO-2022 control characters. 2006-08-28 Kim F. Storm * xdisp.c (get_window_cursor_type): Replace BOX cursor on images with a hollow box cursor if image is larger than 32x32 (or the default frame font if that is bigger). Replace any other cursor on images with hollow box cursor, as redisplay doesn't support bar and hbar cursors on images. 2006-08-27 YAMAMOTO Mitsuharu * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous change. Move mutex lock/unlock operations inside BLOCK_INPUT. * dired.c (directory_files_internal_unwind, directory_files_internal) (file_name_completion): Add BLOCK_INPUT around opendir/closedir. * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead of OSErr. * keyboard.c (in_sighandler): Remove variable. (Fcurrent_idle_time): Add missing `doc:'. (input_available_signal, init_keyboard): Undo previous change. * keyboard.h (in_sighandler): Remove extern. * mac.c (create_apple_event_from_event_ref, select) (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator) (Fmac_set_file_type, cfstring_create_normalized) (mac_get_system_locale, select_and_poll_event, sys_select): Use OSStatus instead of OSErr. * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias. (Fx_create_frame): Apply 2006-07-03 for xfns.c. * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string) (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string) (get_scrap_private_timestamp, get_scrap_target_type_list) (x_own_selection, x_get_foreign_selection) (Fx_disown_selection_internal, Fx_selection_owner_p) (Fx_selection_exists_p): Use OSStatus instead of OSErr. * macterm.c (mac_draw_string_common, mac_query_char_extents) (x_iconify_frame, XLoadQueryFont, install_window_handler) (mac_handle_command_event, init_command_handler, init_menu_bar): Use OSStatus instead of OSErr. (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use FRAME_FILE_NAME. (x_query_font): Apply 2006-08-04 change for xterm.c. (Qhi_command): Rename from Qhicommand. All uses changed. * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member file_name. (FRAME_FILE_NAME): Remove macro. (install_window_handler, create_apple_event_from_event_ref): Return OSStatus instead of OSErr. 2006-08-26 Kim F. Storm * buffer.c (Fset_buffer_multibyte): * editfns.c (Fcurrent_time, Fget_internal_run_time): * macfns.c (Fxw_color_values): * w32fns.c (Fxw_color_values): * xfns.c (Fxw_color_values): Simplify; use list3. * fileio.c (Fmake_directory_internal, Fdelete_directory) (Fdelete_file): Simplify; use list1. (Frename_file, Fadd_name_to_file, Fmake_symbolic_link): Simplify; remove NO_ARG_ARRAY stuff, use list2. 2006-08-25 Richard Stallman * buffer.c (Fswitch_to_buffer): Fix previous change. 2006-08-25 Kim F. Storm * keyboard.c (Fcurrent_idle_time): Simplify. 2006-08-25 Richard Stallman * fns.c (sxhash_string): Rotate properly; don't lose bits. 2006-08-24 Francesc Rocher * xdisp.c (overline_margin): New variable. (x_produce_glyphs): Use it. (syms_of_xdisp): DEFVAR_INT it. * xterm.c (x_underline_at_descent_line): New variable. (syms_of_xterm): DEFVAR_BOOL it. (x_draw_glyph_string): Use it. Draw underline and overline up to the end of line if the face extends to the end of line. * macterm.c: Likewise. * w32term.c: Likewise. 2006-08-24 Nick Roberts * buffer.c (Fswitch_to_buffer): Move buffer to front of buffer-alist if necessary. 2006-08-22 Kim F. Storm * xdisp.c (update_tool_bar): Redisplay toolbar also when only number of items changes. 2006-08-22 Stefan Monnier * buffer.c (Fset_buffer_multibyte): Record proper undo entry. 2006-08-21 Jan Dj,Ad(Brv * keyboard.c: Clarify difference between in_sighandler and handling_signal. 2006-08-21 Kim F. Storm * macterm.c (x_draw_stretch_glyph_string): * w32term.c (x_draw_stretch_glyph_string): * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a stretch glyph in left marginal areas on header and mode lines. 2006-08-21 Kenichi Handa * keyboard.c (syms_of_keyboard): Docstring of Vunread_post_input_method_events and Vunread_input_method_events fixed. 2006-08-20 Chong Yidong * keyboard.c (show_help_echo): Preserve mouse movement flag if tracking mouse. 2006-08-20 Richard Stallman * xfaces.c (load_pixmap): Add quotes in error message. * keyboard.c (Fcurrent_idle_time): New function. (syms_of_keyboard): defsubr it. 2006-08-18 Nick Roberts * window.c (Fset_window_fringes): Do nothing on a tty. (Fwindow_fringes): Put ? operator after the line break. 2006-08-16 Andreas Schwab * print.c (debug_output_compilation_hack): Fix return type. 2006-08-16 Richard Stallman * print.c (debug_output_compilation_hack): New function. 2006-08-16 Kenichi Handa * fileio.c (choose_write_coding_system): Use LF for end-of-line in auto-saving. 2006-08-15 Chong Yidong * keyboard.c (read_char): Don't change idle timer state at all if end_time is supplied. 2006-08-15 Kenichi Handa * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC is exhausted, return with RET. (detect_coding_emacs_mule, detect_coding_iso2022) (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8) (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above change. 2006-08-14 Chong Yidong * keyboard.c (read_char): Don't reset idle timers if a time limit is supplied. 2006-08-14 Kim F. Storm * .gdbinit (pitx): Print iterator position. Limit stack dump in case iterator is not initialized. 2006-08-12 Eli Zaretskii * frame.c (Fmouse_position, Fmouse_pixel_position) (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix. 2006-08-11 Jan Dj,Ad(Brv * xselect.c (Fx_register_dnd_atom): New function. (syms_of_xselect): Defsubr it. (x_handle_dnd_message): Check that message_type is in dpyinfo->x_dnd_atoms before generating lisp event. * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track of drag and drop Atoms. * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms* 2006-08-10 Jan Dj,Ad(Brv * keyboard.c: Define in_sighandler. (input_available_signal): Set in_sighandler. (init_keyboard): Initialize in_sighandler. * keyboard.h: Declare in_sighandler. * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler to check if mutex should be locked or not. 2006-08-09 Richard Stallman * keyboard.c (keyremap_step): No-op if fkey->parent = nil. (read_key_sequence): Always start fkey.start and fkey.end at 0, and likewise for keytran. 2006-08-09 Kenichi Handa * coding.c (syms_of_coding): Improve the docstring of file-coding-system-alist. 2006-08-07 Andreas Schwab * puresize.h (BASE_PURESIZE): Increase to 1120000. 2006-08-06 Chong Yidong * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars. (Fkill_all_local_variables): Use it. (syms_of_buffer): Defvar it. 2006-08-05 Eli Zaretskii * w32.c (w32_valid_pointer_p): New function. * w32.h: Add prototype for w32_valid_pointer_p. * alloc.c: Include w32.h. (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do the job. * keyboard.c (kbd_buffer_get_event): Return Qnil when current time is exactly equal to end_time, not only when it is past that. 2006-08-04 Chong Yidong * keyboard.c (read_char): Rebalance specpdl after receiving jump. * process.c: Reapply 2006-08-01 change. 2006-08-04 Eli Zaretskii * w32fns.c (w32_query_font): Fix last change: use stricmp. 2006-08-04 Stefan Monnier * editfns.c (Fsubst_char_in_region): Redo the setup work after running the before-change-functions since they may have altered the buffer. 2006-08-04 Ralf Angeli * w32fns.c (w32_createwindow): Handle -geometry command line option and the geometry settings in the Registry. 2006-08-04 Kenichi Handa * w32fns.c (w32_query_font): Compare names by ignoring case. * xterm.c (x_query_font): Compare names by ignoring case. 2006-08-03 Jason Rumney * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit when no option selected. 2006-08-03 Chong Yidong * process.c: Revert last change. 2006-08-01 Kim F. Storm * process.c (wait_reading_process_output_unwind): New function. Restores waiting_for_user_input_p to saved value. (wait_reading_process_output): Unwind protect waiting_for_user_input_p instead of save/restore old value on stack. 2006-07-30 Thien-Thi Nguyen * editfns.c: Undo 2006-06-27 change. 2006-07-29 Eli Zaretskii * coding.c (Ffind_operation_coding_system): Revert the change from 2006-05-29. * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change. 2006-07-28 Richard Stallman * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p): Add conditional aborts for clarity. * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed. Used to avoid running the hooks over and over for each frame. (prepare_menu_bars): Pass value from update_menu_bar as HOOKS_RUN of next call. * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil. 2006-07-28 Kim F. Storm * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p). (valid_lisp_object_p): Use it to check for valid SUBRP obj. 2006-07-26 Chong Yidong * keyboard.c (read_char): New arg END_TIME specifying timeout. All callers changed. Turn off echoing if END_TIME is non-NULL. (kbd_buffer_get_event): New arg END_TIME. * lread.c (read_filtered_event): New arg SECONDS to wait until. (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS. * lisp.h: Update read-char, read-event, and read_filtered_event prototypes. * keyboard.h: Include systime.h. Update read_char prototype. 2006-07-25 YAMAMOTO Mitsuharu * alloc.c (find_string_data_in_pure): New function. (make_pure_string): Use it to reuse existing string data if possible. * puresize.h (BASE_PURESIZE): Decrease to 1102000. 2006-07-22 Stefan Monnier * keymap.c (Fdefine_key): If the key binding definition looks like an XEmacs-style key sequence, convert it to Emacs's format. 2006-07-22 Ralf Angeli * w32fns.c (w32_createwindow): If `left' and/or `top' frame parameters are bound to some values, use that instead of CW_USEDEFAULT. 2006-07-21 Eli Zaretskii * w32.c (convert_time): Use explicit long double constants to ensure long double arithmetics is used throughout. 2006-07-20 YAMAMOTO Mitsuharu * alloc.