2007-04-24 Chong Yidong * Branch for 22.1. 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ärv * 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 continuation line during mouse-click. 2007-03-09 Jan Djärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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ärv * 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.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars. (init_alloc_once): Initialize them. (pure_alloc): Allocate non-Lisp objects from the end of pure storage without alignment. * puresize.h (BASE_PURESIZE): Decrease to 1141000. 2006-07-18 Francis Litterio * w32term.c (x_calc_absolute_position): Fix frame positioning with negative X/Y coordinates. 2006-07-18 Dan Nicolaescu * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN. * textprop.c (text_read_only): Likewise. * lread.c (end_of_file_error): Likewise. * lisp.h (circular_list_error, memory_full, buffer_memory_full): Likewise. * eval.c (unwind_to_catch): Likewise. * buffer.h (buffer_slot_type_mismatch): Likewise. 2006-07-18 Kim F. Storm Cleanup Fsignal calls that never returns; now only use it for Qquit. * eval.c (xsignal): New func. Like Fsignal, but marked no-return. (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions. (signal_error): New no-return function (from xfaces.c). (Fthrow): Use xsignal2 instead of Fsignal + abort. (error): Use xsignal1 instead of Fsignal + abort. (FletX, Flet, grow_specpdl): Use signal_error. (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2. * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop. (list1): New function. * lisp.h (list1): Add EXFUN. (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error): Add prototypes. Mark them as no-return. * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only): Use xsignal1. * callint.c (check_mark): Use xsignal0. * casefiddle.c (casify_object): wrong_type_argument is no-return. * cmds.c (Fforward_char, Fdelete_char): Use xsignal0. * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop. (Fdefine_coding_system_internal): Use xsignal1. * data.c (circular_list_error): Use xsignal. (wrong_type_argument): Use xsignal2. Don't care about return value. (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3. Remove loop around Fsignal. (indirect_variable, Fsymbol_value, set_internal, Fdefault_value) (indirect_function, Findirect_function, Fstring_to_number) (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1. (arith_driver, float_arith_driver, Frem, Fmod, arith_error): Use xsignal0. * doc.c (Fdocumentation): Use xsignal1. * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0. * fileio.c (report_file_error): Use xsignal. (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file) (Finsert_file_contents): Use xsignal2. (syms_of_fileio): Use list2, list3. * floatfns.c (arith_error, range_error, domain_error): Use xsignal2. (range_error2, domain_error2): Use xsignal3. (rounding_driver, fmod_float): Use xsignal0. (float_error): Use xsignal1. (matherr): Use xsignal. * fns.c (Flength): wrong_type_argument is no-return. (hashfn_user_defined, Fmake_hash_table): Use signal_error. (Fmd5): Use xsignal1. * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error. * keyboard.c (recursive_edit_1): Use xsignal1. * keymap.c (Fmap_keymap): Use xsignal1. * lread.c (Fload): Use xsignal2, signal_error. (end_of_file_error): Use xsignal0, xsignal1. (read0): Use xsignal1. (invalid_syntax): New error function marked no-return. (read_integer, read1, read_list): Use it. * macselect.c (x_get_local_selection): Use signal_error. * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2. * search.c (compile_pattern_1): Use xsignal1. (signal_failure): Remove (was only called once). (search_command): Use xsignal1 instead of signal_failure. * syntax.c (scan_lists): Use xsignal3. * textprop.c (text_read_only): Use xsignal0, xsignal1. * unexsol.c (unexec): Use xsignal. * window.c (window_scroll_pixel_based, window_scroll_line_based): Use xsignal0. * xfaces.c (signal_error): Move to eval.c. (resolve_face_name): Use xsignal1. * xfns.c (x_decode_color): Use signal_error. * xselect.c (x_get_local_selection, copy_multiple_data) (x_get_window_property_as_lisp_data) (lisp_data_to_selection_data, CHECK_CUT_BUFFER) (Fx_get_cut_buffer_internal): Use signal_error. 2006-07-18 YAMAMOTO Mitsuharu * macterm.c (XTread_socket): Undo previous change. 2006-07-18 YAMAMOTO Mitsuharu * macterm.c (keycode_to_xkeysym): Remove function. All uses now directly lookup keycode_to_xkeysym_table. [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries. (XTread_socket): Use character codes to construct keypad key events. (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel. (x_delete_display): Apply 2006-07-04 change for xterm.c. 2006-07-17 Richard Stallman * keyboard.c (Vcommand_error_function): New variable. (syms_of_keyboard): Defvar it. (cmd_error_internal): Simplify, and handle Vcommand_error_function. * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg. 2006-07-17 Kim F. Storm * xdisp.c (handle_single_display_spec): Ensure the right value of it->position is saved by push_it. (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING. (reseat_1): Don't setup it->object twice. (set_iterator_to_next): No need to set it->object after pop_it. (move_it_to): Explicitly check to see if last move reached to_charpos. 2006-07-17 Thien-Thi Nguyen * xdisp.c (display_mode_line): Preserve match data. 2006-07-14 Kim F. Storm * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs. (init_winsock): Load them. Use ws2_32.dll. (sys_listen): Undo last change. Just set FILE_LISTEN flag. (sys_accept): Undo last change. Instead, set child status to STATUS_READ_ACKNOWLEDGED and reset char_avail event so next sys_select will wakeup the reader thread. (_sys_wait_accept): New function used by reader thread to wait for an incoming connection on a server socket. * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes. * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a server socket (FILE_LISTEN flag). 2006-07-14 Jan Djärv * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open. 2006-07-14 Kim F. Storm * w32.c: Fix high cpu load for server sockets. (pfn_WSAEventSelect): New function ptr. (init_winsock): Load it. (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's char_avail event object to FD_ACCEPT. (sys_accept): Check FILE_LISTEN flag. Set event mask on new socket's char_avail event object to FD_READ|FD_CLOSE. * w32.h (FILE_LISTEN): New filedesc flag value. 2006-07-13 Kim F. Storm * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr. Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe. Simplify loops and use CAR for Bnth and Belt. * data.c (Findirect_function): Optimize for no indirection. * eval.c (Fthrow): Remove loop around Fsignal. (Feval, Fapply, Ffuncall): Optimize for no function indirection. Use original function name in all signaled errors. Simplify Fsignal calls (no return). (funcall_lambda): Simplify Fsignal calls (no return). 2006-07-13 Andreas Schwab * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and out_charpos. 2006-07-13 Kenichi Handa * editfns.c (Fformat): Fix calculation of text property positions of format string. 2006-07-12 Kim F. Storm * lisp.h (CHECK_TYPE): New macro for generic type checking. (CAR_SAFE, CDR_SAFE): New macros. (ARRAYP, CHECK_ARRAY): New macros. (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros. (CHECK_WINDOW_CONFIGURATION): New macro. (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal. (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST) (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL) (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE) (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS) (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY) (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT) (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE. * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE. * callint.c (Fcall_interactively): * casefiddle.c (casify_object): * editfns.c (general_insert_function): * fns.c (Flength, Felt, Ffillarray): * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument. * data.c (wrong_type_argument): Remove loop around Fsignal. (Farrayp, Fsequencep): Use ARRAYP. (Fcar): Use CAR. (Fcar_safe): Use CAR_SAFE. (Fcdr): Use CDR. (Fcdr_safe): Use CDR_SAFE. (Fsetcar, Fsetcdr): Use CHECK_CONS. (Fsubr_arity, Fsubr_name): Use CHECK_SUBR. (Faset): Use CHECK_ARRAY. * fns.c (Felt): Use CHECK_ARRAY. (concat): Use CHECK_NUMBER. (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING. (Fmemq): Use CHECK_LIST. (Fassq, Fassoc, Frassq, Frassoc): Use CAR. (assq_no_quit): Use CAR_SAFE. (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc): Use CHECK_LIST_CONS. (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END. * bytecode.c (Fbyte_code): Use CHECK_VECTOR. * casetab.c (check_case_table): * category.c (check_category_table): * marker.c (Fcopy_marker): * syntax.c (check_syntax_table): * xfaces.c (load_pixmap): Use CHECK_TYPE. * fns.c (Fcopy_sequence, concat): * fringe.c (Fdefine_fringe_bitmap): * lread.c (check_obarray): Cleanup wrong_type_argument use. * keyboard.c (access_keymap_keyremap): Use ARRAYP. * keymap.c (Fdefine_key, Flookup_key): * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING. * mac.c (Fmac_get_preference): Use CHECK_LIST_END. * search.c (Fset_match_data): Use CHECK_LIST. * sunfns.c (sun_item_create): Use CHECK_LIST_CONS. * window.c (Fwindow_configuration_frame, Fset_window_configuration): (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION. 2006-07-12 YAMAMOTO Mitsuharu * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h. * dired.c: Include blockinput.h. (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid. * editfns.c: Include blockinput.h. (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around getpwuid/getpwnam. * fileio.c: Include blockinput.h. (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT around getpwnam. (search_embedded_absfilename): Remove spurious xfree. 2006-07-11 Kim F. Storm * dispnew.c (sit_for): Reduce number of args from 5 to 3. Now just one TIMEOUT arg that can be a Lisp float or Lisp int. Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY. Signal error if TIMEOUT is not a number. Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0. The rework of sit_for args also fixes several incorrect Qt args which should have been 1. (Fredisplay): Pass 1 instead of Qt to swallow_events and detect_input_pending_run_timers. * lisp.h (sit_for): Update prototype. (Fredisplay): Add EXFUN. * dispextern.h (sit_for): Remove prototype. * callint.c (Fcall_interactively): * minibuf.c (temp_echo_area_glyphs): * keyboard.c (command_loop_1, read_char, Fexecute_extended_command): * fileio.c (Fdo_auto_save): Update/simplify sit_for calls. 2006-07-11 Stefan Monnier * syntax.c (forw_comment): Also use EMACS_INT for buffer positions. 2006-07-11 Kim F. Storm * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when input is available. Fix test for redisplay_dont_pause non-nil. Specbind redisplay-dont-pause to t if FORCE non-nil. 2006-07-10 Chong Yidong * puresize.h (BASE_PURESIZE): Increment to 1211000. * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0). (Fsit_for): Function deleted. * keyboard.c (command_loop_1, Fexecute_extended_command): Call sit_for instead of Fsit_for. * minibuf.c (temp_echo_area_glyphs): Likewise. 2006-07-09 Stefan Monnier * syntax.c (Fforward_comment): Revert the reversion. (back_comment, scan_lists): Also use EMACS_INT for buffer positions. 2006-07-09 John Paul Wallington * syntax.c (Fforward_comment): Revert previous change. 2006-07-09 Kim F. Storm * window.c (Fforce_window_update): Doc fix. 2006-07-08 Stephen Gildea * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file directory unreadable for better user privacy. 2006-07-07 Stefan Monnier * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup. * lread.c (read_filtered_event): Remove `register' qualifier because it causes compilation problem with gcc-4.0.2-20051125 on amd64. (readevalloop): Remove unused var `bpos'. Yet another int/Lisp_Object mixup (YAILOM). 2006-07-07 Eli Zaretskii * keyboard.c (Fexecute_extended_command): Mention the argument PREFIXARG in the doc string. 2006-07-07 Kim F. Storm * fringe.c (Fdefine_fringe_bitmap): Doc fix. 2006-07-05 Chong Yidong * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do clash detection using the base buffer. * puresize.h (BASE_PURESIZE): Increment to 1210500. 2006-07-04 Kim F. Storm * xterm.c (x_delete_display): Don't free or dereference NULL pointers. 2006-07-04 Kenichi Handa * fontset.c (Fset_overriding_fontspec_internal): Check if we need to update Voverriding_fontspec_alist. 2006-07-03 Richard Stallman * xfns.c (Fx_create_frame): Move unwind_create_frame setup down. * xfaces.c (Fface_attribute_relative_p): Doc fix. * textprop.c (Fget_char_property_and_overlay): Doc fix. * eval.c (Fdefvaralias): Doc fix. 2006-07-03 Kim F. Storm * dispnew.c (sit_for): Fix preempt condition. 2006-07-02 Stefan Monnier * lread.c (read_filtered_event): Treat select-window just like switch-frame. 2006-07-02 Kim F. Storm * xdisp.c (display_tool_bar_line): Skip glyphs which are too big to ever fit the tool-bar, (MAX_FRAME_TOOL_BAR_HEIGHT): New macro. (tool_bar_lines_needed): Use unused mode-line row as temp_row. (redisplay_tool_bar): Only clear desired matrix if we actually change the tool-bar window height. Only try to make the tool-bar window bigger if there is actually room for it. 2006-06-30 Ralf Angeli * w32term.c (x_make_frame_visible): Use SystemParametersInfo with SPI_GETWORKAREA to find the dimensions of the screen work area, and adjust vertical position of the frame in order to avoid being covered by the task bar. * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of f->left_pos and SH_SHOW instead of f->top_pos in the call to CreateWindow. Record the actual position in f->left_pos and f->top_pos. 2006-06-30 John Paul Wallington * w32console.c (syms_of_ntterm) : Doc fix - default value has changed. 2006-06-28 YAMAMOTO Mitsuharu * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h. * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c. * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1. * macterm.c (Qeql): Add extern. (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition. (fm_style_face_attributes_alist) [USE_ATSUI]: New variable. (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it. Change keys of Vmac_atsu_font_table from strings to numbers. (fm_style_to_face_attributes) [USE_ATSUI]: New function. (init_font_name_table) [USE_ATSUI]: Use it. (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable. (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it. [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes only when saved_ts_script_language_on_focus coincides with Vmac_ts_script_language_on_focus. [USE_MAC_TSM] (mac_tsm_suspend): Save value of Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus. (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support. [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise. 2006-06-27 Chong Yidong * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning) (Ffield_string_no_properties, Ffield_end): Mention args-out-of-range error condition in docstring. 2006-06-27 Kim F. Storm * xdisp.c (handle_composition_prop): Set stop_charpos before push_it. 2006-06-25 Kim F. Storm * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel version 2.4 and later. 2006-06-24 Chong Yidong * xfns.c (Fx_create_frame): Set font parameter directly instead of using x_default_parameter, since x_get_args clears the parm alist. 2006-06-24 Eli Zaretskii * dired.c (directory_files_internal) [WINDOWSNT]: Find files case-insensitively. 2006-06-24 Aidan Kehoe * lread.c (read_escape): When an unknown Unicode code point is encountered as a string or character escape, signal an error. 2006-06-23 Kim F. Storm * .gdbinit (pitx): Dump iterator stack. * xdisp.c (handle_composition_prop): Push iterator on stack. (set_iterator_to_next): Pop iterator at end of composition. 2006-06-23 Martin Rudalics * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to itself on DOS_NT platforms, if the old and new names are identical but for the letter-case. 2006-06-21 Kim F. Storm * dispextern.h (struct it): Add `position' member to iterator stack. Rename `pos' member to `current'. Rearrange and add comments. * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p if we get any overlays. (set_cursor_from_row): Don't clobber `end' if we rescan from start_string. (push_it, pop_it): Save it->position. 2006-06-19 Richard Stallman * window.c (size_window): New arg FIRST_ONLY. All callers changed. (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL for the case of a top-level window and the following minibuffer. Don't exit because of no `next' when there is a parent. Use the FIRST_ONLY feature when resizing following windows. * syntax.c (init_syntax_once): Give most control chars' syntax Spunct. 2006-06-17 Kim F. Storm * dispnew.c (update_frame): Check for input pending on entry. (update_window, update_frame_1): Break loop if input is detected. 2006-06-16 Francis Litterio * xterm.c (x_check_expected_move, handle_one_xevent) (x_set_offset, x_check_fullscreen): Extensive changes to make frame positioning deterministic under X. * xterm.h (x_output): Add members left_before_move and top_before_move. Removed members expected_left and expected_top. 2006-06-16 Kim F. Storm * dispextern.h (struct it): Add union to iterator stack to save image, composition, and stretch specific parameters. * xdisp.c (next_overlay_string): Fix assert. (push_it, pop_it): Handle composition and stretch specific values. Only handle it->slice in image (for now). (back_to_previous_visible_line_start): Continue search if newline is part of a composition. Simplify. (reseat_1): Set it->object to buffer. (set_iterator_to_next): Set it->object to string or buffer, when setting it->method to GET_FROM_STRING or GET_FROM_BUFFER. (next_element_from_composition): Set it->object to buffer if not from string. (set_cursor_from_row): Only save start of string if not already done to handle multiple strings in a row. * .gdbinit (pitx): Show composition parameters. (pgx, pg): New commands to print a glyph structure. (pgi, pgn): New commands to print specific/next glyph. (pgrowx, pgrow): New commands to print all glyphs in a row. 2006-06-16 YAMAMOTO Mitsuharu * macfns.c (Fx_display_mm_height, Fx_display_mm_width) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize. * macterm.c (do_app_resume, do_app_suspend): Remove functions. (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions. (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them. (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable. (syms_of_macterm) [USE_MAC_TSM]: Defvar it. (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables. (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display Services functions to get size of main display in pixels. 2006-06-14 Chong Yidong * xdisp.c (back_to_previous_visible_line_start): Reset it->continuation_lines_width. 2006-06-14 Richard Stallman * eval.c (Fdefconst): Mark variable as risky. * callproc.c (Fcall_process): Doc fix. * window.c (adjust_window_trailing_edge): Don't break out of the loop because there's no next window, if there are parallel windows. Do break out when WINDOW is nil. 2006-06-14 Kim F. Storm * dispextern.h (IT_STACK_SIZE): New macro specifying size of iterator stack (instead of hardcoded number). Increase from 2 to 4 to make room for propertized overlay strings before and after a display string, image or composition. (struct it): Add image_id and method members to iterator stack. * xdisp.c (init_from_display_pos): Don't set it->method and overlay_string_index after pop_it. Add asserts. (handle_stop): Look for overlay strings around a display string, image, or composition. Handle properties on those strings. (next_overlay_string): Don't set string, pos or method after pop_it. (get_overlay_strings_1): Split from get_overlay_strings; don't modify it if no overlay strings are found. (get_overlay_strings): Use get_overlay_strings_1. Always set it->string and it->method. (push_it): Push it->image_id and it->method. Push it->object instead of it->string if method is GET_FROM_IMAGE. (pop_it): Pop it->image_id and it->method. Ppo it->object instead of it->string if method is GET_FROM_IMAGE. Reset it->current.string_pos if popped it->string is nil. (reseat_1): Remove comment dated 19 May 2003. It expressed doubt whether a given change was correct; but the change is correct. Clear it->string_from_display_prop_p. (set_iterator_to_next): Rely on it->method and it->image_id from iterator stack, instead of setting them explicitly after pop_it. * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a negative time forces redisplay even when input is available. (Fsit_for): Doc fix. 2006-06-13 Kim F. Storm * dispnew.c: Modify preemptive redisplay to be based on periodic checks for input. (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS. (Vredisplay_preemption_period): New variable. (syms_of_display): DEFVAR_LISP and initialize it. (preemption_period, preemption_next_check): New variables. (update_frame, update_single_window): Initialize them based on Vredisplay_preemption_period if !force_p. (update_window, update_frame_1): Use them to determine when to check for input. 2006-06-03 Aidan Kehoe * lread.c (read_escape): Provide a Unicode character escape syntax; \u followed by exactly four or \U followed by exactly eight hex digits in a comment or string is read as a Unicode character with that code point. 2006-06-09 Eli Zaretskii * window.c (window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down at the beginning of an empty buffer. 2006-06-06 YAMAMOTO Mitsuharu * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude 0x7f from ASCII range. 2006-06-05 Jason Rumney * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create) (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click) (x_scroll_bar_report_motion): Remove workarounds for versions of Windows NT < 3.51. [!SIF_ALL]: Remove. (pfnSetScrollInfo, pfnGetScrollInfo): Remove. (w32_initialize): Don't dynamically load Get/SetScrollInfo. 2006-06-04 David Kastrup * dispnew.c: Mention `redisplay-dont-pause' in doc string of `sit-for'. 2006-06-03 YAMAMOTO Mitsuharu * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c. * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X. * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable. (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event) [USE_MAC_TSM]: Likewise. (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them. (Qbefore_string) [USE_MAC_TSM]: Add extern. (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call ActivateTSMDocument/DeactivateTSMDocument. (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event. (mac_handle_window_event) [USE_MAC_TSM]: Handle kEventWindowFocusAcquired/kEventWindowFocusRelinquish. (mac_handle_text_input_event) [USE_MAC_TSM]: New function. (install_window_handler) [USE_MAC_TSM]: Install it. Register kEventWindowFocusAcquired/kEventWindowFocusRelinquish. (keycode_to_xkeysym_table): Add entry for f16. (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev before/after passing keystroke event to toolbox dispatcher. (init_tsm) [USE_MAC_TSM]: New function. (mac_initialize) [USE_MAC_TSM]: Call it. (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar. * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator. 2006-06-02 John Paul Wallington * xfns.c (x_set_name_internal): Set icon to `text', derived from name, when frame's icon_name isn't a string rather than only when it is nil. 2006-06-03 Eli Zaretskii * w32fns.c (x_set_icon_name): Don't use arg if it's not a string and not nil. 2006-06-02 Chong Yidong * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a string. 2006-06-02 YAMAMOTO Mitsuharu * xdisp.c (next_element_from_composition): Set it->object to it->string if composition is coming from string. (set_cursor_from_row): Don't return 0 unless row displays a continued line. (dump_glyph): Dump composite glyph. 2006-06-02 Jan Djärv * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL. 2006-06-01 Richard Stallman * window.c (Fsplit_window): Doc fix. 2006-06-01 Michaël Cadilhac * process.c (deleted_pid_list): New variable to store the pids of deleted processes. Declare it only if SIGCHLD is defined. (init_process): Initialize it. (syms_of_process): Staticpro it. (Fdelete_process): Add pid of the deleted process to it. Check after the addition and before the kill if the process is already stopped, in which case it is deleted from the list and not killed. (sigchld_handler): Define it only if SIGCHLD is. Search the process that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'. Original idea by Stefan Monnier. 2006-06-01 Kim F. Storm * dispnew.c (sit_for): Perform redisplay even if input is pending when redisplay-dont-pause is non-nil. 2006-06-01 YAMAMOTO Mitsuharu * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil. (XTread_socket): Remove obsolete comment. 2006-06-01 Jan Djärv * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for menu-bar-open. 2006-06-01 Jan Djärv * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to menu-bar-open. * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open. 2006-05-31 Juri Linkov * minibuf.c (Vhistory_add_new_input): New variable. (read_minibuf): Use it. (syms_of_minibuf) : New Lisp variable. (syms_of_minibuf) : Doc fix. 2006-05-31 Kim F. Storm * process.c (select_wrapper): Add wrapper around select to work around "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside select called from wait_reading_process_output. 2006-05-30 Andreas Schwab * xmenu.c (Fmenu_bar_start): Return a value. 2006-05-30 Richard Stallman * coding.c (Ffind_operation_coding_system): Doc fix. 2006-05-30 Eli Zaretskii * w32term.c (x_draw_hollow_cursor): Fix last change. 2006-05-29 Kim F. Storm * w32term.c (x_draw_stretch_glyph_string): Fix last change. 2006-05-29 Eli Zaretskii * coding.c (Ffind_operation_coding_system): Doc fix. 2006-05-29 YAMAMOTO Mitsuharu * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Call mac_set_font_info_for_selection if font panel is made visible. * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable. (mac_font_panel_visible_p, mac_show_hide_font_panel) [USE_MAC_FONT_PANEL]: New functions. [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return immediately if font panel is not visible. * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel): Add externs. 2006-05-29 Dan Nicolaescu * search.c (matcher_overflow): Mark as NO_RETURN. * xterm.c (x_connection_closed): Likewise. * sysdep.c (croak): Likewise. * sound.c (sound_perror, alsa_sound_perror): Likewise. * lisp.h (die, nsberror): Likewise. 2006-05-29 Jan Djärv * sound.c (alsa_open, alsa_configure, alsa_write): Move assignment to err out of if-statement. * gtkutil.c (menu_nav_ended): New function. (create_menus): Connect menu_nav_ended to "selection-done" to fix grabs. * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT. 2006-05-28 Dan Nicolaescu * charset.h (invalid_character): Mark as NO_RETURN. 2006-05-29 Kenichi Handa * coding.c (Ffind_operation_coding_system): Call a function by safe_call1 instead of call1. 2006-05-28 Stefan Monnier * window.c (struct saved_window): Add `dedicated'. (Fset_window_configuration, save_window_save): Save/restore the `dedicated' flag. 2006-05-28 Kim F. Storm * xdisp.c (set_cursor_from_row): If cursor cannot be set in row, don't update w->cursor and return 0. Return 1 on success. (try_cursor_movement): Repeat set_cursor_from_row on successive rows until it succeeds. * dispextern.h (set_cursor_from_row): Update prototype. 2006-05-28 Kim F. Storm * xdisp.c (get_phys_cursor_geometry): Return computed x and y through parameters. Adjust x and width in case cursor in on a partially visible stretch glyph on the left edge. (erase_phys_cursor): Don't erase into left fringe/margin in case previous cursor glyph is a partially visible stretch glyph on left. * dispextern.h (get_phys_cursor_geometry): Update prototype. * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible cursor and erasing cursor on partially visible stretch glyph on left. (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry. * macterm.c: Likewise. * w32term.c: Likewise. 2006-05-27 YAMAMOTO Mitsuharu * macselect.c (mac_handle_apple_event): Return errAEEventNotHandled if key binding is not found. 2006-05-26 Eli Zaretskii * emacs.c (main) [PROFILING]: Enable also for __MINGW32__. [__MINGW32__]: MinGW-specific declaration of `etext'. * w32heap.c (etext, edata): Remove unused definitions. 2006-05-26 Chong Yidong * fileio.c (Fcopy_file): Delete argument MUSTBENEW. Incorporate the exclusive file-opening functionality into the behavior when OK-IF-ALREADY-EXISTS is nil. (Frename_file): Call Fcopy_file without MUSTBENEW argument. 2006-05-26 Jan Djärv * sound.c (alsa_configure): Move get period/buffer_size after setting hwparams. 2006-05-26 Kenichi Handa * coding.c (Ffind_operation_coding_system): Allow (FILENAME . BUFFER) in TARGET. 2006-05-25 Chong Yidong * image.c (png_load): Don't call fclose on NULL. 2006-05-25 Luc Teirlinck * fns.c (Fyes_or_no_p): * callint.c (Fcall_interactively): Fread_from_minibuffer now takes only seven args. 2006-05-25 Juri Linkov * lisp.h (Fread_from_minibuffer): Decrement number of args. * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed. (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed. * buffer.c (mode-line-format): Fix docstring. 2006-05-25 Richard Stallman * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__. 2006-05-24 Luc Teirlinck * puresize.h (BASE_PURESIZE): Increase to 1210000. 2006-05-24 Alan Mackenzie * lread.c (Vload_history): Enhance doc-string to say that the file is the absolute truename of the loaded file. * lread.c (Vafter_load_alist): doc-string: state that an element now has a regexp to match file names, not a file name as such. * lread.c (readevalloop): Call file-truename on the name for load-history, except at preloading time. * lread.c (Fload): At preloading time, preserve the extension of the filename which goes into load-history. New var hist_file_name. * lread.c (Fload): Do eval-after-load stuff by calling the lisp function do-after-load-evaluation. 2006-05-24 YAMAMOTO Mitsuharu * mac.c (ae_attr_table): New variable. (syms_of_mac): Intern and staticpro its elements. (mac_aelist_to_lisp): Also convert Apple event attributes. (mac_ae_put_lisp): New function. (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text. * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc. * macselect.c (Qemacs_suspension_id): New variable. (syms_of_macselect): Intern and staticpro it. (struct suspended_ae_info): New struct. (deferred_apple_events, defer_apple_events) (Fmac_process_deferred_apple_events): Use it. (suspended_apple_events): New variable. (mac_handle_apple_event_1): New function. (mac_handle_apple_event): Use it. Don't process previously suspended events. (cleanup_suspended_apple_events, get_suspension_id) (cleanup_all_suspended_apple_events): New functions. (init_apple_event_handler): Call cleanup_all_suspended_apple_events at exit. (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter) (Fmac_resume_apple_event): New defuns. (syms_of_macselect): Defsubr them. * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]: Fix last change. Don't map `fn' modifier if pressed with F1 ... F12. * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator. (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator. (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise. (gestaltSystemVersionMajor, gestaltSystemVersionMinor) (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]: Likewise. (typeUTF8Text, kEventParamWindowMouseLocation) [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise. (x_get_focus_frame, mac_ae_put_lisp): Add externs. 2006-05-23 YAMAMOTO Mitsuharu * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove. (fn_keycode_to_keycode_table) [MAC_OSX]: New variable. (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function. (XTread_socket) [TARGET_API_MAC_CARBON]: Use it. (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout resource to backtranslate key with modifiers. (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent. 2006-05-23 Jan Djärv * xterm.c: Remove declarations already in xterm.h. * xterm.h: Add extern declarations for x_clear_errors, x_fully_uncatch_errors, x_catching_errors and x_alloc_lighter_color_for_widget. Remove duplicated declarations. 2006-05-21 Richard Stallman * xfaces.c (best_matching_font): Abort for best == NULL before we start to use it. * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes. 2006-05-20 Kim F. Storm * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change. 2006-05-20 YAMAMOTO Mitsuharu * macterm.c (convert_fn_keycode): Fix last change. 2006-05-19 Eli Zaretskii * w32.c (init_environment): Perform the processing of environment variables on a copy of default variables and their values, not on the original. Simplify code that calls ExpandEnvironmentStrings and make buf1[] and buf2[] more visible for easier debugging. 2006-05-19 YAMAMOTO Mitsuharu * frame.c (x_set_border_width): Remove #ifndef MAC_OS. * image.c [MAC_OS] (gif_load): Allocate Lisp string first. * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame. * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]: Forward keyUp events to toolbox_dispatcher. * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)). 2006-05-18 Jan Djärv * config.in: Regenerated (HAVE_ALSA). * sound.c (alsa_sound_perror, alsa_open, alsa_period_size) (alsa_configure, alsa_close, alsa_choose_format, alsa_write) (snd_error_quiet, alsa_init): New functions. (vox_init): Return 0 if unable to open device. (Fplay_sound_internal): Test for alsa first and use vox (oss) as a fallback. (struct sound_device): Add period_size. (wav_play, au_play): Use period_size if set. * Makefile.in (CFLAGS_SOUND): New flags for ALSA. (ALL_CFLAGS): Add CFLAGS_SOUND. 2006-05-18 Kenichi Handa * callproc.c (Fcall_process): Reject encoding arguments by ascii-incompatible coding systems (e.g. utf-16). * coding.c (Qascii_incompatible): New variable. (syms_of_coding): Setup Qascii_incompatible. (setup_coding_system): Be sure to initialize coding->common_flags. Check `ascii-incompatible' property of the coding system. * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro. 2006-05-18 Kim F. Storm * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when backtracking in case last image doesn't fit on line. 2006-05-18 MIYOSHI Masanori (tiny change) * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than height of one frame default line. 2006-05-17 Richard Stallman * xfaces.c (better_font_p): Any font beats no font. (best_matching_font): Simplify based on above change. * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes. 2006-05-16 Kim F. Storm * xterm.c (handle_one_xevent): Check that f is not NULL before calling x_kill_gs_process. 2006-05-14 Richard Stallman * textprop.c (Fnext_single_char_property_change) (Fprevious_single_char_property_change): Don't allow returning value beyond LIMIT in any cases. (Fnext_char_property_change, Fprevious_char_property_change): Doc fix. * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV. 2006-05-14 Jan Djärv * xterm.c (handle_one_xevent): Check that f is not NULL before calling _XEditResCheckMessages. 2006-05-14 Kim F. Storm * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change. 2006-05-13 Eli Zaretskii * frame.c (x_set_border_width): Fix error message to say "frame", not "window". * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc. 2006-05-12 Chong Yidong * intervals.c (set_point_both): Fix mixup before before and after in variable names. * editfns.c (Fline_beginning_position): Inhibit point-motion hooks while setting point temporarily. 2006-05-11 Richard Stallman * lread.c (readevalloop): Abort if START non-nil for non-buffer input. 2006-05-11 Kim F. Storm * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values. 2006-05-11 Kenichi Handa * fileio.c (Finsert_file_contents): Fix for the case of IO error while handling replace operation. 2006-05-10 Kenichi Handa * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font chosen for the default face was different from the frame font, adjust the frame font. 2006-05-10 YAMAMOTO Mitsuharu * image.c (Qduration) [MAC_OS]: Undo previous change. (syms_of_image) [MAC_OS]: Likewise. [MAC_OS] (gif_load): Emulate Graphic Control Extension block. * macfns.c (x_to_mac_color): Fix shift amount change. (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame. [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix. * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from Vmac_services_selection. All uses changed. (mac_store_service_event): Rename from mac_store_services_event in extern and calls. * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses changed. [MAC_OSX] (mac_store_service_event): Rename from mac_store_services_event. All callers changed. [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args FACE_ID and C. All callers changed. (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call mac_set_font_info_for_selection when focus frame is destroyed. (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow. * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd args in extern. 2006-05-09 Chong Yidong * keymap.c (describe_map): Avoid generating duplicate entries if the shadowed binding has the same definition. 2006-05-09 Kenichi Handa * keymap.c (push_key_description): Handle invalid character key. 2006-05-08 Kenichi Handa * callproc.c (Fcall_process): Use system_eol_type for encoding arguments if eol_type is not yet decided. * coding.h (system_eol_type): Extern it. * coding.c (setup_coding_system): For invalid coding-system, set coding->eol_type to CODING_EOL_UNDECIDED. (encode_coding): Cancel previous change. (shrink_encoding_region): Likewise. (code_convert_region1): Likewise. (code_convert_string1): Likewise. (code_convert_string_norecord): Likewise. * fileio.c (choose_write_coding_system): Use system_eol_type for encoding if eol_type is not yet decided. * process.c (setup_process_coding_systems): Use system_eol_type for encoding if eol_type is not yet decided. (read_process_output): Likewise. (send_process): Likewise. 2006-05-07 Juanma Barranquero * minibuf.c (syms_of_minibuf) : Fix typo in doc. 2006-05-07 YAMAMOTO Mitsuharu * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c. (syms_of_mac): Likewise for defsubr. * macfns.c (mac_set_font): New function. (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it. (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify kWindowToolbarButtonAttribute when creating window. (Fmac_clear_font_name_table): Move from macfns.c. (syms_of_macfns): Likewise for defsubr. [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun. (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it. * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set and build is done on Mac OS X 10.2 and later. * macselect.c (mac_do_receive_drag): Remove unused variable `index'. (mac_store_services_event): Change return type in extern. * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to FMFontFamily value. [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function. (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it. (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern. (QWindow) [MAC_OSX]: Likewise. (Qfont) [USE_MAC_FONT_PANEL]: Likewise. (Vmac_atsu_font_table) [USE_ATSUI]: New variable. (syms_of_macterm) [USE_ATSUI]: Defvar it. (Qtoolbar_switch_mode) [MAC_OSX]: New variable. (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise. (syms_of_macterm): Intern and staticpro them. (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table. [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New function. [USE_CARBON_EVENTS] (mac_handle_command_event): Use it. [MAC_OSX] (mac_store_services_event): Likewise. [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle kEventWindowToolbarSwitchMode event. (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it. [MAC_OSX] (mac_store_services_event): Change return type to OSStatus. [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function. (install_window_handler) [USE_MAC_FONT_PANEL]: Install it. (XTread_socket): Select window on mouse click if x_focus_frame is NULL. * macterm.h (mac_set_font_info_for_selection): Add extern. 2006-05-06 YAMAMOTO Mitsuharu * image.c (Qduration) [MAC_OS]: New variable. (syms_of_image) [MAC_OS]: Intern and staticpro it. [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val. [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring instead of cfstring_create_with_string. 2006-05-06 Kim F. Storm * .gdbinit (xframe): Print frame name. (xlist): New command to print a list (max 10 elements). (xpr): Print lisp object of any type. (pitx): Print it->pixel_width. 2006-05-05 Kenichi Handa * xdisp.c (handle_composition_prop): Fix for the case of empty composition component. 2006-05-05 YAMAMOTO Mitsuharu * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info from event->arg. * termhooks.h (enum event_kind) [MAC_OS]: Update comment for MAC_APPLE_EVENT. * macterm.h (mac_make_lispy_event_code): Remove extern. (mac_post_mouse_moved_event): Add extern. (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to `const AEDesc *' in externs. (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern. * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to `const AEDesc *'. [TARGET_API_MAC_CARBON] (create_apple_event): New function. [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it. Use xrealloc instead of repeated xmalloc/xfree. [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New function. * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value. * macselect.c: Update copyright year. (mac_store_apple_event): Change return type to void in extern. (mac_handle_apple_event): Don't get return value from mac_store_apple_event. [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable. (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it. [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from macterm.c. Use Vmac_dnd_known_types as acceptable flavors. [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New implementation using create_apple_event_from_drag_ref. [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP) (mac_do_receive_dragUPP): Move variables from macterm.c. (install_drag_handler, remove_drag_handler): New functions. * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window path select also for proxy icon click. [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function. [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it. (xlfdpat_create): Remove unused label `error' and trailing sentences. (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c. (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to macselect.c. (install_drag_handler, remove_drag_handler): Add extern. (mac_store_apple_event): Change return type to void. All uses changed. Create Lisp object from Apple event and store it into input event. (mac_make_lispy_event_code): Remove function. [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function. (install_window_handler): Call install_drag_handler. (remove_window_handler): Call remove_drag_handler. 2006-05-03 Richard Stallman * sound.c (Fplay_sound_internal): Dynamically allocate current_sound_device and current_sound. (sound_cleanup): Free them. * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive when inside a keyboard macro. 2006-05-02 Andreas Schwab * xmenu.c (restore_menu_items): Return a value. 2006-05-01 Martin Rudalics * syntax.c (Fforward_comment): Detect generic comment at beginning of buffer when moving backwards. 2006-05-01 YAMAMOTO Mitsuharu * dispnew.c (update_window): Don't set changed_p when mode/header line is updated. * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar. (get_glyph_face_and_encoding, get_char_face_and_encoding): Don't distinguish known faces from others. * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion through typeFileURL failed. * macfns.c (mac_update_title_bar): New function. [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function. (show_hourglass, hide_hourglass) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined. (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1. (enum pcm_status): New enum. (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID) (XCharStructRow): Remove. Now validity is represented by non-negativeness of sum of ascent and descent. (struct MacFontStruct): Change type of member `rows'. (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'. * macterm.c (mac_draw_line, mac_draw_line_to_pixmap): Adjust endpoints of strictly horizontal/vertical lines. (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects. (pcm_init, pcm_get_status): New functions. (x_per_char_metric, XLoadQueryFont): Use them instead of XCharStructRow and related macros. (x_draw_relief_rect): Don't adjust arguments of mac_draw_line. (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME. (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag and window path pop-up menu on title bar. (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1. * macterm.h (mac_update_title_bar): Add extern. (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'. (FRAME_FILE_NAME): New macro. * unexmacosx.c (unexec): Error if trying unexec from dumped executable. 2006-04-30 Richard Stallman * keymap.c (Fdefine_key): Improve error message when KEY begins with a non-prefix key. 2006-04-30 Martin Rudalics * syntax.c (Fforward_comment): Don't forget to break out of the loop when we skipped backward over a generic comment. 2006-04-27 Nick Roberts * .gdbinit (pp1, pv1): Only print value as expression is now printed out by gud-print. (pv1): Correct doc string. 2006-04-26 Stefan Monnier * keymap.c (store_in_keymap): Change `def' arg to not be `register'. Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8): keymap.c:895: error: address of register variable `def' requested. 2006-04-26 Jason Rumney * w32term.c (construct_mouse_wheel): Handle negative coordinates. * w32fns.c (w32_wnd_proc) : : Call signal_user_input in the cases where we preempt mouse_button_timer. 2006-04-25 Miles Bader * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23. 2006-04-24 Stefan Monnier * process.h: Include headers for pid_t. 2006-04-24 Kim F. Storm * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief. (produce_stretch_glyph): Assume that face box height and width is already included in stretch glyph size so caller doesn't have to consider the extra space otherwise added (fixes problem in ses.el). * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame matrices to force recalculation of tool-bar height after font change. * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity. Clear it when done, so we don't accidentally draw a second copy of the tool-bar after resetting f->n_tool_bar_rows. (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever we recalculate f->n_tool_bar_rows. 2006-04-23 Lars Hansen * editfns.c (find_field): Fix comment. (Ffield_beginning): Fix bug when POS is at field beginning. 2006-04-22 Eli Zaretskii * puresize.h (BASE_PURESIZE): Increase to 1205000. 2006-04-21 Kim F. Storm * xdisp.c (redisplay_window): Fix last change. Don't recenter if window start is at BEGV. * dispextern.h (struct image): New member `corners'. (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros. * image.c (four_corners_best): New arg CORNERS specifies what pixels to look at in case image has margin. (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best. (image_background, image_background_transparent) (x_build_heuristic_mask): Pass img->corners to four_corners_best. (gif_load): Set img->corners according to image's margin spec. Use img->corners values directly where applicable. Save image extension data in img->data.lisp_val. (gif_clear_image): New function to free img->data.lisp_val. (gif_type): Use it instead of generic x_clear_image. (Fimage_extension_data): New defun. (syms_of_image): Defsubr it. 2006-04-21 John Sullivan (tiny change) * window.c (Fdisplay_buffer): Doc fix. 2006-04-21 Eli Zaretskii * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000. 2006-04-21 YAMAMOTO Mitsuharu * image.c [MAC_OS] (xpm_load_image): Fill in background field while we have ximg handy. * macmenu.c (restore_menu_items, save_menu_items): New functions from xmenu.c. (set_frame_menubar, digest_single_submenu): Apply 2006-04-18 changes for xmenu.c. * macterm.c (x_per_char_metric): Return NULL if glyph width is 0. (add_mac_font_name): New function. (init_font_name_table): Use it. Adopt the first found font from those having the same family name. 2006-04-21 Nick Roberts * xdisp.c (note_mouse_highlight): Use build_string. 2006-04-20 Lars Hansen * textprop.c (Fremove_list_of_text_properties): Ensure modify_region is called only when buffer is modified and that signal_after_change is allways called in that case. * print.c (PRINTFINISH): Call signal_after_change. 2006-04-20 Kim F. Storm * xdisp.c (redisplay_window): Fix last change. * xdisp.c (redisplay_window): If current window start is not at the beginning of a line, select a new window start if buffer is modified and window start is in the modified region, but the first change is before window start. 2006-04-18 Richard Stallman * xmenu.c (restore_menu_items, save_menu_items): New fns. (set_frame_menubar): Use save_menu_items. Save updated vector in the frame before unwinding it. Don't use unuse_menu_items. Don't use discard_menu_items. (digest_single_submenu): Abort if an item is not in a pane. (init_menu_items): Put the error check at the top. * keymap.c (describe_map): Make "shadowed" warning more verbose. * window.c (adjust_window_trailing_edge): Correctly distinguish series vs parallel cases, even when window has no parent. * abbrev.c (record_symbol): New function. (Finsert_abbrev_table_description): Sort the abbrevs alphabetically. 2006-04-18 YAMAMOTO Mitsuharu * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return value of xmalloc. * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc) (create_apple_event_from_event_ref, xrm_get_preference_database) (cfstring_create_normalized): Don't check return value of xmalloc. * macselect.c (get_scrap_target_type_list, defer_apple_events) (copy_scrap_flavor_data, mac_handle_service_event): Don't check return value of xmalloc/xrealloc. * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create) (init_font_name_table, init_font_name_table, mac_do_list_fonts) (XLoadQueryFont, mac_store_apple_event): Don't check return value of xmalloc. 2006-04-17 Kim F. Storm * window.c (coordinates_in_window): On the vertical border, calculate the row number measured from the top of the window, not the top of the frame. (window_loop): Test w->dedicated with !NILP instead of EQ Qt. (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change. 2006-04-16 Eli Zaretskii * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000. 2006-04-16 Romain Francoise * puresize.h (BASE_PURESIZE): Decrement back to 1200000. 2006-04-16 Andreas Schwab * puresize.h (PURESIZE_RATIO): Reduce to 10/6. 2006-04-15 Romain Francoise * puresize.h (BASE_PURESIZE): Increment to 1210000. 2006-04-13 Michaël Cadilhac * print.c (Fprin1_to_string): Mention in the `doc' that the behavior is modified by `print-level' and `print-length'. 2006-04-13 Kenichi Handa * coding.c (setup_coding_system): If eol-type is not yet decided and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK. If coding_system is nil, return 0. (code_convert_region1): Even if coding_system is nil, don't skip conversion if system_eol_type is not LF. (code_convert_string1): Likewise. (code_convert_string_norecord): Likewise. 2006-04-13 Kenichi Handa * coding.c (setup_coding_system): Fix previous change. (encode_coding): If eol_type is not yet decided, use system_eol_type. (shrink_encoding_region): If eol_type is not yet decided and system_eol_type is not LF, don't shrink. 2006-04-13 Nick Roberts * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical line. 2006-04-12 Richard Stallman * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1]. * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return. (Fprocess_send_eof): Abort if fail to open null device. 2006-04-12 YAMAMOTO Mitsuharu * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h. * image.c [MAC_OS] (xpm_load_image): Add parentheses around assignment used as truth value. Add explicit braces to avoid ambiguous `else'. [MAC_OS] (gif_load): Remove unused variable `gcpro1'. * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and EXFUN in #ifdef HAVE_WINDOW_SYSTEM. (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm): Put externs in #ifdef HAVE_X_WINDOWS. (syms_of_macfns, syms_of_macselect, syms_of_macterm) (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs. (init_mac_osx_environment) [MAC_OSX]: Add extern. * mac.c (init_process): Remove undef. (select) [MAC_OSX]: Undefine before including sysselect.h. (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]: Remove functions and prototypes. (parse_value): Add parentheses around + inside shift. (path_from_vol_dir_name): Make static. (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'. [!MAC_OSX] (get_path_to_system_folder): Likewise. (Fmac_get_file_creator, Fmac_get_file_type): Remove unused variable `cCode'. (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'. (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'. * macfns.c (x_to_mac_color): Remove unused variable `tail'. (x_set_mouse_color): Remove unused variable `dpy'. (Fx_create_frame): Remove unused variable `x_frame_count'. (Fx_server_version): Add explicit braces to avoid ambiguous `else'. (x_sync): Move from macterm.c. (Fx_file_dialog): Remove unused variable `default_filter_index'. * macmenu.c (min_menu_id): Make element type explicit. * macselect.c (get_flavor_type_from_symbol): Remove unused variable `val'. (get_scrap_private_timestamp, x_get_foreign_selection) (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'. (Fmac_process_deferred_apple_events): Remove unused variables `keyword', `reply', `apple_event', `count', and `err'. * macterm.c: Don't include gnu.h. (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes. (x_sync): Move to macfns.c. [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused variable `mask_bits'. (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'. (x_draw_image_glyph_string): Remove unused variable `pixmap'. (x_mac_to_emacs_modifiers): Remove function. (XTset_vertical_scroll_bar, mac_handle_visibility_change) (x_make_frame_visible, xlfdpat_create, mac_handle_command_event): Add explicit braces to avoid ambiguous `else'. (x_make_frame_visible): Remove unused variables `type', `original_top', and `original_left'. (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||. (x_load_font): Remove unused variables `full_name', and `value'. (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]: Remove functions. (do_zoom_window): Reorganize variables with respect to conditionals. (init_command_handler): Remove unused variable `err'. [MAC_OSX] (mac_check_bundle): Remove unused variable `child'. * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position) (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources) (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC) (do_menu_choice, have_menus_p, x_real_positions) (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width) (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar) (free_frame_menubar): Add externs. * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H. (malloc, realloc, free): Add undefs. (read_load_commands): Remove unused variable `n' and `j'. (copy_data_segment): Remove unused variable `r'. * xdisp.c (get_glyph_string_clip_rects): Add parentheses around && within ||. Add explicit braces to avoid ambiguous `else'. (dump_glyph_row): Remove label for `inverse_p' from legend. * xfaces.c (Finternal_merge_in_global_face, try_font_list): Add explicit braces to avoid ambiguous `else'. 2006-04-11 Michaël Cadilhac * dispnew.c (init_display): Don't init X display if the user asked for a non-X display. 2006-04-12 Kenichi Handa * coding.c (setup_coding_system): Use system_eol_type for default coding->eol_type. 2006-04-11 Dan Nicolaescu * lisp.h (wrong_type_argument): Mark as NO_RETURN. * data.c (wrong_type_argument): Try to avoid compiler warnings due to the fact the function is now marked as NO_RETURN. 2006-04-10 Eli Zaretskii * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef. 2006-04-10 Romain Francoise * xrdb.c (gethomedir): Use xstrdup. 2006-04-10 Andreas Schwab * xrdb.c (gethomedir): Make sure to always return a pointer that can be passed to free. 2006-04-09 Richard Stallman * lisp.h (Fkill_emacs): Undo previous change. 2006-04-08 Richard Stallman * search.c (boyer_moore): Test ch >= 0400, not >. 2006-04-09 Dan Nicolaescu * puresize.h (pure_write_error): Mark as NO_RETURN. * lisp.h (args_out_of_range, args_out_of_range_3, Fkill_emacs): Likewise. 2006-04-08 Eli Zaretskii * w32fns.c (w32_wnd_proc) : Ignore mouse movements if a menu is active on this frame. 2006-04-08 Dan Nicolaescu * lisp.h (report_file_error): Mark as NO_RETURN. 2006-04-08 Eli Zaretskii * alloc.c [STDC_HEADERS]: Include stddef.h. * lisp.h (PSEUDOVECSIZE): Fix last change. 2006-04-08 Stefan Monnier * process.h (struct Lisp_Process): Replace Lisp_Objects `pid', `raw_status_high', and `raw_status_low' with plain integers, and move them to the end of the structure. * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the pseudovector's size field so only the Lisp_Object fields get GC'd. * process.c (update_status, make_process, Fdelete_process) (Fprocess_status, list_processes_1, start_process_unwind) (create_process, Fmake_network_process, server_accept_connection) (wait_reading_process_output, send_process, Fprocess_running_child_p) (process_send_signal, proc_encode_coding_system, Fprocess_send_eof) (sigchld_handler, status_notify): Adjust to new non-Lisp fields for `pid' and `raw_status'. (Fprocess_id, Fsignal_process): Same, and additionally use floats when representing PIDs that are larger than most-positive-fixnum. * keymap.c (describe_map): Only use XINT if we checked INTEGERP. * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros. 2006-04-08 Eli Zaretskii * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos. 2006-04-03 Paul Eggert * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to ../lib-src/b2m.c and ../lib-src/editfns.c. (Fcurrent_time_string): Use it. Document that the year might not consume 4 columns if it's outside the range 1000-9999. Check for asctime failure. Don't assume that the output string length is always exactly 24. 2006-04-03 YAMAMOTO Mitsuharu * macterm.c (XTread_socket): Initialize variable `f' before its use. 2006-04-03 Kenichi Handa * image.c: Include "charset.h" and "coding.h". (x_find_image_file): Return an encoded file name. 2006-04-01 Eli Zaretskii * configure: Regenerated. 2006-03-31 Kenichi Handa * xfns.c (xg_set_icon): Delete superfluous UNGCPRO. 2006-03-30 Dan Nicolaescu * xdisp.c (syms_of_xdisp): Fix variable name. 2006-03-30 Kenichi Handa * xterm.c (x_term_init): Delete superfluous UNGCPRO. 2006-03-29 Juanma Barranquero * keyboard.c (process_tool_bar_item): Reorder dummy args. 2006-03-29 Stefan Monnier * keyboard.c (tool_bar_items): Use map_keymap. (process_tool_bar_item): Add dummy args to fit the required interface. 2006-03-25 Eli Zaretskii * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero before calling debug_print or safe_debug_print. * print.c (print_output_debug_flag): New global variable. (Fexternal_debugging_output) [WINDOWSNT]: Don't call OutputDebugString if print_output_debug_flag is zero. 2006-03-24 Paul Eggert * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it. (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900. (Fdecode_time): Cast tm_year to EMACS_INT. (Fcurrent_time_string): Report an invalid time specification if the argument is invalid. Also, check for out-of-range time stamps. 2006-03-24 Kim F. Storm * xterm.c (handle_one_xevent): * w32term.c (w32_read_socket): * macterm.c (XTread_socket): Don't let key-press clear mouse face on in toolbar window if mouse-highlight is an integer. * fns.c (sxhash_list): Include last non-nil CDR in hash. 2006-03-24 YAMAMOTO Mitsuharu * macmenu.c (enum mac_menu_kind): New enum. (min_menu_id): New variable. (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID) (MIN_SUBMENU_ID): Remove defines. All uses are replaced with min_menu_id and enumerators in enum mac_menu_kind. (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND. All uses changed. Add range check for menu ID. (fill_menubar): Add range check for menu ID. [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of GetEventParameter. (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler for each menu kind. 2006-03-22 Kim F. Storm * xdisp.c: Undo 2006-03-21 change. * term.c: Define aliases for append_glyph and produce_stretch_glyph when `static' is defined to avoid name clash with those in xdisp.c. * process.c (Faccept_process_output): Fix to comply with lisp reference. Change arg "timeout" to "seconds" and allow both integer and float value. Change arg "timeout-msec" to "millisec" and interpret" as milliseconds rather than microseconds. Fix doc string accordingly. 2006-03-21 Ken Raeburn * xdisp.c (store_next_glyph): Rename from append_glyph. (generate_stretch_glyph): Rename from produce_stretch_glyph. All callers changed accordingly. 2006-03-21 Jan Djärv * xterm.c: x_session_initialized new variable. (x_term_init): Use x_session_initialized to check if x_session_initialize should be called. (x_initialize): Initialize x_session_initialized. 2006-03-21 Kim F. Storm * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow bitmap here, but ... (update_window_fringes): ... here, so we can test if it has changed. 2006-03-20 Andreas Schwab * dispnew.c (init_display): Check DISPLAY here. * emacs.c (main): Don't check here. * xterm.c (x_display_ok): Don't use DISPLAY env var. 2006-03-20 Stefan Monnier * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object mixup (YAILOM). 2006-03-20 Eli Zaretskii * emacs.c (main): Fix last change. 2006-03-20 Kenichi Handa * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it. * keymap.c (map_keymap): Set tail to Qnil before GCPRO it. * xfns.c (xg_set_icon): Remove unnecessary GCPRO. * xterm.c (x_term_init): Remove unnecessary GCPRO. 2006-03-19 Kim F. Storm * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string, so it doesn't associate overlay string with following glyph by default. Allow integer property value to specify explicit number of buffer positions associate with overlay string. 2006-03-18 Chong Yidong * xterm.c (x_display_ok): Fix minor bug and compilation warnings. 2006-03-18 Nozomu Ando * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define. (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define. (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]: Don't redefine. * m/mips.h: Don't use unexmips on NetBSD. (LIBS_MACHINE): Move definition lower, so it doesn't use LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP, C_SWITCH_MACHINE, and C_DEBUG_SWITCH. * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h. (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc option is broken (e.g., MIPS/NetBSD). 2006-03-18 Craig McDaniel (tiny change) * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB. Remove the HAVE_X_WINDOWS conditional. 2006-03-18 Vivek Dasmohapatra (tiny change) * emacs.c (main): If user asks for a display that is unavailable, simulate -nw. * xterm.c (x_display_ok): New function. * xterm.h: Add prototype for x_display_ok. 2006-03-18 Eli Zaretskii * w32fns.c (Fw32_select_font): Doc fix. 2006-03-16 YAMAMOTO Mitsuharu * image.c [MAC_OS] (XPutPixel, XGetPixel) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized version when depth is 32. (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]: New function. (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it. (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage. * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Create GWorld in ARGB pixel format. (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]: Remove functions. (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image instead of mac_copy_area/mac_copy_area_with_mask. 2006-03-15 Kim F. Storm * xdisp.c (extend_face_to_end_of_line): Always add space glyph to empty row. Fixes memory corruption revealed by 2006-03-02 change. (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0. (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar width is exactly the same as the window width. Don't count a final empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line). 2006-03-15 Juanma Barranquero * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being conditional on HAVE_NTGUI, not WINDOWS_NT. 2006-03-15 YAMAMOTO Mitsuharu * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype. * fringe.c (mac_init_fringe) [MAC_OS]: New function. * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe. (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables. (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap) (mac_draw_cg_image) [USE_CG_DRAWING]: New functions. (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function. (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image instead of mac_draw_bitmap. (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for define_fringe_bitmap and destroy_fringe_bitmap. 2006-03-14 Chong Yidong * xterm.c (x_uncatch_errors): Block input for entire function. 2006-03-12 Jason Rumney * w32fns.c (Fx_create_frame): Remove call to Qface_set_after_frame_default (from xfns.c 2003-05-26). * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when finished with the menu. * w32term.c: Sync 2005-10-24 xterm.c changes. (last_mouse_glyph_frame): New var. (note_mouse_movement): Say mouse moved if current frame differs from last_mouse_glyph_frame, and update last_mouse_glyph_frame. (w32_mouse_position): Set last_mouse_glyph_frame. Remove OLD_REDISPLAY_CODE block. 2006-03-12 YAMAMOTO Mitsuharu * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1. * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context. (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype. * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c. * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground) (x_draw_composite_glyph_string_foreground) (x_draw_image_foreground): Undo previous changes. (x_draw_hollow_cursor): Likewise. Subtract 1 from the last argument of mac_draw_rectangle. (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros. (mac_draw_string_common, mac_draw_image_string_cg): Use them. (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro. (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw) [USE_CG_DRAWING]: New functions. (mac_draw_line, mac_erase_rectangle, mac_clear_window) (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common) (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part. (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common) (mac_copy_area, mac_scroll_area, x_scroll_bar_create) (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size) (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. 2006-03-12 Lőrentey Károly * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'. 2006-03-11 Jason Rumney * w32fns.c (signal_user_input): New function. (post_character_message): Use it for keyboard input. (w32_msg_pump): Use it for mouse input. 2006-03-11 Luc Teirlinck * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y. (window_scroll_pixel_based, syms_of_window): Adapt to above change. 2006-03-11 Eli Zaretskii * w32fns.c (w32_wnd_proc): Ignore middle and extra button events if a menu is already active (the menubar_active flag is on). 2006-03-11 David Ponce * xfns.c (x_create_tip_frame): Preserve received parms by copying them. 2006-03-11 Eli Zaretskii * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to the list of unused display error handling functions. * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if HAVE_X_WINDOWS. (internal_condition_case, internal_condition_case_1) (internal_condition_case_2): Call x_catching_errors only if HAVE_X_WINDOWS. * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally. Don't include sys/resource.h unless defined. 2006-03-11 Richard Stallman * keymap.c (describe_map): Shorten string to indicate shadowed binding. * vm-limit.c (get_lim_data, lim_data, data_space_start): Move from mem-limits.h. (enum warnlevel): New data type. (check_memory_limits): Rewrite the logic about warnings. Use standard `struct rlimit'. Check return values for nonsense. (memory_warnings): Always clear lim_data. * mem-limits.h (get_lim_data, lim_data, data_space_start): Move to vm-limit.c. * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions. * eval.c (unwind_to_catch): Call x_fully_uncatch_errors. (internal_condition_case_1, internal_condition_case_2): Abort if within unclosed x_catch_errors. 2006-03-11 Romain Francoise * process.c (Vprocess_adaptive_read_buffering): Doc fix. 2006-03-11 Giorgos Keramidas (tiny change) * lisp.h: Remove duplicate prototypes. Make the prototype of getloadavg be conditioned on HAVE_GETLOADAVG being undefined. 2006-03-11 Eli Zaretskii * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last argument of XDrawRectangle. * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1. * macterm.c (mac_draw_rectangle): Don't add 1 to width and height. (x_draw_glyph_string_foreground) (x_draw_composite_glyph_string_foreground) (x_draw_image_foreground): Don't subtract 1 from width and height arguments to mac_draw_rectangle. (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width. 2006-03-10 Kim F. Storm * alloc.c (USE_POSIX_MEMALIGN): Fix last change. 2006-03-09 Stefan Monnier * alloc.c (USE_POSIX_MEMALIGN): New macro. (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it. 2006-03-09 Kenichi Handa * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding ASCII component of a composition. 2006-03-08 Luc Teirlinck * window.c: Declare preserve_y as a static global variable. (window_scroll_pixel_based): No longer declare preserve_y; it is global now. (syms_of_window): Set preserve_y to -1. 2006-03-08 YAMAMOTO Mitsuharu * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap depth is 32. [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap depth is 32. 2006-03-06 Chong Yidong * xdisp.c (handle_invisible_prop): Don't update it->position with a buffer position if we're in a display string. 2006-03-06 YAMAMOTO Mitsuharu * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines. * macfns.c (x_default_scroll_bar_color_parameter) (x_set_scroll_bar_foreground, x_set_scroll_bar_background): Remove unnecessary prototypes. (x_set_scroll_bar_default_width): Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH. (mac_set_scroll_bar_width): New function. (mac_frame_parm_handlers): Set it as handler for scroll-bar-width. * macterm.c (get_control_part_bounds): Fix type of return value. (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create) (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show scroll bar if it is not tall enough to display scroll bar thumb. [USE_CARBON_EVENTS] (mac_convert_event_ref) (mac_handle_command_event, mac_handle_window_event) (mac_handle_mouse_event): Check error code of GetEventParameter. (convert_fn_keycode) [MAC_OSX]: Likewise. 2006-03-05 Andreas Schwab * xselect.c (x_catch_errors_unwind): Fix missing return value. 2006-03-02 Kim F. Storm * frame.h (struct frame): New member n_tool_bar_rows. * xdisp.c: Minimize the unpleasant visual impact of the requirement that non-toolkit tool-bars must occupy an integral number of screen lines, by distributing the rows evenly over the tool-bar screen area. (Vtool_bar_border): New variable. (syms_of_xdisp): DEFVAR_LISP it. (display_tool_bar_line): Add HEIGHT arg for desired row height. Make tool-bar row the desired height. Use default face for border below tool-bar. (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of actual tool-bar rows. (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially. Adjust the height of the tool-bar rows to fill tool-bar screen area. (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area is resized. 2006-03-01 Luc Teirlinck * search.c (Fregexp_quote): Do not precede a literal `]' with two backslashes to try to make clear that it has a literal meaning; it does not do that. (It could close a character alternative containing a backslash.) 2006-02-28 Chong Yidong * xselect.c (x_catch_errors_unwind): New function. (x_reply_selection_request): Put x_uncatch_errors in an unwind. (Fx_get_atom_name): Call x_uncatch_errors earlier. * window.c (Qscroll_up, Qscroll_down): New syms. (window_scroll_pixel_based): Make preserve_y static to avoid getting point stuck when scrolling 1 line. 2006-02-26 Chong Yidong * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument. * xterm.c (x_load_font, x_term_init, XTmouse_position) (handle_one_xevent, x_connection_closed, x_list_fonts): No arg for x_uncatch_errors. * xselect.c (x_own_selection, x_decline_selection_request) (x_reply_selection_request, x_get_foreign_selection) (Fx_get_atom_name, Fx_send_client_event): Likewise. * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame): Likewise. 2006-02-26 Luc Teirlinck * lread.c: Declare Vload_file_rep_suffixes instead of deleted variable default_suffixes. (Fget_load_suffixes): New function. (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes. No longer use deleted variable default_suffixes. Update docstring. (syms_of_lread): defsubr Sget_load_suffixes. Expand `load-suffixes' docstring. Delete default_suffixes and DEFVAR_LISP the new variable `load-file-rep-suffixes'. * w32.c (check_windows_init_file): Use Fget_load_suffixes instead of Vload_suffixes. * lisp.h: EXFUN Fget_load_suffixes. Extern Vload_file_rep_suffixes. * eval.c (specpdl_ptr): Remove volatile qualifier for consistency with lisp.h. 2006-02-26 Stefan Monnier * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile qualifier which was trying to avoid the bug that was fixed by yesterday's changes to xterm.c. 2006-02-25 Chong Yidong * xterm.h (x_catch_errors) Return value changed to void. (x_uncatch_errors): Delete unused count argument. * xterm.c (x_catch_errors): Don't use record_unwind_protect, since it can be called in a signal handler. (x_catch_errors_unwind): Function deleted. (x_uncatch_errors): Deallocate last x_error_message_stack struct. (x_check_errors): Call x_uncatch_errors before signalling error. (x_load_font, x_term_init, XTmouse_position, handle_one_xevent) (x_connection_closed, x_list_fonts): Use new versions of x_catch_errors and x_uncatch_errors. * xselect.c (x_own_selection, x_decline_selection_request) (x_reply_selection_request, x_get_foreign_selection) (Fx_get_atom_name, Fx_send_client_event): Likewise. * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame): Likewise. * eval.c (record_unwind_protect): Add an assertion. 2006-02-25 Stefan Monnier * process.c (Fmake_network_process): Init the process's mark. 2006-02-25 Kim F. Storm * buffer.c (modify_overlay): Force redisplay if we modify an overlay at the end of the buffer. 2006-02-24 Jan Djärv * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns nil the image file has been removed, in that case use the (cached) pixmap. 2006-02-24 Kenichi Handa * fileio.c (Finsert_file_contents): When a text is replaced partially, be sure to set point before the inserted characters. 2006-02-23 Zhang Wei (tiny change) * xfns.c (Fx_file_dialog): Return a decoded file name. 2006-02-23 YAMAMOTO Mitsuharu * dispnew.c (update_text_area): Avoid needless redraw of rightmost glyph whose face is extended to the text area end. * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control values if control is not visible or values are not changed. 2006-02-22 Stefan Monnier * window.c (Fwindow_list): Check `window' before doing XWINDOW. The default `window' should not be "on a different frame". 2006-02-22 Kim F. Storm * indent.c (Fvertical_motion): Only try to move back if we can. 2006-02-22 YAMAMOTO Mitsuharu * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member n_clip_rects. * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for xmenu.c. * macterm.c (GC_CLIP_REGION): Remove macro. (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION. All uses changed. Don't do clipping if n_clip_rects is zero. (mac_set_clip_rectangles): Use xassert instead of abort. Set n_clip_rects. Don't make clip_region empty when number of clipping rectangles is zero. (mac_reset_clip_rectangles): Set n_clip_rects directly instead of calling mac_set_clip_rectangles. (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to avoid multiple redraws. 2006-02-22 Kim F. Storm * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display. 2006-02-21 Kim F. Storm * fringe.c (syms_of_fringe) : Doc fix. 2006-02-21 Zhang Wei * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before returning it. 2006-02-21 Giorgos Keramidas (tiny change) * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'. (standard_bitmaps): Use it. 2006-02-21 YAMAMOTO Mitsuharu * macterm.c (mac_draw_string_common): Remove arg MODE. New arg BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero. (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH. [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from mac_draw_string_cg. New arg BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero. Use float constants as divisors instead of double. Use alloca instead of xmalloc/xfree. (x_draw_glyph_string_background, x_draw_glyph_string_foreground) [!MAC_OS8 || USE_ATSUI]: Background may be drawn using mac_draw_image_string* functions. (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of some fonts when srcCopy text transfer mode might be used. (mac_begin_clip, mac_end_clip): Check if region is empty. (mac_set_clip_rectangles): When resetting clip region, make it empty instead of disposing of it. 2006-02-20 Kim F. Storm * Makefile.in: Add fringe.elc to WINDOW_SUPPORT. * buffer.h (struct buffer): New members fringe_indicator_alist and fringe_cursor_alist. * buffer.c (init_buffer_once): Set dummy default values for fringe-indicator-alist and fringe-cursor-alist. The proper default values are set by pre-loading fringe.el. (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and fringe-cursor-alist buffer-local variables and defvar_lisp_nopro corresponding default- variables. * fringe.c (enum fringe_bitmap_type): Remove. Change all uses to use `int'. (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS): Define explicitly. (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom) (Qhollow_small): New variables. (syms_of_fringe): Intern and staticpro them. (question_mark_bits): Rename from unknown_bits. (left_curly_arrow_bits): Rename from continuation_bits. (right_curly_arrow_bits): Rename from continued_bits. (left_triangle_bits): Rename from ov_bits. (right_triangle_bits): Add. (filled_rectangle_bits): Rename from filled_box_cursor_bits. (hollow_rectangle_bits): Rename from hollow_box_cursor_bits. (filled_square_bits): Add. (vertical_bar_bits): Rename from bar_cursor_bits. (horizontal_bar_bits): Rename from hbar_cursor_bits. (empty_line_bits): Rename from zv_bits. (standard_bitmaps): Update to use new names. (draw_fringe_bitmap_1): Make static. (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions to map from logical cursors and indicators to physical bitmaps. (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow bitmaps using symbol names instead of bitmap numbers. (update_window_fringes): Use logical indicator symbol names instead of bitmap numbers for logical. Add bitmap cache. (LEFT_FRINGE, RIGHT_FRINGE): New helper macros. 2006-02-20 Chong Yidong * regex.c: Revert 2006-02-19 change. (xmalloc, xrealloc): Define these when not linked to Emacs. Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case. 2006-02-19 Luc Teirlinck * regex.c (extend_range_table_work_area): Fix typo. 2006-02-19 Richard M. Stallman * xterm.c (x_catch_errors): Use xmalloc. * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc. (regex_compile): Likewise. (regcomp): Use xmalloc. * gtkutil.c (malloc_widget_value): Use xmalloc. * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h. (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit. * xmenu.c (digest_single_submenu): When pane_string is empty, do initialize save_wv. 2006-02-19 YAMAMOTO Mitsuharu * xdisp.c (update_menu_bar) [MAC_OS]: Don't set w->update_mode_line if arg F is not the selected frame. * macmenu.c (popup_activated_flag, submenu_id) (next_menubar_widget_id): Remove variables. (initialize_frame_menubar): Remove function. (pop_down_menu, mac_menu_show): Simplify save value. (dispose_menus): New function. (pop_down_menu, fill_menubar): Use it. (fill_submenu): Remove function. All uses changed to fill_menu. (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg POS. Don't call SetMenuItemHierarchicalID here. (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be used next. Call SetMenuItemHierarchicalID here. (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu objects if needed. Reuse existing menu bar titles if possible. (set_frame_menubar): Don't clean up menu objects here. 2006-02-18 Chong Yidong * window.c (window_min_size_1): Ensure room for the scroll bar and fringes. 2006-02-17 Romain Francoise * puresize.h (BASE_PURESIZE): Increment to 1200000. 2006-02-17 Stefan Monnier * alloc.c (Fmake_symbol): Comment-out left-over assert from before the addition of the BLOCK_INPUTs. 2006-02-17 Juanma Barranquero * window.c (Fset_window_scroll_bars): Doc fix. 2006-02-17 Kenichi Handa * xdisp.c (display_mode_element): Call display_string with correct PREC arg (which must be a number of characters, not column width). 2006-02-15 YAMAMOTO Mitsuharu * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac. * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac. * macmenu.c (set_frame_menubar): Don't call DrawMenuBar. 2006-02-14 Richard M. Stallman * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST. * m/ibms390x.h: New file. 2006-02-14 Jan Djärv * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the value of x-gtk-whole-detached-tool-bar. (xg_tool_bar_attach_callback): Set show-arrow to TRUE. * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar. 2006-02-14 Jan Djärv * xterm.c (x_x_to_emacs_modifiers): Make non-static. * xterm.h: Declare x_x_to_emacs_modifiers. * gtkutil.c (xg_tool_bar_button_cb): New function. (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to store modifiers in event. (update_frame_tool_bar): Connect button-release-event to xg_tool_bar_button_cb. 2006-02-13 Richard M. Stallman * .gdbinit (xwindow): Update the code to show the window box. 2006-02-13 Jan Djärv * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame). 2006-02-12 Richard M. Stallman * cmds.c (internal_self_insert): Handle weird auto-fill-function. 2006-02-11 Eli Zaretskii * keyboard.c (Venable_disabled_menus_and_buttons): New variable. (syms_of_keyboard): DEVFAR_LISP and initialize it. (parse_tool_bar_item, parse_menu_item): If that variable is non-nil, don't disable menu items and tool-bar buttons. 2006-02-11 Juanma Barranquero * doc.c (Fsubstitute_command_keys): Doc fix. 2006-02-10 Thien-Thi Nguyen * data.c (Findirect_function): Rewrite docstring. Fix omission bug: Declare new arg NOERROR. 2006-02-10 YAMAMOTO Mitsuharu * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor if window_desc is not set yet. (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame parameter `visibility' is `icon'. (Fx_create_frame, x_create_tip_frame): Use "fontset-standard" instead of "fontset-mac". (Fx_focus_frame): New defun. (syms_of_macfns): Defsubr it. * macterm.c (mac_define_frame_cursor): Don't change pointer shape for unfocused frame. (x_raise_frame): Call BringToFront instead of SelectWindow. (x_lower_frame): Use NULL instead of nil. (x_make_frame_visible): Don't call SelectWindow. (XTread_socket): Increment handling_signal at the start, decrement it at the end. [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use CFPreferencesGetAppIntegerValue instead of Fmac_get_preference. 2006-02-10 Kim F. Storm * data.c (Findirect_function): Add NOERROR arg. All callers changed to pass Qnil for NOERROR. * keymap.c (current_minor_maps_error): Remove. (current_minor_maps): Pass Qt for NOERROR to Findirect_function instead of using internal_condition_case_1+current_minor_maps_error. 2006-02-09 Jan Djärv * xterm.c (handle_one_xevent): Must note mouse movement even for nil frames for GTK, in that case it is the tool bar. This is so that highlighted text get reset properly. 2006-02-09 Juanma Barranquero * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes. 2006-02-08 Jan Djärv * window.c (adjust_window_trailing_edge): Check that shrinking does not set a window to size zero or less. 2006-02-08 Miles Bader * editfns.c (Fconstrain_to_field): Use Fget_char_property instead of Fget_text_property (other field functions work with overlays as well as text-properties). 2006-02-07 Kenichi Handa * dispextern.h (unibyte_display_via_language_environment): Extern it. * xterm.h (unibyte_display_via_language_environment): * w32term.h (unibyte_display_via_language_environment): * macterm.h (unibyte_display_via_language_environment): Delete extern. 2006-02-07 Kenichi Handa * term.c (append_glyph): Refer to it->char_to_display instead of it->c. (produce_glyphs): Set the character to print in it->char_to_display. Handle unibyte-display-via-language-environment. (produce_stretch_glyph): Set character to print in it->char_to_display. 2006-02-06 Kenichi Handa * lread.c (openp): Initialize encoded_fn before GCPRO it. 2006-02-05 Ken Raeburn * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup. * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]: Cast bitfield value to EMACS_INT, to suppress gcc warning. * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before defining. 2006-02-03 Kim F. Storm * xdisp.c: Cache last merged escape glyph face. (last_escape_glyph_frame, last_escape_glyph_face_id) (last_escape_glyph_merged_face_id): New variables. (get_next_display_element): Use/update them. (redisplay_internal): Reset them before redisplay. * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix. Only recheck faces after displaying ellipsis. 2006-02-02 Kenichi Handa * coding.c (decode_composition_emacs_mule): Fix handling of incorrect format data. 2006-01-31 Jan Djärv * gtkutil.c (update_frame_tool_bar): Use new tool bar function gtk_toolbar_insert() so we can have tool bars of different sizes. 2006-01-30 Luc Teirlinck * data.c (Flistp): Doc fix. 2006-01-30 Juanma Barranquero * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll): Fix typos in docstrings. 2006-01-28 Luc Teirlinck * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings. 2006-01-27 Chong Yidong * alloc.c (make_interval, allocate_string) (allocate_string_data, make_float, Fcons, allocate_vectorlike) (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing global variables. 2006-01-27 Eli Zaretskii * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use the MSDOS definition. 2006-01-26 Richard M. Stallman * alloc.c (check_pure_size): Make overflow message an "error message". * keymap.c (Fmap_keymap): Doc fix. * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist unless they were cleared out. * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there. 2006-01-26 Lőrentey Károly * editfns.c (Fconstrain_to_field): Fix behavior on field boundaries. (find_field): Set before_field to after_field when pos is at BEGV. (Fline_beginning_position, Fline_end_position): Clarify confusing doc string. * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc string. 2006-01-26 Kenichi Handa * callproc.c (Fcall_process): GCPRO error_file. Encode infile, current_dir, and error_file. On reporting an error, decode them back. 2006-01-24 Stefan Monnier * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well. (re_match_2_internal) : Don't check for quit, since any loop will go through fail or jump. 2006-01-24 Chong Yidong * alloc.c (allocate_string_data): Update next_free immediately, to reduce risk of memory clobberage. 2006-01-24 Lőrentey Károly * xdisp.c (handle_invisible_prop): Set it->position to fix cursor display when point moves across an ellipsis. If there are adjacent invisible texts, don't lose the second one's ellipsis. (x_produce_glyphs): Doc fix. 2006-01-23 Stefan Monnier * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup. 2006-01-23 Kim F. Storm * xdisp.c (handle_single_display_spec): Fix handling of space property on char from string: set *position rather than it->current.pos. (produce_stretch_glyph): Reduce width of stretch glyphs so they don't get wider than the window (unless truncate-lines is on). 2006-01-22 Stefan Monnier * xterm.c: Avoid allocating Lisp data from a signal handler. (x_error_message): New var to replace x_error_message_string. (x_error_catcher, x_catch_errors, x_catch_errors_unwind) (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler) (syms_of_xterm): Use it instead of x_error_message_string. * alloc.c (lisp_align_free): Add an assertion. (make_interval, allocate_string, make_float, Fcons, Fmake_symbol) (allocate_misc): If ENABLE_CHECKING is on, check we're not called from a signal handler. 2006-01-21 Luc Teirlinck * dired.c (syms_of_dired) : Doc fix. 2006-01-21 Romain Francoise * xdisp.c (get_window_cursor_type): Fix last change. Update copyright year. 2006-01-20 Eli Zaretskii * lread.c (Fload): Don't leak the file descriptor returned by openp if we are going to signal an error. * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it directly to _close. (sys_dup): Protect against new_fd larger than fd_info[] can handle. (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly to _read. (sys_write): If FD is outside [0..MAXDESC) limits, pass it directly to _write. * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL. 2006-01-20 Kenichi Handa * puresize.h (BASE_PURESIZE): Increment to 1190000. 2006-01-19 Chong Yidong * xdisp.c (get_window_cursor_type): Use cursor type specified by the selected buffer for the echo area too. 2006-01-19 Richard M. Stallman * keymap.c (Fmap_keymap): Doc fix. * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions. * keyboard.c (echo_char): Don't omit the space between first two echoed chars. * minibuf.c (read_minibuf): Fix previous change. 2006-01-19 Kenichi Handa * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. 2006-01-17 Richard M. Stallman * frame.c (x_frame_get_and_record_arg): Don't record Qunbound value in f->param_alist. 2006-01-15 Andreas Schwab * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP. 2006-01-13 Richard M. Stallman * Makefile.in: Define new macro WINDOW_SUPPORT. (lisp): Use it. (SOME_MACHINE_LISP): Add conditionally loaded files. 2006-01-12 YAMAMOTO Mitsuharu * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering. (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in decomposed form. * process.c [HAVE_INTTYPES_H]: Include inttypes.h. (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE). (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK macro. Also try member ifr_addr when getting netmask. 2006-01-10 Stefan Monnier * fileio.c (Fexpand_file_name): Remove redundant tests. Fix elimination of // so that it doesn't prevent elimination of an immediately following /. or /.. 2006-01-09 Jan Djärv * gtkutil.c (xg_toggle_notify_cb): New function. (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to xg_toggle_notify_cb. (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when parameter value changes so the toggle button gets updated. 2006-01-06 Nick Roberts * .gdbinit: Fix typo. 2006-01-05 Eli Zaretskii * .gdbinit: Fix last change. 2006-01-05 Kim F. Storm * process.c (Fmake_network_process): Use AF_INET instead of AF_UNSPEC when AF_INET6 is not defined. 2006-01-05 YAMAMOTO Mitsuharu * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc): Don't check that the other type is known file-related one. * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor, gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac OS X 10.4 and later. 2006-01-04 Jan Djärv * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file, let GTK do all image processing. Importing Emacs own pixmaps to GTK looks bad for inactive tool bar items with some Gnome themes. 2006-01-04 Eli Zaretskii * .gdbinit: Avoid a warning message when x_error_quitter is not compiled in. * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support for w32. 2006-01-04 Kim F. Storm * process.c: Add IPv6 support. (Qipv4, Qipv6): New vars. (syms_of_process): Intern and staticpro them. (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address with or without port number. Handle 4 element vector as IPv4 address without port number. (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size) (conv_lisp_to_sockaddr): Handle IPv6 addresses. (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly request that address family only. :family nil or omitted means to determine address family from the specified :host and :service. (ifflag_table): Add missing OpenBSD IFF_ flags. (server_accept_connection): Handle IPv6 addresses. (init_process): Add (:family ipv4) and (:family ipv6) sub-features. * .gdbinit: Undo last change. Instead, look at Vsystem_type to determine which breakpoints to set. 2006-01-03 Stefan Monnier * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup. * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c). 2006-01-03 Romain Francoise * emacs.c (main): Update copyright year. 2006-01-03 Ken Raeburn * callproc.c (delete_temp_file): Bind file-name-handler-alist to nil for the call to internal_delete_file. 2006-01-01 Ken Raeburn * callproc.c (Fcall_process_region): Bind file-name-handler-alist to nil for the call to Fwrite_region. 2005-12-31 Richard M. Stallman * minibuf.c (read_minibuf): Clear out all other minibuffer windows. 2005-12-31 Eli Zaretskii * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake. 2005-12-30 Luc Teirlinck * textprop.c (set_text_properties): Reword description of return value. Return Qnil if caller wants to remove all text properties from a string and the string already has no intervals. 2005-12-30 Stefan Monnier * term.c (visible_cursor): New boolean var. (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on visible_cursor. (syms_of_term): Export the new var as "visible-cursor". 2005-12-30 Eli Zaretskii * .gdbinit: Tell users not to worry about GDB warnings that some functions do not exist in the binary. 2005-12-30 Andreas Schwab * process.c (Fnetwork_interface_info): Correctly terminate the loop over ifflag_table. 2005-12-29 Richard M. Stallman * lread.c (readevalloop): Test for reading a whole buffer before actually reading anything. Handle all cases, including START = END = nil and an already-narrowed buffer. Convert END to a marker if it is a number. * keymap.c (describe_map): Put sparse map elements into an array, sort them, then output a sequence of identical bindings on one line. (struct describe_map_elt): New data type. (describe_map_compare): New function. 2005-12-28 Jan Djärv * gtkutil.c (xg_get_file_with_chooser): Change message shown in file chooser. 2005-12-27 Richard M. Stallman * lread.c (readevalloop): Set PT and ZV in the proper buffer, not the current one. * minibuf.c (Fminibuffer_message): Doc fix. (read_minibuf): Set current_buffer->enable_multibyte_characters sooner. * eval.c (do_autoload): Ignore elements of Vautoload_queue where car is not symbol. 2005-12-27 Kenichi Handa * charset.c (lisp_string_width): Check multibyteness of STRING. 2005-12-27 Jan Djärv * xfns.c (x_show_hidden_files): New variable. (syms_of_xfns): Defvar it. * gtkutil.c (xg_toggle_visibility_cb): New function. (xg_get_file_with_chooser): Add toggle hidden files and a message to the new file chooser dialog. Show hidden files if x_show_hidden_files is non-zero. 2005-12-26 Richard M. Stallman * keyboard.h: Undo previous change. * Makefile.in (undo.o): Undo previous change. * undo.c: Undo previous change. 2005-12-26 Luc Teirlinck * keyboard.h: extern last_point_position_window. * undo.c: include keyboard.h. * Makefile.in (undo.o): Depend on keyboard.h. 2005-12-26 Richard M. Stallman * commands.h (last_point_position_window): Declare. * undo.c: Depend on window.h. (record_point): Save old point from the correct window. * keyboard.c (last_point_position_window): New variable. (command_loop_1): Set last_point_position_window. (syms_of_keyboard): Init it. * Makefile.in (undo.o): Depend on window.h. 2005-12-25 Richard M. Stallman * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue to undo a `provide'. * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue. 2005-12-25 Giorgos Keramidas * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD): define for FreeBSD on this platform. 2005-12-24 YAMAMOTO Mitsuharu * macterm.h (TYPE_FILE_NAME): New define. (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs. * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Add prototypes. Make static. (mac_aedesc_to_lisp): Initialize err to noErr. (mac_coerce_file_name_ptr, mac_coerce_file_name_desc) (init_coercion_handler): New functions. (Fmac_coerce_ae_data): Use coercion of Apple event data for translation from/to file names. * macterm.c: Don't include sys/param.h. (init_coercion_handler): Add extern. [MAC_OS8] (main): Call init_coercion_handler. (mac_initialize) [MAC_OSX]: Likewise. [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of Apple event data for translation from/to file names. * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise. * image.c [MAC_OS] (find_image_fsspec): Likewise. 2005-12-23 Martin Rudalics * insdel.c (insert, insert_and_inherit, insert_before_markers) (insert_before_markers_and_inherit): Make sure FROM is correct when `after-change-functions' are called. 2005-12-23 Jan Djärv * xfns.c (Fx_uses_old_gtk_dialog): New function. * gtkutil.c (xg_uses_old_file_dialog): New function. (xg_get_file_name): Use xg_uses_old_file_dialog. * gtkutil.h: Declare xg_uses_old_file_dialog. 2005-12-22 Richard M. Stallman * xmenu.c (xmenu_show): Call inhibit_garbage_collection. 2005-12-22 YAMAMOTO Mitsuharu * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak. * macgui.h (XCharStruct): Remove member `valid_p'. (STORE_XCHARSTRUCT): Don't set member `valid_p'. (XCharStructRow): New typedef. (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID): New macros. (struct MacFontStruct): Add member `bounds'. Remove member `per_char'. All uses for QuickDraw Text fonts are changed to `bounds.per_char'. ATSUI font bounds are represented as an array `bounds.rows' of XCharStructRow's, each of which consists of a bitmap of valid entries and an array of char bounds. * macterm.c (mac_per_char_metric): Add prototype. (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype. (mac_query_char_extents): New function. (x_per_char_metric): Use it. (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations. [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Use mac_per_char_metric instead of x_per_char_metric. (mac_text_extents_16): New function. (mac_compute_glyph_string_overhangs): Use it. (mac_unload_font): Free member `bounds' in struct MacFontStruct. 2005-12-21 Stefan Monnier * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR. (Fminibuffer_completion_help): Remove duplicates before display. 2005-12-21 Lőrentey Károly * print.c (print_preprocess): Don't lose print_depth levels while iterating. 2005-12-21 YAMAMOTO Mitsuharu * macmenu.c (Qmac_apple_event): Add extern. (set_frame_menubar, mac_menu_show keymp_panes) (single_keymap_panes, list_of_panes, list_of_item) (single_menu_item): Add argument types to prototypes. (mac_dialog_show) [HAVE_DIALOGS]: Likewise. (struct skp): New struct (from xmenu.c). (single_keymap_panes, single_menu_item, list_of_panes) (list_of_item): Sync with xmenu.c. (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from POSITION if it is mac-apple-event event. (menubar_selection_callback): Don't use menu_command_in_progress. (set_frame_menubar): First parse all submenus, then make widget_value trees from them. Don't allocate any widget_value objects until we are done with the parsing. (parse_single_submenu, digest_single_submenu): New functions. (single_submenu): Function deleted, replaced by those two. (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create or dispose of EventHandlerUPP. Install handler to all submenus. (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING instead of ENCODE_SYSTEM. (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for integer values. [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c). (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to format menu item string. Don't use NULL for integer value. * macterm.h (struct mac_output): Remove unused member menu_command_in_progress. 2005-12-20 Juri Linkov * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if position is non-nil, else set it to nil. * macmenu.c (Fx_popup_menu): Add `else' to set Vmenu_updating_frame to nil only if position is nil. * w32menu.c (Fx_popup_menu): Add `else' to set Vmenu_updating_frame to nil only if position is nil. 2005-12-19 YAMAMOTO Mitsuharu * keyboard.c (make_lispy_event): Drag-and-drop items are now stored in member `args' of struct input_event. * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT. * xselect.c (x_handle_dnd_message): Drag-and-drop items are now stored in member `args' of struct input_event. * w32term.c (construct_drag_n_drop): Likewise. * macterm.c (mac_do_receive_drag): Likewise. (x_use_underline_position_properties): Undo 2005-07-13 change. (syms_of_macterm) : Likewise. (mac_use_core_graphics, mac_wheel_button_is_mouse_2) (mac_pass_command_to_system, mac_pass_control_to_system): New boolean variables renamed from Lisp_Object ones Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2, Vmac_pass_command_to_system, and Vmac_pass_control_to_system. All uses changed. (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs. Make them user options. (mac_handle_command_event, mac_store_services_event): Call create_apple_event_from_event_ref without 5th argument. (backtranslate_modified_keycode): Mask off modifier keys that are mapped to some Emacs modifiers before passing it to KeyTranslate. (syms_of_macterm): Make variables `mac-emulate-three-button-mouse', `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options. Fix docstrings of `mac-*-modifier'. * mac.c (create_apple_event_from_event_ref): Remove arg `types'. (do_applescript): Change argument types to Lisp_Object. All uses changed. * macterm.h (create_apple_event_from_event_ref): Remove 5th argument from extern. 2005-12-18 Dan Nicolaescu * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine the answer, return `lambda', not nil. 2005-12-17 Eli Zaretskii * makefile.w32-in (bootstrap-temacs): Warn that parts of commands enclosed in $(ARGQUOTE)s should not be split between two lines, as that will break with GNU Make >3.80, when sh.exe is used and arg quoting is with '..'. 2005-12-17 Chong Yidong * print.c (print_preprocess): Just signal an error if print_depth is exceeded. 2005-12-17 Eli Zaretskii * .gdbinit: Set a breakpoint on w32_abort. 2005-12-16 Juri Linkov * minibuf.c (Fminibuffer_completion_contents): New Lisp function created from minibuffer_completion_contents. (minibuffer_completion_contents): Remove. (do_completion, Fminibuffer_complete_word) (Fminibuffer_completion_help): Replace minibuffer_completion_contents with Fminibuffer_completion_contents. (syms_of_minibuf): Add Sminibuffer_completion_contents. (Fdisplay_completion_list): Doc fix. (display_completion_list_1): Use `nil' for second arg of `Fdisplay_completion_list'. 2005-12-14 Jan Djärv * xfns.c (compute_tip_xy): Handle negative dx and dy. * w32fns.c (compute_tip_xy): Ditto. * macfns.c (compute_tip_xy): Ditto. 2005-12-14 Chong Yidong * print.c (print_preprocess): Go to a deeper print_depth to avoid print_object loop. 2005-12-14 Kyotaro HORIGUCHI (tiny change) * coding.c (code_convert_region_unwind): GCPRO arg. 2005-12-12 Jan Djärv * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x, i.e. dy is offset from top of frame instead of bottom. * macfns.c (compute_tip_xy): Ditto. * w32fns.c (compute_tip_xy): Ditto. * gtkutil.c (SSDATA): New macro to remove compiler warnings. (xg_get_image_for_pixmap, xg_create_frame_widgets) (xg_get_file_with_chooser): Use SSDATA instead of SDATA. * xmenu.c (menubar_selection_callback): Do nothing if the callback is for an unselected radio menu item. 2005-12-11 Richard M. Stallman * xdisp.c (syms_of_xdisp) : Doc fix. * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once. * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE. (Flookup_key): Doc fix. (syms_of_keymap) : Doc fix. * fns.c (Frequire): Treat evaluating from a source file like loading the file. * floatfns.c (Flog): Doc fix. * fileio.c (Finsert_file_contents): Set Vdeactivate_mark when we change the buffer. 2005-12-11 Juri Linkov * minibuf.c (display_completion_list_1): Call `minibuffer_completion_contents' instead of using `nil' as second arg of `Fdisplay_completion_list'. (keys_of_minibuf): Unbind SPC in Vminibuffer_local_filename_completion_map (see also related change on 2005-12-06). 2005-12-11 YAMAMOTO Mitsuharu * emacs.c (main) [MAC_OS8]: Undo previous change. * macselect.c (syms_of_macselect) : Initialize to nil. Keymap is now created in lisp/term/mac-win.el. 2005-12-10 YAMAMOTO Mitsuharu * Makefile.in (macselect.o): Depend on keymap.h. * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before syms_of_macselect. * image.c (init_image) [MAC_OS]: Don't call EnterMovies. [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies. * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable. (syms_of_keyboard) [MAC_OS]: Initialize it. (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT. * mac.c (Qundecoded_file_name): New variable. (syms_of_mac): Initialize it. (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions. [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun. (Fmac_coerce_ae_data): New defun. (syms_of_mac): Defsubr it. * macselect.c: Include keymap.h. (mac_ready_for_apple_events): New variable. (Vmac_apple_event_map, Qmac_apple_event_class) (Qmac_apple_event_id): New variables. (syms_of_macselect): Initialize them. (Qundefined, mac_store_apple_event): Add externs. (struct apple_event_binding): New struct. (find_event_binding_fun, find_event_binding) (mac_find_apple_event_spec, defer_apple_events) (mac_handle_apple_event, init_apple_event_handler) (copy_scrap_flavor_data): New functions. (Fmac_process_deferred_apple_events): New defun. (syms_of_macselect): Defsubr it. (mac_store_services_event): Fix extern. (mac_handle_service_event): Don't allocate Lisp objects during asynchronous input processing. Use mac_store_services_event instead of mac_store_application_menu_event. * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout) (Qpreferences): Remove variables. (syms_of_macterm): Don't initialize them. (Qhicommand) [USE_CARBON_EVENTS]: New variable. (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it. (init_required_apple_events, do_ae_open_application) (do_ae_print_documents, do_ae_open_documents) (do_ae_quit_application): Remove functions and prototypes. (mac_ready_for_apple_events, Qundefined, init_apple_event_handler) (mac_find_apple_event_spec): Add externs. (mac_store_application_menu_event): Remove function. (mac_store_apple_event, mac_make_lispy_event_code): New functions. (mac_handle_command_event): Create Apple event from Carbon event. Use mac_store_apple_event instead of mac_store_application_menu_event. [MAC_OSX] (mac_store_services_event): Likewise. (struct SelectionRange, SelectionRange): Remove struct and typedef. [MAC_OS8] (main): Call init_apple_event_handler instead of init_required_apple_events. (mac_initialize) [MAC_OSX]: Likewise. [!USE_CARBON_EVENTS] (mac_wait_next_event): Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop. * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp): Add externs. (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise. (Fmac_get_preference): Add EXFUN. * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT event. 2005-12-09 Richard M. Stallman * xfns.c (Fx_create_frame): Reinstate previous change. 2005-12-09 Eli Zaretskii * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching GDB to the abort dialog. 2005-12-09 Kyotaro HORIGUCHI (tiny change) * indent.c (Fvertical_motion): Force move if starting on stretch glyph. 2005-12-08 Richard M. Stallman * lread.c (read_escape) <\s>: Don't treat strings specially. * xfns.c (Fx_create_frame): Comment out previous change. 2005-12-07 Lőrentey Károly * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame, when needed. 2005-12-06 Stefan Monnier * minibuf.c (keys_of_minibuf): Just unbind SPC in Vminibuffer_local_filename_completion_map rather than forcing it explicitly to the same binding as the global map. 2005-12-06 Ken Raeburn * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args. * bytecode.c (Fbyte_code): Likewise. * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise. * minibuf.c (Fminibuffer_complete_and_exit): Likewise. * undo.c (truncate_undo_list): Likewise. 2005-12-05 Richard M. Stallman * window.c (enlarge_window): Eliminate arg preserve_before. Assume it is 0. All callers changed. (Fenlarge_window, Fshrink_window): Likewise. 2005-12-02 Eli Zaretskii * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't fit below. 2005-12-02 Jan Djärv * xterm.h: Add prototype for xg_set_icon_from_xpm_data. * xfns.c (x_real_positions): int ign => unsigned int. (xg_set_icon_from_xpm_data): Remove unused variable err. (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast to remove compiler warning. (compute_tip_xy): Put tip above pointer if it doesn't fit below. 2005-12-02 David Reitter * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is non-nil, use the new keymaps Vminibuffer_local_filename_completion_map and Vminibuffer_local_must_match_filename_map keymaps. (keys_of_minibuf): Bind SPC in the new file-name completion keymaps. * keymap.c (Vminibuffer_local_filename_completion_map) (Vminibuffer_local_must_match_filename_map): New variables. (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their parent to be Vminibuffer_local_completion_map and Vminibuffer_local_must_match_map, respectively. * commands.h (Vminibuffer_local_filename_completion_map) (Vminibuffer_local_must_match_filename_map): Declare the new keymaps. 2005-12-01 Stefan Monnier * window.c (Fset_window_configuration): Don't accidentally copy the window-point of one window to another. 2005-11-30 Lőrentey Károly * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer. 2005-11-30 Kim F. Storm * alloc.c: Include fcntl.h. Define O_WRONLY if not defined. (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by passing it to `emacs_write'. 2005-11-29 Ari Roponen (tiny change) * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'. 2005-11-27 Richard M. Stallman * window.c (adjust_window_trailing_edge): New function. (Fadjust_window_trailing_edge): New function. (syms_of_window): Defsubr it. (window_deletion_count): New variable. (delete_window): Update window_deletion_count. 2005-11-26 Eli Zaretskii * minibuf.c (syms_of_minibuf): Mention the extension of `completion-auto-help's meaning by complete.el. 2005-11-26 Henrik Enberg * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): Handle :inherit property as a lisp expression. 2005-11-24 YAMAMOTO Mitsuharu * macterm.c (Qcontrol): Rename from Qctrl. All uses changed. (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper, Qsuper, and Qmodifier_value. (Vmac_control_modifier, Vmac_option_modifier) (Vmac_command_modifier, Vmac_function_modifier) (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2) (Vmac_pass_command_to_system, Vmac_pass_control_to_system) (Vmac_charset_info_alist): Doc fixes. 2005-11-23 YAMAMOTO Mitsuharu * emacs.c (main) [MAC_OSX]: Change working directory to home directory if `-psn_*' option is specified. * mac.c (DECODE_UTF_8): Remove macro. [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function created from cfstring_to_lisp. [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it. (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise. * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]: Add prototype. 2005-11-21 Ken Raeburn * keymap.c (shadow_lookup): Use make_number to pass a number to Fsubstring. 2005-11-21 Juri Linkov * puresize.h (BASE_PURESIZE): Increment to 1180000. 2005-11-20 Chong Yidong * xfaces.c (Finternal_set_lisp_face_attribute): Use :ignore-defface for new frame defaults when `unspecified' is supplied. (Finternal_get_lisp_face_attribute): Hide :ignore-defface. (merge_face_vectors): Don't do :ignore-defface overwriting here. (Finternal_merge_in_global_face): Do it here. 2005-11-20 Juri Linkov * charset.c (invalid_character): Use Lisp-readable syntax for octal and hex. Reorder decimal, octal and hex values. 2005-11-20 Nick Roberts * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that this type is recognised when debugging. 2005-11-19 Andreas Schwab * .gdbinit (nextcons, xcdr, xfloat): Update for changes in Lisp_Cons and Lisp_Float. 2005-11-19 YAMAMOTO Mitsuharu * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold): New variable. [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun. (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it. [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if font size is smaller than or equal to cg_text_anti_aliasing_threshold. 2005-11-17 Chong Yidong * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail. * xfaces.c (Qignore_defface): New variable. (syms_of_xfaces): Provide `:ignore-defface'. (IGNORE_DEFFACE_P): New macro. (check_lface_attrs, lface_fully_specified_p) (Finternal_set_lisp_face_attribute) (Fface_attribute_relative_p, Fmerge_face_attribute): Handle Qignore_defface as a possible value. (merge_face_vectors): The merged face is `unspecified' if the mergee specifies `:ignore-defface'. 2005-11-16 Stefan Monnier * lread.c (readevalloop): Add missing GCPROs. 2005-11-16 Chong Yidong * xfns.c (xg_set_icon_from_xpm_data): New function. * gnu.h (gnu_xpm_bits): Rename from gnu_bits. (gnu_xbm_bits): Rename from gnu_bits (xbm version). * xterm.c (x_bitmap_icon): Use the xpm if available. * image.c (x_create_bitmap_from_xpm_data): New function. (x_create_bitmap_from_xpm_data): Initialize XpmAttributes. 2005-11-15 Luc Teirlinck * Makefile.in (lisp, shortlisp): Add rfn-eshadow. 2005-11-16 Nick Roberts * .gdbinit: Make SIGTSTP work like SIGINT normally does. 2005-11-15 Andreas Schwab * lisp.h (struct Lisp_Cons): Make cdr a union. (XCDR_AS_LVALUE): Adjust. (struct Lisp_Float): Make data a union. (XFLOAT_DATA): Adjust. * alloc.c (free_float): Make free list chaining aliasing-safe. (make_float): Likewise. (free_cons): Likewise. (Fcons): Likewise. (check_cons_list): Likewise. (Fmake_symbol): Likewise. (allocate_misc): Likewise. (free_misc): Likewise. (gc_sweep): Likewise. 2005-11-15 YAMAMOTO Mitsuharu * mac.c (HASHKEY_QUERY_CACHE): New define. (xrm_create_database, xrm_q_put_resource): Empty query cache. (xrm_get_resource): Use query cache. * image.c (init_image) [MAC_OS]: Don't call EnterMovies if inhibit_window_system is set. 2005-11-13 YAMAMOTO Mitsuharu * macgui.h (USE_CG_TEXT_DRAWING): New define. (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font and cg_glyphs. * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function. (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it. (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and cg_glyphs in struct MacFontStruct if synthesized bold or italic is not used and font substitution never occurs for ASCII and Latin-1 characters. (XLoadQueryFont): Maximum and minimum metrics are now those among ASCII characters. (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style height adjustments for Courier, Helvetica, and Times. * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'. 2005-11-11 David Reitter * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey, macMetaKey, macAltKey. Introduce Qctrl, Qmeta, Vmac_control_modifier / mac-control-modifier, Vmac_option_modifier / mac-option-modifier, Vmac_command_modifier / mac-command-modifier. (mac_to_emacs_modifiers): Use the new style modifier variables. Return UInt32 (modifiers are longs now.) (backtranslate_modified_keycode): New function (refactoring). (XTread_socket): Use new modifier variables and refactored function. (mac_determine_quit_char_modifiers): Remove macMetaKey (there is no dedicated meta key. Not in use anyway.) (convert_fn_keycode): Map Fn-keys to their original keycode using a table (english keyboard only). 2005-11-11 Kim F. Storm * .gdbinit (pitx): Fix output format if n_overlay_strings > 0. Add post hook to "backtrace" to always dump lisp call stack to increase chance of people sending it to us when reporting bugs. * doc.c (Fsubstitute_command_keys): Doc fix. * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p. * xdisp.c (handle_stop): Skip overlay string handling if ignore_overlay_strings_at_pos_p is set. (set_iterator_to_next): At end of display vector, set ignore_overlay_strings_at_pos_p if dpvec came from an overlay string, so we skip those overlay strings at current pos. 2005-11-10 Lars Hansen * fileio.c (file-regular-p): Doc fix. 2005-11-10 Kim F. Storm * alloc.c (valid_lisp_object_p): New function to validate that an object is really a valid Lisp_Object. * lisp.h (valid_lisp_object_p): Add prototype. * print.c (safe_debug_print): New function to be called from gdb to print Lisp objects; use valid_lisp_object_p to avoid crashing if user tries to print something which is not a Lisp object. * .gdbinit (pp, pp1): Use safe_debug_print. (pv, pv1): New commands to print value of a lisp variable. 2005-11-10 Nick Roberts * .gdbinit (pp1): New user-defined function. 2005-11-09 YAMAMOTO Mitsuharu * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak. * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale related variables for dumped executable. * unexmacosx.c (unexec_write_zero): New function. (copy_data_segment): Clear uninitialized local variables in statically linked libraries. * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common. 2005-11-09 Juri Linkov * keymap.c (shadow_lookup): If Flookup_key returns a number, call it again with a sub-key-sequence, and if its return value is non-nil (sub-key is bound), return nil. 2005-11-08 Kim F. Storm * process.c (Fsignal_process): Recognize signal names with and without SIG prefix, e.g. SIGHUP and HUP. * search.c (search_buffer): No need to initialize base_pat. 2005-11-04 Stefan Monnier * window.c (Fget_lru_window, Fget_largest_window, window_loop): Don't abuse the `mini' arg. Use the `obj' arg instead. 2005-11-04 Kim F. Storm * xdisp.c (show_mouse_face): Clear mouse face to eol. 2005-11-03 Dan Nicolaescu * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc, font-lock.elc and jit-lock.elc. 2005-11-03 Richard M. Stallman * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL. (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG. (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG. * sheap.c (STATIC_HEAP_SIZE): Increment both definitions. * alloc.c (refill_memory_reserve): Move decl out of conditionals. 2005-11-03 Stefan Monnier * window.c (Fdisplay_buffer): Fix last change to not use a dedicated window. 2005-11-01 Kim F. Storm * fringe.c (update_window_fringes): Undo 2005-10-27 change. Instead, rotate the bottom angle bitmap 180 degrees to indicate that the bottom row does not end in a newline. 2005-11-01 Andreas Schwab * unexelf.c (unexec): Handle .plt section in BSS segment. 2005-11-01 Stefan Monnier * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM). * window.c (window_loop): For LRU and LARGEST, let the `mini' argument determine whether to consider dedicated windows as well. (Fget_lru_window, Fget_largest_window): Add `dedicated' argument. (Fdisplay_buffer): Do consider dedicated windows in those cases where we will split the window rather than reuse it. Don't try to use windows on other displays. 2005-10-31 Dan Nicolaescu * puresize.h (BASE_PURESIZE): Increment to 1170000. 2005-10-31 Romain Francoise * macfns.c: Update copyright year. * m/gould.h: Likewise. 2005-10-30 Kim F. Storm * xdisp.c (display_line): Restore it->current_x and call extend_face_to_end_of_line when last glyph doesn't fit on line. (set_glyph_string_background_width): Remove specific tests here to see if face background should extend to end of line. Simplify. 2005-10-30 Richard M. Stallman * alloc.c (BYTES_USED): Use uordblks, not arena. (bytes_used_when_reconsidered): New variable. (emacs_blocked_free): Set that. 2005-10-29 Chong Yidong * alloc.c (emacs_blocked_free): Fix typo. 2005-10-29 Richard M. Stallman * data.c (Fmake_variable_frame_local): Doc fix. * xdisp.c (handle_fontified_prop): Do nothing if memory full. (format_mode_line_unwind_data): New arg SAVE_PROPTRANS controls whether to save and restore mode_line_proptrans_alist. Callers changed. (unwind_format_mode_line): Work with that feature. (redisplay_internal): Don't call prepare_menu_bars if memory full. (move_elt_to_front): New function. (display_mode_element): Use move_elt_to_front. Don't bother munging text props on a null string. Delete obsolete elts from mode_line_proptrans_alist. (decode_mode_spec): Test Vmemory_full, not spare_memory. (Fformat_mode_line): Clear mode_line_proptrans_alist after saving. * lisp.h (memory_full_cons_threshold): Declare. (internal_lisp_condition_case): Declare. * alloc.c (syms_of_alloc) : Doc fix. (Fmemory_full_p): Function deleted. (syms_of_alloc): Don't defsubr it. (memory_full_cons_threshold): New variable. (spare_memory): Now a vector of 7 elts. (buffer_memory_full): Don't set Vmemory_full here. (xfree): Don't try to refill here. (emacs_blocked_free): Record BYTES_USED in local var. (memory_full): Now free all the slots in spare_memory. (refill_memory_reserve): Allocate each slot in spare_memory. (init_alloc_once): Call refill_memory_reserve. * keyboard.c (command_loop_1): Don't set Vmemory_full here. * eval.c (internal_lisp_condition_case): New function. (Fcondition_case): Use internal_lisp_condition_case. (Feval): Test Vmemory_full and memory_full_cons_threshold. (Ffuncall): Likewise. * bytecode.c (Fbyte_code): Use internal_lisp_condition_case. 2005-10-29 Stefan Monnier * syntax.c (Fparse_partial_sexp): Fix docstring. 2005-10-28 Romain Francoise * puresize.h (BASE_PURESIZE): Increment to 1130000. 2005-10-28 Richard M. Stallman * xfns.c (syms_of_xfns): Provide `x' as feature. * xdisp.c (decode_mode_spec): Define %e to indicate memory full. * editfns.c (Fformat): Don't include string padding between info[n].start and info[n].end. * alloc.c (spare_memory): No longer static. (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve. * puresize.h (BASE_PURESIZE): Increment to 1120000. 2005-10-27 Chong Yidong * data.c (Fmake_variable_frame_local): Add clarification to docstring. * fringe.c (update_window_fringes): Handle case where buffer ends with a newline. 2005-10-27 Kenichi Handa * coding.h (DECODE_SYSTEM): Fix argument name; name->str. 2005-10-24 Kenichi Handa * charset.h (charset_mule_unicode_0100_24ff) (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff): Extern them. * charset.c (charset_mule_unicode_0100_24ff) (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff): New variables. (Fsetup_special_charsets): Initialize them. * xterm.c (handle_one_xevent): Handle keysyms directly mapped to supported Unicode characters. 2005-10-25 Jason Rumney * w32fns.c (w32_to_x_font): Avoid forcing font widths. 2005-10-25 YAMAMOTO Mitsuharu * image.c [MAC_OS] (image_load_qt_1): Check image size. Use GraphicsImportGetImageDescription instead of GraphicsImportGetNaturalBounds. [MAC_OSX] (image_load_quartz2d): Check image size. [MAC_OS] (xpm_load_image): Likewise. * macterm.c (last_mouse_glyph_frame): New var. (note_mouse_movement): Say mouse moved if current frame differs from last_mouse_glyph_frame, and update last_mouse_glyph_frame. (XTmouse_position): Set last_mouse_glyph_frame. (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event. (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo. Use EndianU16_BtoN. (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls. (x_per_char_metric, XLoadQueryFont) [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get glyph bounds. (mac_to_x_fontname, mac_do_list_fonts) (mac_initialize_display_info): Change screen resolutions to 72dpi. 2005-10-25 Masatake YAMATO * minibuf.c (Fdisplay_completion_list): Small doc fix. 2005-10-24 Kim F. Storm * xterm.c: Undo 2005-10-23 change. (last_mouse_glyph_frame): New var. (note_mouse_movement): Say mouse moved if current frame differs from last_mouse_glyph_frame, and update last_mouse_glyph_frame. (XTmouse_position): Set last_mouse_glyph_frame. (handle_one_xevent): Clear last_mouse_glyph_frame [instead of last_mouse_glyph] on mouse up/down event. * editfns.c (Fcompare_buffer_substrings): Fix last change. 2005-10-23 Stefan Monnier * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars. 2005-10-23 Jan Djärv * xterm.c (note_mouse_movement): Always call note_mouse_highlight so tool tips don't interfere with press on tool bar button. 2005-10-23 Richard M. Stallman * casetab.c (Fset_case_table): Doc fix. * lread.c (build_load_history): Replace STREAM arg with ENTIRE. (readevalloop): Compute ENTIRE properly. (syms_of_lread) : Doc fix. 2005-10-21 Richard M. Stallman * lread.c (Fload): Simplify gcpro structure. Gcpro FOUND as well as FILE, but not EFOUND. Unless preloading, record FOUND instead of FILE in Vload_history. Rename repeat local FILE to MSG_FILE. (syms_of_lread) : Doc fix. 2005-10-21 Kenichi Handa * search.c (boyer_moore): Add parens to fix and/or precedence bug. 2005-10-20 Kim F. Storm * buffer.c (clone_per_buffer_values): Remove unused var tem. (init_buffer): Remove unused vars dotstat, pwdstat. * ccl.c (check_ccl_update): Remove unused var vp. * fileio.c (auto_save_error): Call SAFE_FREE. * fns.c (Fchar_table_range): Remove unused var i. * minibuf.c (display_completion_list_1): New wrapper function for Fdisplay_completion_list. (Fminibuffer_completion_help): Use it. * term.c (encode_terminal_code): Remove unused var src_start. * window.c (Fwindow_tree): Remove unused var alist. * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y. 2005-10-20 Aubrey Jaffer (tiny change) * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments. 2005-10-20 Olli Savia (tiny change) * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO. 2005-10-20 Andreas Schwab * minibuf.c (Fdisplay_completion_list): Doc fix. 2005-10-19 Kim F. Storm * image.c (check_image_size): Handle integer Vmax_image_size value directly as max pixel value. Use default frame size for null frame. (syms_of_image) : Describe integer value. 2005-10-19 Romain Francoise * emacs.c (main): Update copyright year. 2005-10-18 Chong Yidong * image.c (Vmax_image_size): New variable. (check_image_size): New function. (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load) (gif_load, gs_load): Use it. (lookup_image): Try loading again if previous load failed. (xbm_read_bitmap_data): Add a new argument, a pointer to the frame to display in, NULL if none. (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new argument. 2005-10-18 Richard M. Stallman * search.c (Fstring_match): Doc fix. 2005-10-18 YAMAMOTO Mitsuharu * macterm.c (note_mouse_movement): Use PtInRect. (XTread_socket): Also ignore mouse motion just before a button release event. Don't process button release event when mouse is not grabbed. 2005-10-16 Masatake YAMATO * minibuf.c (Fdisplay_completion_list): Add new optional argument COMMON_SUBSTRING. Bind `completion-common-substring' to the optional argument during running `completion-setup-hook'. 2005-10-16 YAMAMOTO Mitsuharu * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp): Allow nil as argument. [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil for encoding arguments as UTF-16 in native byte order, no BOM. * macfns.c (Fx_create_frame): Add debugging code. (Fx_show_tip): Set frame pixel width and height. * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro. (FRAME_NORMAL_GC): New macro. (mac_draw_line, mac_clear_area, mac_clear_window) (mac_fill_rectangle, mac_draw_string, mac_draw_string_16) (mac_draw_image_string, mac_draw_image_string_16): Rename from XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString, XDrawString16, XDrawImageString, and XDrawImageString16, respectively. All uses changed. (mac_draw_line, mac_erase_rectangle, mac_clear_area) (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle) (mac_invert_rectangle, mac_draw_string_common, mac_draw_string) (mac_draw_string_16, mac_draw_image_string) (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask) (mac_scroll_area): Drawing functions now take frame as destination. All uses changed. (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT. (x_draw_fringe_bitmap): Set clipping area in face->gc. * macterm.h (mac_clear_area): Add extern. 2005-10-14 YAMAMOTO Mitsuharu * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14 changes for xterm.c. * w32term.c (note_mouse_movement, w32_read_socket): Likewise. 2005-10-14 Kenichi Handa * search.c (search_buffer): Give up BM search on case-fold-search if one of a target character has a case-equivalence of different charset even if that target charcter is an ASCII. * casefiddle.c (casify_object): Fix for the case that case conversion change the byte length. 2005-10-14 Kim F. Storm * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise. (handle_one_xevent): Only clear help_echo_string; restore it if note_mouse_movement didn't record any mouse movement. * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use. (remember_mouse_glyph): Clear RECT if mouse is over an image glyph. * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT. (Fposn_at_x_y): Fix calculation of x coordinate. (Fposn_at_point): Return nil if point is hscrolled out of view. 2005-10-13 Andreas Schwab * sysdep.c (request_sigio, unrequest_sigio): Do nothing in non-interactive mode. 2005-10-12 YAMAMOTO Mitsuharu * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change. 2005-10-12 Kim F. Storm * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down. 2005-10-12 Romain Francoise * buffer.c (init_buffer): Rename `rc' to `len' for clarity. 2005-10-12 YAMAMOTO Mitsuharu * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to get end of text rows. Obtain header-line/mode-line rows directly. * xterm.c, w32term.c, macterm.c (note_mouse_movement): Restore help_echo_string if mouse is moved inside last_mouse_glyph. 2005-10-12 Kim F. Storm * xdisp.c (remember_mouse_glyph): New generic version based on glyph_rect and remember_mouse_glyph from xterm.c enhanced to properly handle all different window areas. * dispextern.h (remember_mouse_glyph): Add prototype. * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions. (note_mouse_movement, XTmouse_position): Use generic remember_mouse_glyph, add last_mouse_glyph arg. * w32term.c (note_mouse_movement): Fix last_mouse_glyph check. (glyph_rect, remember_mouse_glyph): Remove w32 specific versions. (note_mouse_movement, w32_mouse_position): Use generic remember_mouse_glyph, add last_mouse_glyph arg. * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph. (glyph_rect, remember_mouse_glyph): Remove mac specific versions. (XTmouse_position): Adapt to use generic remember_mouse_glyph instead of pixel_to_glyph_coords. * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN. Fix x position for ON_TEXT when left margin width > 0. 2005-10-11 Kim F. Storm * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR. * keyboard.c (make_lispy_position): Fix buffer calculations for mouse click or movement in right fringe and the margins. 2005-10-11 Juanma Barranquero * image.c (fn_jpeg_stdio_src): Don't define it. (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'. (our_common_init_source): Rename from `our_init_source'. (our_common_term_source): Rename from `our_term_source'. (our_memory_fill_input_buffer): Rename from `our_fill_input_buffer'. (our_memory_skip_input_data): Rename from `our_skip_input_data'. (jpeg_memory_src): Use the new names. (struct jpeg_stdio_mgr): New struct. (JPEG_STDIO_BUFFER_SIZE): New constant. (our_stdio_fill_input_buffer, our_stdio_skip_input_data) (jpeg_file_src): New functions. (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'. 2005-10-11 YAMAMOTO Mitsuharu * macterm.c (PER_CHAR_METRIC): Remove unused macro. (fm_font_family_alist): New variable. (syms_of_macterm): Initialize and staticpro it. (decode_mac_font_name): Replace '-' in family name with '_' if it occurs just once. Lower family name. (parse_x_font_name): Rename from x_font_name_to_mac_font_name. All uses changed. Remove argument MF and code conversion for it. Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS to CHARSET. Parse font size. Lower family name. Return integer value for status of parsing. (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name. Don't use Fdowncase because family name is already lowered by decode_mac_font_name. (init_font_name_table): Always call decode_mac_font_name. Add pair of family name and its reference to fm_font_family_alist. (mac_clear_font_name_table): Clear fm_font_family_alist. (XLoadQueryFont): Move font size parsing part to parse_x_font_name. Lookup fm_font_family_alist to get font family reference. (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family name is already lowered by parse_x_font_name. 2005-10-11 Kim F. Storm * xterm.c (glyph_rect): Return 0 if position is outside text area. * keyboard.c (make_lispy_position): Fix buffer position calculation for mouse click or movement in fringe. 2005-10-10 Jason Rumney * xterm.c (remember_mouse_glyph): New function. (note_mouse_movement): Use it to remember the current glyph if changed. (XTmouse_position): Fix calculation of fake glyph under mouse. Move code to calculate glyph under mouse into remember_mouse_glyph. 2005-10-10 Jan Djärv * emacs.c (USAGE3, standard_args): -nb => -nbi. 2005-10-10 Juanma Barranquero * frame.c (Fredirect_frame_focus): Fix typos in docstring. (next_frame, prev_frame, set_term_frame_name): Make static. * window.c (Fwindow_tree): Fix spelling. 2005-10-09 Romain Francoise * window.c (Fwindow_end): Don't try to redisplay if non-interactive. 2005-10-09 Jan Djärv * emacs.c (standard_args): Remove options -i, -itype, --icon-type. Add options -nb, --no-bitmap-icon. * xfns.c (Fx_create_frame): Make bitmapIcon have default on. 2005-10-08 YAMAMOTO Mitsuharu * macgui.h (MAX_CLIP_RECTS): New define. (struct _XGC): New member clip_region. (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and clip_rects. * macterm.c (GC_CLIP_REGION): New macro. (saved_port_clip_region): New variable. (mac_begin_clip, mac_end_clip): New functions. (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle) (mac_draw_rectangle, mac_draw_string_common, mac_copy_area) (mac_copy_area_with_mask, mac_scroll_area): Use them. (mac_set_clip_rectangle, mac_reset_clipping): Remove functions. [USE_ATSUI] (atsu_get_text_layout_with_text_ptr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable. (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping rectangles stored in gc. (XFreeGC): Dispose of clipping region. (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions. (x_draw_fringe_bitmap, x_set_glyph_string_clipping) (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string) (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor) (x_draw_bar_cursor): Use them. (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to get multiple clipping rectangles. * macterm.h (mac_term_init): Add types to extern. (struct mac_output): Remove members mWP and pending_menu_activation. Put members scroll_bar_foreground_pixel and scroll_bar_background_pixel in #if 0. (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc. * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT. Add debugging code. 2005-10-08 Kim F. Storm * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04. 2005-10-07 Kim F. Storm * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows) [!HAVE_WINDOW_SYSTEM]: Don't declare them... (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them. 2005-10-07 YAMAMOTO Mitsuharu * dispextern.h (struct glyph_string): Rename member for_overlaps_p to for_overlaps. Now occupy 3 bits. (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH) (OVERLAPS_ERASED_CURSOR): New defines. (struct redisplay_interface): Add new OVERLAPS arg to member fix_overlapping_area. (x_fix_overlapping_area): Add new OVERLAPS arg. (get_glyph_string_clip_rects): Add extern. * dispnew.c (redraw_overlapping_rows): Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part. * xdisp.c: Rename member for_overlaps_p in struct glyph_string to for_overlaps. (get_glyph_string_clip_rects): New function created from get_glyph_string_clip_rect. Set clipping rectangles according to the value of for_overlaps. Enable to store multiple clipping rectangles. (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects. (fill_composite_glyph_string, fill_glyph_string, draw_glyphs): Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed. (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs. (draw_phys_cursor_glyph): Set width of erased cursor to use it for calculating clipping rectangles later. Call x_fix_overlapping_area with new OVERLAPS arg to draw only erased cursor area. (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg to draw overlaps in both preceding and succeeding rows. * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in struct glyph_string to for_overlaps. 2005-10-04 Richard M. Stallman * alloc.c (refill_memory_reserve): Conditionalize the body, not the function's existence. 2005-10-04 Kim F. Storm * window.c (window_split_tree): New function. (Fwindow_split_tree): New defun. (syms_of_window): Defsubr it. 2005-10-04 YAMAMOTO Mitsuharu * macterm.c (mac_invert_rectangle): New function. (XTflash): Use it. 2005-10-04 Stefan Monnier * regex.h (re_char): Don't expose it in the interface. (re_set_whitespace_regexp): Adjust the arg's type to not use it. * regex.c (re_char): Move it back here. (re_set_whitespace_regexp): Change the arg's type to not use it. * keyboard.c (make_lispy_event): If point has moved between down and up event, make it a drag, not a click, to mirror what mouse-drag-region expects. 2005-10-02 Dan Nicolaescu * lisp.h (fatal): Undo previous change. * term.c (fatal): Undo previous change. 2005-10-01 Richard M. Stallman * xfaces.c (face_color_gray_p): Colors close to black count as gray. 2005-10-01 Kim F. Storm * xdisp.c (try_window): Skip scroll-margin check if ZV is visible. 2005-10-01 YAMAMOTO Mitsuharu * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler. * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c. (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code. (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]: Try ATSUI-compatible 12pt Monaco font first. * macgui.h (struct _XCharStruct): New member valid_p. (STORE_XCHARSTRUCT): Set valid_p. (struct MacFontStruct) [USE_ATSUI]: New member mac_style. * macterm.c (mac_draw_string_common, x_per_char_metric) (mac_compute_glyph_string_overhangs, init_font_name_table) (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support. (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function. (x_draw_glyph_string_background) (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use XDrawImageString. Always draw background and foreground separately. (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit functions for one-byte chars when using ATSUI-compatible fonts. (atsu_font_id_hash) [USE_ATSUI]: New variable. (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it. (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and max_char_or_byte2 more in detail. (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions. 2005-09-30 Dan Nicolaescu * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type. * xterm.c (handle_one_xevent, handle_one_xevent): Likewise. * unexelf.c (fatal): Fix prototype. * term.c (fatal): Implement using varargs. * regex.c (re_char): Move typedef ... * regex.h (re_char): ... here. (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes. * emacs.c (malloc_set_state): Fix return type. (endif): Fix type. * lisp.h (fatal): Add argument types. * dispextern.h (fatal): Delete prototype. * systime.h (make_time): Prototype moved from ... * editfns.c (make_time): ... here. * editfns.c: Move systime.h include after lisp.h. * dired.c: * xsmfns.c: * process.c: Likewise. * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook): Add parameter types. (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes. (emacs_blocked_free): Change definition to match __free_hook. (emacs_blocked_malloc): Change definition to match __malloc_hook. (emacs_blocked_realloc): Change definition to match __realloc_hook. 2005-09-30 Romain Francoise * minibuf.c (Fread_buffer): Follow convention for reading from the minibuffer with a default value. Doc fix. 2005-09-29 Juri Linkov * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box): Rename argument name `string' to `format-string'. (Fformat): Doc fix. 2005-09-28 Kim F. Storm * image.c (gif_load): Fix size of allocated image buffer for images where a sub-image may be larger than the image's total height/width specifications. 2005-09-28 YAMAMOTO Mitsuharu * macgui.h (struct _XCharStruct): Each member now takes short value. 2005-09-27 Dan Nicolaescu * xfaces.c (lookup_derived_face): Add parameter type. * xdisp.c (cursor_row_fully_visible_p): Add parameter type. * marker.c (verify_bytepos): Add parameter type. * process.c (get_operating_system_release): Move prototype ... * systime.h (get_operating_system_release): ... here. * xterm.c (handle_one_xevent): Refer to union field to match the type required by the function definition. (set_vertical_scroll_bar): Move prototype ... * xterm.h: ... here. * fns.c (internal_equal, seed_random): Fix prototypes. (internal_equal): Add missing parameter. 2005-09-25 Richard M. Stallman * keyboard.c (update_menu_bindings): Variable deleted. (syms_of_keyboard): Don't defvar it. (parse_menu_item): Don't test it. 2005-09-23 Richard M. Stallman * editfns.c (Fformat): Explicitly test for end of format string and don't use `index'. 2005-09-23 Dan Nicolaescu * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Define BROKEN_GET_CURRENT_DIR_NAME. * sysdep.c (get_current_dir_name): Also define if BROKEN_GET_CURRENT_DIR_NAME. * m/ibmrs6000.h: Test for USG5, not USG5_4. 2005-09-22 Kim F. Storm * xdisp.c (message_dolog): Add warning about GC and Lisp strings. (message2): Fix commentary. Ok to use alloca'ed memory. Still not ok to use Lisp string data (because of GC). (set_message): Add comment why GC cannot happen. 2005-09-22 YAMAMOTO Mitsuharu * macterm.c (xlfdpat_block_match_1): Fix assertion. (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style variants for a scalable font multiple times. 2005-09-21 YAMAMOTO Mitsuharu * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]: Setup slave tty options before forking. 2005-09-20 Jan Djärv * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program positions have been set for the frame (as is done for frames in special-display-buffer-names). 2005-09-19 Kim F. Storm * editfns.c (Fformat): Don't scan past end of format string that ends in %. Reported by Johan Bockgård. 2005-09-18 Andreas Schwab * window.h (struct window): Remove height_fixed_p, no longer set. * window.c (make_window): Don't initialize height_fixed_p. (window_fixed_size_p): Don't use it. 2005-09-18 John Paul Wallington * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol. 2005-09-18 YAMAMOTO Mitsuharu * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change. * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables. [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple file selection. * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h. 2005-09-17 Eli Zaretskii * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable. (obj): Use XMENU_OBJ, not a literal xmenu.o. 2005-09-16 Romain Francoise * fileio.c (syms_of_fileio) : Doc fix. 2005-09-15 Richard M. Stallman * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional. (display_mode_element): Instead of `lisp_string' and `this', record `offset' and increment that. `last_offset' replaces `last'. * Makefile.in (XMENU_OBJ): Variable deleted. (obj): Use xmenu.o unconditionally. (SOME_MACHINE_OBJECTS): Delete xmenu.o. * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU. 2005-09-15 Kim F. Storm * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1. (reseat_at_next_visible_line_start): Likewise (in xassert). 2005-09-14 Romain Francoise * fileio.c (write_region_inhibit_fsync): New variable. (Fwrite_region): Use it to skip call to fsync. (syms_of_fileio): Initialize it. 2005-09-14 Kenichi Handa * coding.c (code_convert_region_unwind): Argument format changed. (run_pre_post_conversion_on_str): If pre-write-conversion function changed the current buffer, delete the new buffer. (run_pre_write_conversin_on_c_str): Likewise. * fileio.c (Fexpand_file_name): Check multibyteness of default_directory. 2005-09-13 Kenichi Handa * composite.c (compose_chars_in_text): Delete it. * composite.h (compose_chars_in_text): Delete extern. 2005-09-13 Kim F. Storm * print.c (print_error_message): Fix last change. 2005-09-12 Kim F. Storm * composite.c (compose_chars_in_text): Fix setup of `pend'. Unconditionally reload `ptr' and `pend' after eval. * xdisp.c (message3): Pass copy of lisp string to message_dolog. * print.c (print_error_message): Pass copy of caller name to message_dolog. * fileio.c (auto_save_error): Pass copy of lisp string to message2. 2005-09-12 Kenichi Handa * xdisp.c (display_mode_element): Be sure to make variables THIS and LISP_STRING point into a string data of ELT. 2005-09-12 Kim F. Storm * editfns.c (Ftranslate_region_internal): Reload `tt' after signal_after_change that may have GC'ed. (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix. * keymap.c (Fdescribe_buffer_bindings): Reload `translate' after insert while runs signal_after_change. * minibuf.c (Fminibuffer_complete_word): Move `completion_string' declaration to where it is used. * w32.c (check_windows_init_file): Fix allocation of error buffer. * xfns.c (x_encode_text): Declare static. Add FREEP arg. (x_set_name_internal): Call x_encode_text with new FREEP arg to know if xfree is needed instead of guessing. * xterm.h (x_encode_text): Remove prototype. 2005-09-11 Chris Prince (tiny change) * w32term.c (x_bitmap_icon): Load small icons too. 2005-09-10 Romain Francoise * buffer.c (init_buffer): Grow buffer to add directory separator and terminal zero. Fix typos. 2005-09-10 Eli Zaretskii * buffer.c (init_buffer): Fix error message for failed call to get_current_dir_name. (get_current_dir_name): Remove prototype. * xsmfns.c (get_current_dir_name): Remove prototype. * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add prototype. * sysdep.c [WINDOWSNT]: Add prototype for getwd. Don't #undef NULL after including blockinput.h. * config.in: Regenerated. 2005-09-10 Giuseppe Scrivano Remove the MAXPATHLEN limitations: * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: New function. * buffer.c (init_buffer): Use it. * xsmfns.c (smc_save_yourself_CB): Ditto. 2005-09-09 Kim F. Storm * doc.c (Fsubstitute_command_keys): Lookup key binding for commands that are remapped from some other command. * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p flag in disabled rows below the window. * frame.h (struct frame): New member updated_p. * xdisp.c (redisplay_internal): Mark updated frames in new updated_p member. Remove local `updated' array and associated variables. 2005-09-07 Kim F. Storm * xdisp.c (handle_display_prop): Respect overlay window property. * xdisp.c (try_window): Remove superfluous cursor_height calculation. Fixes crash reported by YAMAMOTO Mitsuharu. 2005-09-06 YAMAMOTO Mitsuharu * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs. (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p) (xlfdpat_block_match_1, xlfdpat_match): New functions. (xlfdpat_block_match): New macro. (mac_to_x_fontname): Don't use tolower for non-ASCII characters. (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0. (add_font_name_table_entry): Increase font_name_table_size more rapidly. (mac_c_string_match): Remove function. (mac_do_list_fonts): Use XLFD pattern match instead of regular expression match. * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters. 2005-09-03 Richard M. Stallman * xdisp.c (redisplay_internal): Make UPDATED as long as needed. (move_it_in_display_line_to): Stop after last char on line even on a windowing terminal, if that's the specified stop position. * fns.c (Fsort): Doc fix. * editfns.c (Fpropertize): Don't insist that properties be symbols. 2005-09-02 Stefan Monnier * dired.c (directory_files_internal_unwind, directory_files_internal) (file_name_completion): Use a Save_Value object rather than a cons of two 16bit ints to store the DIR*. (directory_files_internal, file_name_completion): Handle both EINTR and EAGAIN consistently after `readdir'. 2005-09-01 Stefan Monnier * intervals.c (update_interval): Add position info in error. * dispnew.c (window_to_frame_hpos, update_window): Avoid gcc warning about unused variable `f'. 2005-08-31 Jason Rumney * w32menu.c (add_menu_item): If unicode_append_menu returns an error, revert to using AppendMenu. 2005-08-31 YAMAMOTO Mitsuharu * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument. All uses changed. [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common cases. (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image. [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef. Use posix_pathname_to_fsspec. [MAC_OS] (xpm_load_image): Fill in background_transparent field while we have mask. * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define. * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c. 2005-08-29 Stefan Monnier * syntax.c (update_syntax_table): Properly reproduce the special +1 setting of e_property at the end of the buffer when bumping into the INTERVALS_AT_ONCE limit. 2005-08-27 Eli Zaretskii * emacs.c (USAGE1): Fix the description of the -Q option. 2005-08-26 Stefan Monnier * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM). 2005-08-26 Kim F. Storm * xdisp.c (resize_mini_window): Fix 2005-08-20 change. Don't move PT to new window start. 2005-08-25 YAMAMOTO Mitsuharu * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for ICONIFY/DEICONIFY_EVENT. * macterm.c (mac_copy_area, mac_copy_area_with_mask): Restore background color. (mac_handle_visibility_change): New function. (x_make_frame_invisible, x_iconify_frame) (XTread_socket) [!USE_CARBON_EVENTS]: Use it. [USE_CARBON_EVENTS] (mac_handle_window_event) (install_window_handler): Handle visibility change events. (x_make_frame_visible): Don't reposition window if it is iconified or asked for visible before. Select and uncollapse window when it is made visible. (x_make_frame_invisible): Don't reset x_highlight_frame. (x_iconify_frame): Likewise. Make invisible frame visible before it is iconified. (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS. (do_window_update): Don't change visibility of invisible frame. 2005-08-22 Juri Linkov * term.c (turn_on_face): Check for TS_set_foreground and TS_set_background depending on standout_mode. Simplify. 2005-08-21 Kim F. Storm * fringe.c (update_window_fringes): Only put TOP and BOTTOM bitmaps on fully visible rows. * fringe.c (update_window_fringes): Replace FORCE_P arg with KEEP_CURRENT_P arg; if non-zero, don't update current row fringes, and return 0. * xdisp.c (redisplay_window): Call update_window_fringes with KEEP_CURRENT_P non-0 if we are going to refresh fringes later. 2005-08-20 Richard M. Stallman * xdisp.c (display_echo_area_1): Get display start pos from w->start. (resize_mini_window): Set w->start, and PT, so as to display the tail end of the buffer, if it doesn't all fit. 2005-08-18 Kim F. Storm * xdisp.c (calc_pixel_width_or_height): Use actual display resolution when available instead of Vdisplay_pixels_per_inch. 2005-08-17 Kim F. Storm * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled. * dispnew.c (buffer_posn_from_coords): Check that target row is within matrix. 2005-08-16 Jan Djärv * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to xg_set_frame_icon and call it. * gtkutil.c (xg_set_frame_icon): New function. * gtkutil.h (xg_set_frame_icon): Declare it. 2005-08-16 Kim F. Storm * dispnew.c (increment_row_positions): Skip non-enabled rows. * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define. (Fcurrent_window_configuration): Use VECSIZE macro instead. 2005-08-15 Richard M. Stallman * xdisp.c (message3_nolog): Clear echo_message_buffer. 2005-08-15 Kim F. Storm * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input. * process.c (deactivate_process, status_notify, read_process_output) (update_status, status_convert, decode_status, allocate_pty) (make_process, remove_process, list_processes_1) (create_process_1, unwind_request_sigio, read_process_output) (send_process, keyboard_bit_set): Declare static. (Fdelete_process): Simplify. Pass process to status_notify, so we don't try to read output from it. (status_notify): New arg deleting_process--don't try to read output from that process. * lisp.h (deactivate_process, status_notify, read_process_output): Remove prototypes. 2005-08-14 Richard M. Stallman * image.c (syms_of_image): Init Qxbm, Qpbm before calling define_image_type. 2005-08-13 Jan Djärv * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function. (xg_get_image_for_pixmap): Move some code to xg_get_pixbuf_from_pix_and_mask, and call it. * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare. * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask to get an GTK icon and set it with GTK functions to avoid having GTK override an icon set with just X functions. 2005-08-11 Richard M. Stallman * image.c (syms_of_image): Init image_types here, and call define_image_type. (init_image): Not here. 2005-08-09 Richard M. Stallman * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input. * lisp.h (QUIT): Throw t to Vthrow_on_input. 2005-08-09 Thien-Thi Nguyen * floatfns.c (Fexpt): Use floats for negative exponent. 2005-08-08 Jan Djärv * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that should not be there, causing menu display errors with GTK 2.6.9. 2005-08-07 Richard M. Stallman * floatfns.c (Fexpt): Undo previous change. * dispnew.c (Fframe_or_buffer_changed_p): Take an arg so it can be used with various state vectors. * emacs.c (endif): Convert -script into -scriptload. (standard_args): Add -scriptload. Allow -basic-display with one dash. * fns.c (syms_of_fns): Add `emacs' to features. * term.c (set_terminal_modes): If no TS_termcap_modes string, output newlines to scroll the old screen contents off the screen. 2005-08-06 Thien-Thi Nguyen * floatfns.c (Fexpt): Use floats for negative exponent. Reported by D Goel. 2005-08-02 Richard M. Stallman * frame.c (Fframe_char_width): Doc fix. 2005-07-30 Juanma Barranquero * xdisp.c (syms_of_xdisp) : Defvar it. 2005-07-28 Juanma Barranquero * w32fns.c (my_set_window_pos, my_show_window): Don't declare. (my_create_window, my_create_tip_window): Make static. * w32term.c (my_show_window, my_set_window_pos, my_set_focus) (my_set_foreground_window, my_destroy_window): Make static. 2005-07-26 Paul Eggert Merge gnulib getopt implementation into Emacs. * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is now part of lib-src. 2005-07-26 Stefan Monnier * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters). 2005-07-25 Jason Rumney * w32menu.c (w32_menu_display_help): Suppress tooltip when navigating menus with the keyboard. 2005-07-23 Richard M. Stallman * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer. * bytecode.c (MAYBE_GC): Test gc_cons_threshold and gc_relative_threshold, one by one. * keyboard.c (read_char): Test gc_cons_threshold. (syms_of_keyboard): staticpro Qecho_area_clear_hook. * eval.c (Feval, Ffuncall): Test gc_cons_threshold and gc_relative_threshold, one by one. * alloc.c (gc_cons_threshold): Not static. (gc_cons_combined_threshold): Var deleted. (gc_relative_threshold): New variable. (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold instead of gc_cons_combined_threshold. * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare. (gc_cons_combined_threshold): Declaration deleted. 2005-07-23 YAMAMOTO Mitsuharu * mac.c: Don't include stdlib.h or string.h. (Fdo_applescript, Fmac_file_name_to_posix) (Fmac_file_name_to_posix): Doc fixes. [TARGET_API_MAC_CARBON] (Fmac_get_preference) (Fmac_code_convert_string): Likewise. [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode if the executable is not contained in a bundle. * macfns.c: Don't include stdlib.h or string.h. Include atimer.h. (gray_width, gray_height): Remove defines. (gray_bits, gray_bitmap_width, gray_bitmap_height) (gray_bitmap_bits): Remove variables. (lispy_function_keys): Remove extern. (free_frame_menubar): Add extern. (x_window_to_frame): Remove function. (unwind_create_tip_frame): Add declaration. (x_set_name_internal): New function. (x_set_name, x_set_title): Use it. (Fx_create_frame, Fx_display_grayscale_p, 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) (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes. * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes. * macselect.c (Fx_own_selection_internal): Follow error conventions. (Fx_get_selection_internal, Fx_selection_owner_p) (Fx_selection_exists_p): Doc fixes. (syms_of_macselect) : Likewise. 2005-07-21 Juanma Barranquero * buffer.c (syms_of_buffer) : Doc fix. * ccl.c (Fregister_ccl_program): Fix typos in docstring. (Fccl_execute_on_string): Likewise; add usage info. * composite.c (Fcompose_region_internal) (Fcompose_string_internal): Improve argument/docstring consistency. * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer): Fix typos in docstrings. * textprop.c (Fnext_char_property_change) (Fprevious_char_property_change): Doc fixes. * window.c (Fset_window_margins, Fset_window_fringes): Improve argument/docstring consistency. * xfaces.c (Finternal_lisp_face_p): Doc fix. 2005-07-21 Andreas Schwab * eval.c (restore_stack_limits): Return a value. 2005-07-20 Juanma Barranquero * eval.c (Fdefvar): Doc fix. 2005-07-20 Kim F. Storm * fileio.c (Fdo_auto_save, do_auto_save_unwind): Use make_save_value to unwind protect stream. * lread.c (Fload, load_unwind): Use make_save_value to unwind protect stream. 2005-07-19 Juanma Barranquero * eval.c (Fprog2, Fcalled_interactively_p), (syms_of_eval) : Doc fixes. (syms_of_eval) : (Finteractive_p): Fix typos in docstrings. 2005-07-19 Kim F. Storm * w32fns.c (Vx_hand_shape): Variable removed. (syms_of_w32fns): Intern and staticpro Qw32_charset_default. 2005-07-19 Kenichi Handa * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring. 2005-07-18 Stefan Monnier * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c). 2005-07-18 Kim F. Storm * frame.h (struct frame): New member already_hscrolled_p. * xdisp.c (redisplay_internal): Only try to hscroll each frame once to avoid redisplay looping hscrolling back and forth ad infinitum. 2005-07-18 Juri Linkov * buffer.c (scroll-up-aggressively, scroll-down-aggressively): * keymap.c (Fminor_mode_key_binding): * macterm.c (mac-emulate-three-button-mouse): Delete duplicate duplicate words. 2005-07-18 Ken Raeburn * minibuf.c (Ftest_completion): Fix odd syntax in test. 2005-07-18 YAMAMOTO Mitsuharu * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground. * macgui.h (struct _XGC): New struct. (GC): Use it. (GCForeground, GCBackground, GCFont): Use X11 mask values. (XCreateGC, XParseGeometry): Move externs to macterm.h. * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations. (XSetFont): Add declaration. (mac_set_forecolor, mac_set_backcolor, mac_set_colors): Remove functions. (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC): New defines. (XDrawLine, mac_draw_line_to_pixmap, XClearWindow) (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle) (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area): Use them. (mac_erase_rectangle): New function. (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect) (x_draw_stretch_glyph_string): Use it. (XChangeGC, XCreateGC, XGetGCValues, XSetForeground) (XSetBackground, XSetFont): Adjust for new GC implementation. (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors. (XTset_vertical_scroll_bar): Clear area under scroll bar. * macterm.h (struct mac_display_info): Change types of scratch_cursor_gc black_relief.gc, and white_relief.gc to GC. (XCreateGC, XParseGeometry): Move externs from macgui.h. * xfaces.c [MAC_OS] (XCreateGC): Remove extern. 2005-07-16 Richard M. Stallman * buffer.c (Fmake_overlay): Doc fix. 2005-07-16 Eli Zaretskii * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow, Vw32_valid_locale_ids, and Vw32_valid_codepages. 2005-07-16 YAMAMOTO Mitsuharu * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Use Fstring_as_unibyte instead of string_make_unibyte. 2005-07-15 Richard M. Stallman * xdisp.c (select_frame_for_redisplay): Use find_symbol_value. 2005-07-15 Kim F. Storm * xdisp.c: Fix redisplay loop in last change. (IT_POS_VALID_AFTER_MOVE_P): New macro. (move_it_vertically_backward, move_it_by_lines): Use it. 2005-07-14 Jason Rumney * w32.c (init_environment): Default HOME directory to user's appdata directory if possible. 2005-07-14 Kim F. Storm * .gdbinit (pitx): Fix output format. Print string charpos. * lread.c (syms_of_lread): Initialize seen_list. * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp. * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state. Staticpro re_match_object. 2005-07-14 YAMAMOTO Mitsuharu * macselect.c (get_scrap_target_type_list): Avoid NULL pointer dereference. * macterm.c (mac_window_to_frame): Remove duplicate define. 2005-07-14 Kenichi Handa * coding.c (code_convert_region_unwind): ARG is changed to a cons. (code_convert_region): Adjust for the above change. (set_conversion_work_buffer): If the work buffer is already in use, generate a new buffer and return it. Otherwise return Qnil. (run_pre_post_conversion_on_str): Adjust for the above change. (run_pre_write_conversin_on_c_str): Likewise. 2005-07-13 Kim F. Storm * xdisp.c (start_display): Don't reseat to next visible line start if current start position is in a string or image. (move_it_vertically_backward): Be sure to move out of strings and images when moving it2 forward. (move_it_by_lines): When moving forward, move to next buffer position if we end up in a string or image. When moving backward, count rows moved over when moving to start of current row in case row starts in middle of a string or image. Also move further backward if we end up in a string or image. (try_cursor_movement): If overlay string spans multiple lines, move backward to set cursor on start of an overlay string. (cursor_row_p): Row is ok if cursor is at newline from string, but string starts on this line (so we always position cursor at start of string). * indent.c (Fvertical_motion): If start position is on an image, don't move back if we move too far (that's almost certain to happen). * xdisp.c (cursor_row_fully_visible_p): Allow partially visible row in minibuffer windows. (try_window): Don't check margins in minibuffer windows. 2005-07-13 YAMAMOTO Mitsuharu * macterm.c: Don't include stdlib.h or composite.h. (x_use_underline_position_properties, last_mouse_press_frame) (x_noop_count, Qvendor_specific_keysyms): Remove unused variables. (syms_of_macterm, mac_initialize): Don't initialize them. (waiting_for_input, initial_argv, initial_argc) (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll) (set_frame_menubar, path_from_vol_dir_name): Remove externs. (extra_keyboard_modifiers): Fix type in extern. (x_window_to_frame, x_window_to_scroll_bar): Remove declarations. (x_scroll_bar_report_motion): Add argument types to declaration. (mac_compute_glyph_string_overhangs): Add declaration. (disable_mouse_highlight): Remove unused variable. [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click) (x_scroll_bar_handle_press, x_scroll_bar_handle_release) (x_scroll_bar_handle_drag): Remove argument `timestamp'. All callers changed. [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set timestamp. [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise. (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar only when its width is less than the height. (XTredeem_scroll_bar): Sync with xterm.c. (font_name_table, font_name_table_size, font_name_count): Make static. (drag_and_drop_file_list): Remove variable. Previous use is now local to function. (do_ae_open_documents): Move DRAG_N_DROP event construction part from XTread_socket. (XTread_socket): Consolidate setting of event timestamp. Move DRAG_N_DROP event construction part to do_ae_open_documents. Support extra_keyboard_modifiers. * xfaces.c (try_font_list) [MAC_OS]: Try font family name beginning with that for ASCII. 2005-07-13 Stefan Monnier * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars. (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold. (syms_of_alloc): Declare gc-cons-percentage. * eval.c (Feval, Ffuncall): * keyboard.c (read_char): * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold. * lisp.h (gc_cons_combined_threshold): Declare. 2005-07-12 Kim F. Storm * coding.c (Qprocess_argument): * coding.h (Qprocess_argument): Remove unused var. * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP. 2005-07-12 YAMAMOTO Mitsuharu * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and Endian.h. [!MAC_OSX] (fchmod, fchown): New functions. (mac_get_code_from_arg): Don't accept Lisp integer as argument. Use SBYTES and EndianU32_BtoN. (mac_get_object_from_code): Return 4 byte string even if argument is 0. Use make_unibyte_string and EndianU32_NtoB. (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator) (Fmac_set_file_type): Fix documents and argument declarations. Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic. 2005-07-11 Stefan Monnier * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM). 2005-07-11 Jan Djärv * xfaces.c (x_update_menu_appearance): Use fontSet resource for Lucid if X_I18N, font otherwise. 2005-07-10 Steven Tamm * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add. (Fmac_set_file_type, Fmac_set_file_creator): Add. (mac_get_object_from_code, mac_get_code_from_arg): Add. 2005-07-10 Richard M. Stallman * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars. (syms_of_lread): Set up eval-buffer-list. (Feval_buffer, Feval_region): Bind eval-buffer-list. 2005-07-08 Richard M. Stallman * eval.c (Fdefvar): Allow defvaring a constant to itself quoted. 2005-07-08 Kim F. Storm * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here. (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector. 2005-07-07 Kim F. Storm * window.c (Frecenter): Fix last change (set iarg before use). 2005-07-06 Richard M. Stallman * window.c (Frecenter): When arg is inside the scroll margin, move it out of the margin. 2005-07-06 Jason Rumney * w32console.c (initialize_w32_display): Detect when the console dimensions are insane, and default to 80x25 instead. (w32_use_full_screen_buffer): Default to nil. 2005-07-06 YAMAMOTO Mitsuharu * macterm.c (mac_draw_vertical_window_border): Use foreground of VERTICAL_BORDER_FACE_ID for vertical border line. (mac_encode_char): Call check_ccl_update in advance. (mac_to_x_fontname, x_font_name_to_mac_font_name) (init_font_name_table, mac_do_list_fonts, XLoadQueryFont): Don't assume that font family length is less than 32. (x_compute_min_glyph_bounds): Make static. (x_load_font): Never set fonts_changed_p to zero. 2005-07-04 Lute Kamstra * Update FSF's address in GPL notices. 2005-07-03 Richard M. Stallman * xdisp.c (try_window): Fix previous change in how it handles a partially-visible line or one only partly past the margin. * window.c (window_scroll_pixel_based): Take account of this_scroll_margin when finding point when scrolling up. 2005-06-29 Ralf Angeli * window.c (window_scroll_pixel_based, window_scroll_line_based): Handle `scroll-preserve-screen-position' non-nil, non-t specially. (syms_of_window) : Doc fix. 2005-07-02 Juri Linkov * w32term.c (w32_draw_vertical_window_border): Use foreground of VERTICAL_BORDER_FACE_ID for vertical border line. 2005-07-02 Eli Zaretskii * fileio.c (Fcopy_file): Rearrange the code that calls fchown and fchmod so that chmod doesn't get called on MSDOS before the file is closed. 2005-07-01 Jason Rumney * w32term.c (cleartype_active): New flag for enabling sub-pixel workaround. (w32_initialize): Initialize it. (w32_native_per_char_metric): Allow a couple of extra pixels when Cleartype is active. * w32term.c (w32_initialize): Move check for screen reader here from syms_of_w32term. 2005-06-30 Jan Djärv * xterm.c (handle_one_xevent): bzero compose_status when nbytes is not zero. 2005-07-01 Masatake YAMATO * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'. 2005-06-30 Juri Linkov * xdisp.c (x_draw_vertical_border): If left fringe is not present decrease x coord of vertical border by 1 pixel to not occupy text area of the right window. * xterm.c (x_draw_vertical_window_border): Use foreground of VERTICAL_BORDER_FACE_ID for vertical border line. * term.c (turn_on_face): In standout mode apply specified fg to bg, and specified bg to fg (this makes the logic of inversion on terminal consistent with X). 2005-06-29 Juanma Barranquero * eval.c (user_variable_p_eh): New function. (Fuser_variable_p): Use it. Clarify docstring. Return t for aliases of user options, nil for alias loops. 2005-06-27 Richard M. Stallman * eval.c (Fdefvar): Improve error message. 2005-06-27 YAMAMOTO Mitsuharu * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last change. 2005-06-27 Juanma Barranquero * eval.c (Fdefvar): Don't try to set constant symbols. 2005-06-25 Richard M. Stallman * macfns.c (Fx_show_tip): Pass new arg to try_window. * w32fns.c (Fx_show_tip): Pass new arg to try_window. * xfns.c (Fx_show_tip): Pass new arg to try_window. * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed. (redisplay_window): Handle try_window reporting point in scroll margin. * dispextern.h (try_window): Declare new arg. * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID. Use fchmod to copy the file modes. (Frename_file): Don't copy UID and GID here; instead, specify t for PRESERVE_UID_GID when calling Fcopy_file. * eval.c (call_debugger): Take full care of extending stack limits to make space for the debugger, and restore the change afterward. Bind debug-on-error to nil. (restore_stack_limits): New subroutine. (Fsignal): Extend specpdl bound along with eval depth bound, for calling edebug. Don't do either one, for calling debugger. (find_handler_clause): Don't bind debug-on-error here. Don't unbind anything either. Temporarily advance max_specpdl_size for calling internal_with_output_to_temp_buffer. (grow_specpdl): Don't alter max_specpdl_size before signaling an error. (syms_of_eval) : Doc fix. * lread.c (read1): 0.0e+NaN should make a "positive" NaN. 2005-06-24 Eli Zaretskii * fileio.c (Frename_file): Undo last change: no need to ifdef away chown on DOS_NT platforms. * w32.c (sys_chown): New function. * s/ms-w32.h (chown): New; define to sys_chown. 2005-06-24 Juanma Barranquero * xdisp.c (syms_of_xdisp) : Doc fix. (syms_of_xdisp) : Doc fix. * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows. 2005-06-23 Richard M. Stallman * xdisp.c (get_next_display_element): Finish reversing the tests of Vnobreak_char_display. * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape. All uses changed. (Qnobreak_space): Rename from Qno_break_space. All uses changed. (syms_of_xdisp): Define nobreak-char-display and nobreak-space. * fileio.c (Frename_file): Preserve owner and group, if possible, when copying. 2005-06-23 Juanma Barranquero * abbrev.c (Funexpand_abbrev): * category.c (Fmake_category_set): * dispnew.c (Fsleep_for, Fsit_for): * editfns.c (Fsubst_char_in_region): * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall): * frame.c (make_frame_without_minibuffer): * lread.c (read_vector): * macfns.c (check_x_frame): * process.c (Fstop_process, Fcontinue_process): * search.c (Freplace_match): * syntax.c (Fstring_to_syntax): * w32fns.c (check_x_frame, check_x_display_info): * xfaces.c (x_supports_face_attributes_p): * xselect.c (Fx_own_selection_internal): Follow error conventions. * image.c (fn_png_init_io): Don't define it. (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io. (png_read_from_file): New function, based on png_read_from_memory. (png_load): Use it, instead of fn_png_init_io. 2005-06-23 Kim F. Storm * search.c (Fmatch_data): Remove evaporate option. (Fset_match_data): Do not mention evaporate option in doc string. Add commentary explaining evaporate arg (for internal use only). (unwind_set_match_data): Add comment on evaporate use. 2005-06-22 Miles Bader * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'. (realize_basic_faces, syms_of_xfaces): Update references to it. * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID' to `VERTICAL_BORDER_FACE_ID'. * dispnew.c (build_frame_matrix_from_leaf_window): Update references. 2005-06-21 Juri Linkov * dispextern.h: Add extern Qframe_set_background_mode. * xfaces.c: Rename obsolete function Qframe_update_face_colors to Qframe_set_background_mode. * frame.c (Fmodify_frame_parameters): Call frame-set-background-mode after changing the background color on non-window non-dos branch. 2005-06-21 Juanma Barranquero * fns.c (Fchar_table_range): * process.c (Fmake_network_process): Fix spellings. 2005-06-20 Kim F. Storm * fns.c (Fsort): Doc fix. 2005-06-20 Miles Bader * xfaces.c (Qvertical_divider): New variable. (realize_basic_faces): Realize its face. (syms_of_xfaces): Initialize it. * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'. * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical window-separator on ttys using `vertical-divider' face by default. 2005-06-17 Richard M. Stallman * xdisp.c (get_next_display_element): Reverse test of Vshow_nonbreak_escape. * term.c (produce_special_glyphs): Use spec_glyph_lookup_face. (Ftty_no_underline): New function. (syms_of_term): defsubr it. * keyboard.c (read_char): Call restore_getcjmp after jump occurs. * dispnew.c (spec_glyph_lookup_face): New function. (build_frame_matrix_from_leaf_window): Use it. * dispextern.h (spec_glyph_lookup_face): Add declaration. * buffer.c (syms_of_buffer) : Doc fix. 2005-06-12 Richard M. Stallman * keyboard.c (read_char): After catching a longjmp, call restore_getcjmp. 2005-06-17 Juanma Barranquero * xselect.c (lisp_data_to_selection_data): Fix spelling. 2005-06-15 YAMAMOTO Mitsuharu * macterm.c (mac_compute_glyph_string_overhangs): Don't set overhangs unless the given glyph type is noncomposite CHAR_GLYPH. [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down events. (XTread_socket): Don't pass keyboard events with the option modifier to the system when Vmac_command_key_is_meta is nil or Vmac_option_modifier is non-nil. [USE_CARBON_EVENTS] (read_socket_inev): New variable. [USE_CARBON_EVENTS] (init_command_handler): Fix argument. [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event handler function. (install_window_handler) [USE_CARBON_EVENTS]: Install it. (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event handler part to mac_handle_mouse_event. 2005-06-14 Juanma Barranquero * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to NEW-ALIAS and BASE-VARIABLE, respectively. 2005-06-13 Stefan Monnier * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup. (get_phys_cursor_geometry, format_mode_line_unwind_data) (get_line_height_property, x_produce_glyphs): Remove unused vars. * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'. 2005-06-13 Eli Zaretskii * w32term.c (x_use_underline_position_properties): New variable. (x_draw_glyph_string): Remind in a comment to change doc string of x-use-underline-position-properties if/when underline positioning is implemented. (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties, and initialize it to nil. 2005-06-12 Jason Rumney * w32fns.c (NEWOPENFILENAME): New struct. (Fx_file_dialog): Use it to trick the system into giving us up to date dialogs on systems that are documented to support it. Do not set OFN_FILEMUSTEXIST flag if looking for a directory. 2005-06-12 Eli Zaretskii * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does. 2005-06-11 Eli Zaretskii * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg to CreateDIBSection to avoid a compiler warning. (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler warning. (png_load): Cast return values of fn_png_create_read_struct and fn_png_create_info_struct, to avoid compiler warnings on W32. Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent to avoid compiler warnings. (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler warning. (tiff_load): Cast return values of fn_TIFFOpen and fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler warning. (gif_load): Cast return values of fn_DGifOpenFileName and fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler warning. (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef before redefining. * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in the call to CreateDIBSection, to avoid a compiler warning. 2005-06-11 Jason Rumney * w32fns.c (Fx_file_dialog): Unblock input before falling back to minibuffer. * macfns.c (Fx_file_dialog): Likewise. 2005-06-10 Eli Zaretskii * makefile.w32-in ($(TEMACS)): Depend on addsection.exe. 2005-06-10 Juanma Barranquero * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]: * w32fns.c (syms_of_w32fns): Fix spellings. 2005-06-10 Eli Zaretskii * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument `verbose'; print diagnostic messages only if it is non-zero. All callers changed to pass a zero value unless DEBUG_DUMP is defined in the environment. (copy_executable_and_dump_data): Print section names with %.8s. 2005-06-10 Masatake YAMATO * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face when mouse_face is not given. 2005-06-09 Luc Teirlinck * window.c (Fselect_window): Adapt call to Fselect_frame. * lisp.h: Update EXFUN of Fselect_frame. * keyboard.c (command_loop_1): Adapt call to Fselect_frame. * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg no_enter. (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame): Adapt to above change. 2005-06-10 Juanma Barranquero * fns.c (Fmemq, Fmaphash): Doc fixes. 2005-06-09 Juanma Barranquero * xfaces.c (Fdisplay_supports_face_attributes_p): Fix typo in docstring. 2005-06-08 Steven Tamm * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section used by gcc4 on intel mac. 2005-06-09 Kim F. Storm * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers in REUSE list if non-nil; free them if equal to evaporate. (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST if non-nil; free them if equal to evaporate. Use XCAR/XCDR. (restore_search_regs): Rename from restore_match_data. Uses changed. (unwind_set_match_data): New function. (record_unwind_save_match_data): New function like save-match-data. * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN. (record_unwind_save_match_data): Add prototype. (restore_search_regs): Rename from restore_match_data. * composite.c (compose_chars_in_text): * eval.c (do_autoload): * macmenu.c (set_frame_menubar): * process.c (read_process_output, exec_sentinel): * xmenu.c (set_frame_menubar): * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar): * w32menu.c (set_frame_menubar): Use record_unwind_save_match_data. 2005-06-08 Richard M. Stallman * xdisp.c (get_next_display_element): Alter previous change: Distinguish Vshow_nonbreak_escape = t or not t. For t, use escape_glyph once again, as before previous change. Use space or hyphen for display, instead of the non-ASCII char. (syms_of_xdisp) : Doc fix. * process.c (Fstart_process): Don't touch command_channel_p slot. * process.h (struct process): Delete command_channel_p. 2005-06-07 Masatake YAMATO * xdisp.c (note_mode_line_or_margin_highlight): Check the overlapping of re-rendering area to avoid flickering. (note_mouse_highlight): Call clear_mouse_face if PART is not ON_MODE_LINE nor ON_HEADER_LINE. 2005-06-07 Kim F. Storm * process.c: Improve commentary for adaptive read buffering. 2005-06-06 Stefan Monnier * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars if available. 2005-06-06 Jan Djärv * macmenu.c (menu_quit_handler, install_menu_quit_handler): New functions for popping down menus on C-g. (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler. * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode non-static. * config.in: Add HAVE_CANCELMENUTRACKING. 2005-06-06 Eli Zaretskii * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros. * unexw32.c (RVA_TO_PTR): Move here from w32heap.h. * w32proc.c (RVA_TO_PTR): New macro. * w32heap.c (RVA_TO_PTR): No need to #undef now. * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)): Depend on w32heap.h. 2005-06-06 Luc Teirlinck * keyboard.c (command_loop_1): Update Vthis_original_command. 2005-06-06 Richard M. Stallman * xmenu.c (popup_get_selection): Undo previous change. 2005-06-06 Juri Linkov * xdisp.c (Qno_break_space): New variable. (syms_of_xdisp): Initialize it. (get_next_display_element): Add no-break space and soft hyphen codes for iso8859-2 and iso8859-5. Don't add `\' for them. Use `no-break-space' face for no-break spaces. 2005-06-06 Jan Djärv * window.c (delete_window): Handle the case where a h/vchild has a h/vchild. 2005-06-05 Eli Zaretskii * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the call to pfn_setsockopt, cast optval to `const char *'. 2005-06-04 Eli Zaretskii * w32.c (gettimeofday): Use struct _timeb, not struct timeb. (open_unc_volume): Cast return value of map_w32_filename, to avoid compiler warnings. * s/ms-w32.h (fileno): Don't define if already defined. * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk. * makefile.w32-in (DOC): Define to point to the generated DOC-X. 2005-06-04 Richard M. Stallman * xmenu.c (popup_get_selection): Click not in menu deactivates menu. 2005-06-04 Jan Djärv * macmenu.c (cleanup_popup_menu): New function. (Fx_popup_menu): Unwind protect cleanup_popup_menu in case mac_menu_show Quit:s. (mac_menu_show): Quit on cancel if not popped up on click (i.e. a dialog). 2005-06-04 Kim F. Storm * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT. * callproc.c (Fcall_process): Don't use alloca to gradually increase size of buf, as it effectively uses twice the necessary space on the stack. Instead, pre-allocate buf of full size, and gradually increase the read size. * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input. * eval.c (unbind_to): Preserve value of Vquit_flag. * xterm.c (handle_one_xevent): Also ignore mouse motion just before a button release event. 2005-06-03 Juanma Barranquero * xfaces.c (Finternal_lisp_face_equal_p): Really report on faces in a frame, if the argument FRAME is non-nil. Improve argument/docstring consistency. 2005-06-02 Kim F. Storm * xdisp.c (MODE_LINE_NOPROP_LEN): New macro. (x_consider_frame_title, Fformat_mode_line): Save offset into mode_line_noprop_buf rather than pointer, in case buffer is relocated. 2005-06-01 Kim F. Storm * fns.c (mapcar1): Maybe exit loop if original sequence was modified. 2005-06-01 YAMAMOTO Mitsuharu * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD resolution fields for scalable fonts to 0. * xfaces.c (build_scalable_font_name): Round pixel size to the nearest integer. 2005-06-01 Kim F. Storm * xdisp.c (display_mode_line): Support nested calls to redisplay and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY. 2005-05-31 Stefan Monnier * fileio.c (Finsert_file_contents): * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup. 2005-05-31 Kim F. Storm * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end) (mode_line_noprop_ptr): Rename from frame_title_*. (store_mode_line_noprop_char): Rename from store_frame_title_char. (store_mode_line_noprop): Rename from store_frame_title. (mode_line_target): New enum to specify current output target for mode line formatting. (display_mode_element): Test it rather than frame_title_ptr and mode_line_string_list to determine where output should go. (mode_line_proptrans_alist, mode_line_string_alist): Make static. (Vmode_line_unwind_vector): New variable. (format_mode_line_unwind_data, unwind_format_mode_line): New functions for unwind protection in mode line formatting. (x_consider_frame_title): Use them and new local var 'title_start' to support nested calls to format-mode-line and redisplay. Set mode_line_target to MODE_LINE_TITLE. (Fformat_mode_line): Use them and new local var 'string_start' to support nested calls to format-mode-line and redisplay. Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING. Don't trim trailing dashes. (decode_mode_spec): Don't make infinite number of trailing dashes for MODE_LINE_NOPROP and MODE_LINE_STRING targets. (syms_of_xdisp): Initialize and staticpro mode_line_string_face, mode_line_string_face_prop, and Vmode_line_unwind_vector. (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf. Initialize mode_line_target to MODE_LINE_DISPLAY. 2005-05-29 Richard M. Stallman * buffer.c (Fbuffer_local_value): Call indirect_variable. 2005-05-28 Masatake YAMATO * xdisp.c (note_mode_line_or_margin_highlight): Change the pointer to a hand cursor when hovering over a mouse-face. 2005-05-27 Kenichi Handa * xterm.c (x_encode_char): Call check_ccl_update in advance. * ccl.c: Now an element of Vccl_program_table is a vector of length 4, not 3. (ccl_get_compiled_code): New arg idx. Caller changed. Adjust for the change of Vccl_program_table. (setup_ccl_program): Adjust for the change of Vccl_program_table. (check_ccl_update): New function. (Fregister_ccl_program): Use ASET to set an element of a vector. Adjusted for the change of Vccl_program_table. * ccl.h (struct ccl_program): New member idx. (check_ccl_update): Extern it. 2005-05-27 Juanma Barranquero * image.c (Vimage_library_alist): Move from image.el. (syms_of_image): Defvar it. (lookup_image_type): Use it. * buffer.c (Fbuffer_local_value): Make argument name match its use in docstring. 2005-05-26 Juanma Barranquero * keyboard.c (Frecursive_edit): Fix typo in docstring. (Fposn_at_x_y): Make argument name match its use in docstring. 2005-05-26 Lute Kamstra * eval.c (Frun_hooks): Mention run-mode-hooks in docstring. 2005-05-24 Masatake YAMATO * xdisp.c (note_mode_line_or_margin_highlight): Use b and e as loop sentinels. 2005-05-24 Nick Roberts * xmenu.c (Fx_popup_dialog): Add a third boolean argument to select frame title ("Question"/"Information"). (xdialog_show): Use it. * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c. * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c. * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with a third argument (Qnil). * lisp.h: x-popup-dialog can have three arguments. * editfns.c (Fmessage_box): Use "Information" for frame title. 2005-05-23 Thien-Thi Nguyen * termcap.c [VMS]: Include . 2005-05-23 Masatake YAMATO * xdisp.c (note_mode_line_or_margin_highlight): Add code for mouse-face. Change the type of the first argument from `window' to `Lisp_Object'. (note_mouse_highlight): Call note_mode_line_or_margin_highlight with window instead of w. 2005-05-22 Andreas Schwab * process.c (send_process): Move misplaced volatile. 2005-05-21 Richard M. Stallman * xdisp.c (display_mode_element): If we're processing a list and padding is specified, put it after the last element. 2005-05-21 Eli Zaretskii * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support "superroot" on DOS_NT systems. 2005-05-21 David Hunter (tiny change) * process.c (send_process): Restore the SIGPIPE handler if we catch a SIGPIPE. 2005-05-20 Juanma Barranquero * image.c (lookup_image, png_read_from_memory): Remove hacks (and misleading comments). (DEF_IMGLIB_FN): Use C calling convention for image libraries. 2005-05-20 KOBAYASHI Yasuhiro * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Correct the right value. 2005-05-19 Nick Roberts * keyboard.c (syms_of_keyboard): Remove Lisp variables post-command-idle-hook and post-command-idle-delay. (command_loop_1): Don't try to execute post-command-idle-hook. 2005-05-16 Kim F. Storm * xdisp.c (handle_display_prop): Handle empty replacement. (handle_single_display_spec): Return -1 for empty replacement. * keyboard.c (adjust_point_for_property): Skip empty overlay string. * .gdbinit (pitx): Print more info about iterator. 2005-05-16 Andreas Schwab * unexmacosx.c (unexec_realloc): Move declarations before statements. 2005-05-14 Richard M. Stallman * xdisp.c (message3): Call cancel_echoing. * alloc.c (Fmemory_full_p): New function. (syms_of_alloc): defsubr it. * process.c (send_process_trap): Unblock SIGPIPE. (send_process): Reset SIGPIPE handler before reporting error. 2005-05-14 Nick Roberts * emacs.c (syms_of_emacs): Fix doc string for system-type. 2005-05-13 Richard M. Stallman * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler. (Finsert_file_contents): If we read 0 bytes from a special file, unlock the visited file if we locked it. (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes. (Ffile_exists_p, Ffile_symlink_p): Doc fixes. 2005-05-13 YAMAMOTO Mitsuharu * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init. * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]: Regard toolkit scroll bar thumb drag events as squeezable and prevent redisplay from being paused by them. * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h. [!MAC_OSX] (target_ticks): Remove variable. [!MAC_OSX] (check_alarm, pause, index): Remove functions. [!MAC_OSX && __MRC__] (sys_strftime): Likewise. [!MAC_OSX] (select): If fd 0 is not set in rfds and some input event occurs before timeout, behave as if the function were interrupted. [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM handling using Time Manager routines. [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask): New variables. [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer) (setitimer): New functions. * macfns.c, macmenu.c: Don't include signal.h. * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds): Rename from get_control_part_bound. All callers changed. (x_scroll_bar_clear): New function. (x_clear_frame): Use it. (XTset_vertical_scroll_bar): Don't call Draw1Control. (x_scroll_bar_handle_click): Change type of second argument from int to ControlPartCode. (check_alarm): Remove declaration. (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it. (XTread_socket): Use ControlPartCode instead of SInt16. 2005-05-13 Nozomu Ando * unexmacosx.c: Include assert.h. (MACOSX_MALLOC_MULT16): New define. [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether ptr is in unexec regions by checking it is multiple of 16. (unexec_malloc_header_t): New typedef. (unexec_malloc, unexec_realloc, unexec_free): Store and use allocated size information in unexec_malloc_header. 2005-05-10 Richard M. Stallman * xterm.c (noinclude): Add #undef. * image.c, xfns.c, xmenu.c: Don't include signal.h. 2005-05-09 Juanma Barranquero * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file) (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p): Doc fixes. * dired.c (Ffile_name_completion): Make argument name match its use in docstring. 2005-05-08 Luc Teirlinck * eval.c (Fdefvaralias): Remove any pre-existing variable-documentation property of the alias. 2005-05-07 Thien-Thi Nguyen * xfns.c (start_hourglass): Do nothing when running on a tty. 2005-05-07 Juanma Barranquero * fns.c (Fchar_table_range): Fix typos in docstring. 2005-05-06 Stefan Monnier * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup. 2005-05-06 Eli Zaretskii * lread.c (Flocate_file_internal): Doc fix. * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc. 2005-05-06 YAMAMOTO Mitsuharu * macselect.c (x_own_selection): Accept Lisp string as result of selection converter function. (x_clear_frame_selections): Don't call x-lost-selection-functions if Emacs is not owner of the selection. (Vmac_services_selection): Put variable and initialization in #ifdef MAC_OSX. (syms_of_macselect) [MAC_OSX]: Set default value of Vmac_services_selection to PRIMARY. * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable. (mac_handle_tool_bar_click): Remove unused function and declaration. [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback) (install_scroll_bar_timer, set_scroll_bar_timer) (control_part_code_to_scroll_bar_part, construct_scroll_bar_click) (get_control_part_bound, x_scroll_bar_handle_press) (x_scroll_bar_handle_release, x_scroll_bar_handle_drag) (x_set_toolkit_scroll_bar_thumb): New functions and declarations. [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer) (scroll_bar_timer_event_posted_p): New variables. [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY) (SCROLL_BAR_CONTINUOUS_DELAY): New macros. (x_scroll_bar_create): Set control reference with NewControl. (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Initialize track_top and track_height to nil. (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS. (XTset_vertical_scroll_bar): Don't make space between scroll bar and associated window. (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width from window config. (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Set track_top and track_height to nil when scroll bar size is changed. Recalculate them if they are nil. (XTread_socket) [MAC_OSX]: Use control kind to determine if the clicked control is a scroll bar. (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar event handler functions. Don't add modifiers to scroll bar click events. Call scroll bar release handler when window is deactivated. (mac_initialize): Remove unused code for X toolkit. (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]: Initialize Vx_toolkit_scroll_bars to nil. * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: New members track_top and track_height. * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine init_process when including sys/select.h. 2005-05-05 Luc Teirlinck * eval.c (Fdefvaralias): Doc fix. * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes. 2005-05-05 Kim F. Storm * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows default value. (syms_of_buffer): Add default-cursor-in-non-selected-windows. Fix type of cursor-in-non-selected-windows. 2005-05-03 Jan Djärv * mac.c: #undef init_process so not to conflict with system headers. 2005-05-02 Richard M. Stallman * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows. * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot. * xdisp.c (Vcursor_in_non_selected_windows) (Qcursor_in_non_selected_windows): Vars deleted. (syms_of_xdisp): Don't initialize them. (get_window_cursor_type): Use cursor_in_non_selected_windows buffer slot. 2005-05-02 Kim F. Storm * macros.c (executing_kbd_macro_index): Rename from executing_macro_index. All uses changed. (executing_kbd_macro_iterations): Rename from executing_macro_iterations. All uses changed. (executing_kbd_macro): Rename from executing_macro. All uses changed. (syms_of_macros): Rename Lisp var executing-macro-index to executing-kbd-macro-index. * xdisp.c (move_it_in_display_line_to): Fix last change. 2005-05-01 Luc Teirlinck * xmenu.c (Fx_popup_menu): Doc fix. * charset.c (syms_of_charset): Delete defsubr for Schars_in_region. 2005-05-02 Jason Rumney * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes. 2005-05-02 Nozomu Ando * sysselect.h: Fix typo. 2005-05-02 Nick Roberts * charset.c (Fchars_in_region): Remove as obsolete. 2005-05-01 Kim F. Storm * xdisp.c (move_it_in_display_line_to): Stop if we move beyond TO_CHARPOS. This may happen if last glyphs was an image or stretch glyph. 2005-05-01 Luc Teirlinck * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro. 2005-05-01 Richard M. Stallman * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show): If user cancels the menu, quit unless FOR_CLICK. * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro. All uses changed. (syms_of_macros): Define only executing-kbd-macro, not executing-macro. * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro. * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro. * commands.h (Vexecuting_kbd_macro): Likewise. 2005-05-01 Thien-Thi Nguyen * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel. 2005-04-30 Richard M. Stallman * fileio.c (Ffind_file_name_handler): Handle the `operations' property of the file name handler. (Qoperations): New variable. (syms_of_fileio): Initialize and staticpro it. * xdisp.c (set_message_1): Delete xassert. 2005-04-29 YAMAMOTO Mitsuharu * mac.c: Don't include time.h. Include sysselect.h after systime.h. * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt. * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime before/after including Carbon.h if there is a working mktime. 2005-04-28 Kim F. Storm * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed. Fix cyclic alias check. If alias loop is detected, signal circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P. 2005-04-28 Lute Kamstra * eval.c (do_autoload): Record only autoloads in the autoload property of symbols. 2005-04-28 Nick Roberts * emacs.c (USAGE1): Add --basic-display and --quick options. 2005-04-27 Kim F. Storm * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection. 2005-04-26 Richard M. Stallman * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes. (syms_of_window): Doc fixes. * indent.c (Fvertical_motion): Undo previous change. 2005-04-26 Kenichi Handa * fns.c (char_table_range): New function. (Fchar_table_range): Signal an error if characters in the range have inconsistent values. Don't check the parent. 2005-04-25 Kenichi Handa * fontset.c (fontset_set): Fix previous change. 2005-04-24 Richard M. Stallman * indent.c (Fvertical_motion): Bind fontification-functions to nil. 2005-04-24 Eli Zaretskii * regex.c (re_search_2, re_match_2_internal): Convert second arg of RE_TRANSLATE to int, to shut up GCC warnings. * fileio.c (Fcopy_file): Doc fix. [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and not needed. 2005-04-24 YAMAMOTO Mitsuharu * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o. (SOME_MACHINE_OBJECTS): Likewise. (mac.o): Depend on ccl.h. (macselect.o): New target. * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]: Call syms_of_macselect. * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections. * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h. (QCLIPBOARD): Remove variable. (syms_of_mac): Don't initialize it. (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p): Remove functions. (syms_of_mac): Don't defsubr them. [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC) (QHFS_plus_D, QHFS_plus_C): New variables. (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them. [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp) (cfstring_create_normalized): New functions. [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise. (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it. * macterm.c (handling_window_update, terminate_flag): Remove variables. (do_window_update, do_ae_quit_application, XTread_socket): Don't use them. (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define. [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event) (init_service_handler): Move to macselect.c. Remove declarations. [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern. (Qapplication, Qabout): New variables. (syms_of_mac): Initialize them. [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste) (Qperform): New variables. (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them. (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu. (do_menu_choice): Unhighlight menu bar also when menu_id is 0. (mac_store_application_menu_event, init_menu_bar): New functions. [USE_CARBON_EVENTS] (mac_handle_command_event) (init_command_handler): New functions. (mac_handle_window_event): Return noErr on window update event. (do_ae_quit_application): Call mac_store_application_menu_event. (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler and init_menu_bar. * macterm.h (x_clear_frame_selections): Add extern. * macselect.c: New file for selection processing on Mac OS. 2005-04-23 Richard M. Stallman * fileio.c (Fcopy_file): New arg MUSTBENEW. (Frename_file): Pass new arg to Fcopy_file. * window.c (window_size_fixed): Variable deleted. (syms_of_window): Initialize window-size-fixed to nil. But don't DEFVAR window_size_fixed. 2005-04-23 Andreas Schwab * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define. (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to use lib64 instead of lib. (_LP64) [_ARCH_PPC64]: Define if not defined. 2005-04-23 David Hunter (tiny change) * s/ms-w32.h (HAVE_PWD_H): Define. 2005-04-22 Kenichi Handa * fns.c (copy_sub_char_table): Explicitly copy the default value of the sub-chartable. * fontset.c (fontset_set): When a sub-chartable is created, explicitly sets the defalt value. 2005-04-22 Kim F. Storm * fns.c (Fplist_get): Replace by Fsafe_plist_get. (Fsafe_plist_get): Rename to Fplist_get. (Fsafe_get): Remove, as Fget now uses safe Fplist_get. (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get. * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN. * xdisp.c (store_mode_line_string, produce_stretch_glyph) (note_mode_line_or_margin_highlight, note_mouse_highlight): Use Fplist_get instead of Fsafe_plist_get. * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get. 2005-04-21 Miles Bader * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field. 2005-04-20 Thien-Thi Nguyen * sysdep.c: Remove reference to defunct vms-pwd.h. * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS. * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise. * config.in: Regenerate. 2005-04-20 Kenichi Handa * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro. (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro. (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro. * alloc.c (make_sub_char_table): Argument changed to initial value of the slots. * data.c (Faref): Handle special slots used as default values of ascii, eight-bit-control, eight-bit-control. Don't ignore a default value set for a group of characters. (Faset): Signal an error if IDXVAL is not a valid character code. Make a sub-chartable with correct initial value. * fns.c (Fset_char_table_range): Don't set slots used as default values for ascii, eight-bit-control, eight-bit-graphic. Don't call Faref with charset-id. (Fset_char_table_default): Document how to treat normal character argument. Handle special slots used as default values of ascii, eight-bit-control, eight-bit-control. Make a sub chartable if necessary. 2005-04-20 Kenichi Handa * search.c (boyer_moore): Fix previous change. 2005-04-19 Kim F. Storm * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default face unless last visible char and first invisible char have the same face. Also use default face if saved_face_id is undefined. 2005-04-19 YAMAMOTO Mitsuharu * macgui.h (MacFontStruct): Remove member `fontname'. Add member `full_name'. [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for mac_scriptcode member. * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables. (syms_of_mac): Don't initialize them. (Vmac_charset_info_alist): New variable. (syms_of_mac): Defvar it. (create_text_encoding_info_alist): New function. (decode_mac_font_name, mac_to_x_fontname) (x_font_name_to_mac_font_name, init_font_name_table): Don't hard code the correspondence among XLFD charsets, Mac script codes, and Emacs coding systems. Use Vmac_charset_info_alist and result of create_text_encoding_info_alist instead. (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager routines also on Mac OS Classic. (init_font_name_table) [!TARGET_API_MAC_CARBON]: Use add_font_name_table_entry. (mac_do_list_fonts): Regard 0 in XLFD scalable fields as specified. Derive unspecified scalable fields from specified one. (x_list_fonts): Consider Valternate_fontname_alist. (kDefaultFontSize): Change value from 9 to 12. (XLoadQueryFont): Get decoded font family, font face, and charset from x_font_name_to_mac_font_name. Set full name of loaded font. (mac_unload_font): Free `full_name' member. (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns NULL. Copy full_name member of struct MacFontStruct to that of struct font_info. 2005-04-19 Kim F. Storm * xdisp.c (handle_stop): Set saved_face_id to current face if selective_display_ellipsis_p so ellipsis will be shown in same face as preceding text. (setup_for_ellipsis): Don't set saved_face_id here. (next_element_from_display_vector): Default to saved_face_id. * fns.c (Fsafe_get): New function. (syms_of_fns): Defsubr it. * lisp.h (Fsafe_get): EXFUN it. * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay loops in case of bad face property lists. Limit number of face alias lookups to 10 (in case of face alias loops). 2005-04-18 Kim F. Storm * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap. It replaces the corresponding member from struct window, as a window may now show multiple overlay arrows. Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap. * dispnew.c (row_equal_p, update_window_line, scrolling_window): Compare overlay_arrow_bitmap than overlay_arrow_p members. * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row rather than from window. (update_window_fringes): Compare overlay_arrow_bitmap rather than overlay_arrow_p members. (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name if not default. * window.h (struct window): Remove member overlay_arrow_bitmap. * window.c (make_window): Don't initialize overlay_arrow_bitmap. * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg. Calls changed. Don't check for overlay-arrow-bitmap property here. (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left fringe is present, return Lisp integer for bitmap (or -1 for default). Fix value of overlay-arrow-bitmap property to be a symbol, use lookup_fringe_bitmap to parse it. (display_line): Change call to overlay_arrow_at_row. Store integer return value as overlay bitmap in row rather than window. Only show overlay arrow if row displays text, or if no other overlay arrow is seen in window (if overlay marker is at point-max). 2005-04-18 Thien-Thi Nguyen * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL. 2005-04-18 Lute Kamstra * lread.c (Vloads_in_progress): Static. * fns.c (Vloads_in_progress): Remove extern. (load_in_progress): Add extern. (Frequire): Use load_in_progress instead of Vloads_in_progress. 2005-04-18 Thien-Thi Nguyen * xmenu.c (Fx_popup_menu): Initialize error_name to NULL. 2005-04-18 YAMAMOTO Mitsuharu * macterm.c (XTread_socket): Don't beep on keyboard input even if no frame is visible. 2005-04-16 Dan Nicolaescu * term.c (struct keys): Add support for shifted keys. 2005-04-16 Richard M. Stallman * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case. (set_message): Call with_echo_area_buffer with WHICH = 0. (set_message_1): Erase the echo area buffer first thing. (echo_area_display): Don't clear echo_message_buffer. 2005-04-16 YAMAMOTO Mitsuharu * Makefile.in (mac.o): Depend on charset.h and coding.h. * mac.c: Include charset.h and coding.h. [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern. [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function. [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it. * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise. * image.c [MAC_OSX] (image_load_quartz2d): Likewise. * macterm.c (x_autoselect_window_p): Remove variable. (last_window): New variable. (XTreassert_line_highlight, x_change_line_highlight): Remove declarations. (mac_focus_changed, x_detect_focus_change): New functions and declarations. (XTextExtents16, front_emacs_window): Remove function. (mac_focus_frame): New function. (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket) (mac_check_for_quit_char): Use it instead of front_emacs_window. (x_scroll_bar_report_motion): Obtain window from control owner. (x_make_frame_invisible): Set window manager size hint. (do_mouse_moved): Remove function. (XTread_socket): Move its contents here. Generate select-window event on mouse movement if needed. Use x_detect_focus_change on activate/deactivate events. Don't deiconify frame or invalidate window rectangle when dnd items are dropped. Don't activate/deactivate root control. (frame_highlight, frame_unhighlight): Activate/deactivate root control here. (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p. * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]: New extern. 2005-04-15 Luc Teirlinck * Makefile.in: Define new macro TOOLTIP_SUPPORT. (lisp): Use it. (SOME_MACHINE_LISP): Add tooltip. 2005-04-14 YAMAMOTO Mitsuharu * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h. Don't include TextEncodingConverter.h. (mac_system_script_code, Vmac_system_locale): New variables. (syms_of_mac): Defvar them. (mac_get_system_locale): New function. * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use ENCODE_SYSTEM to encode title bar string. (x_create_tip_frame): Apply 2005-03-18 change for xfns.c. (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use CFStringGetSystemEncoding to get system default string encoding. * macterm.c [!TARGET_API_MAC_CARBON]: Don't include TextEncodingConverter.h. 2005-04-13 Steven Tamm * macterm.c (syms_of_macterm): Remove redundant definition of mac-pass-control-to-system. 2005-04-12 Stefan Monnier * window.c (Fset_window_configuration): Be careful when you choose among several possible points for the new_current_buffer. 2005-04-12 YAMAMOTO Mitsuharu * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call poll_for_input_1. Set interrupt_input_pending to 1 instead. (Qlanguage_change) [MAC_OS]: New variable. (syms_of_keyboard) [MAC_OS]: Intern and staticpro it. (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT. * macterm.c (mac_keyboard_text_encoding) (current_mac_keyboard_text_encoding): Remove variables. (XTread_socket): Store language-change event if keyboard script change is detected. Don't convert input to `mac_keyboard_text_encoding'. (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding. * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT. 2005-04-10 Richard M. Stallman * emacs.c (standard_args): Rename --bare-bones to --quick. Add -D aka --basic-display. * buffer.c (Fmake_indirect_buffer): Clear out some local variables. 2005-04-09 Richard M. Stallman * keymap.c (where_is_internal): Convert a string used as event type into "(any string)". * lread.c (Vloads_in_progress): Not static. * fns.c (Vloads_in_progress): Add extern. (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil. 2005-04-09 Thien-Thi Nguyen * dispnew.c (mirror_line_dance): Avoid crash if W2 is null. 2005-04-09 Lute Kamstra * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is within the accessible part of the buffer. 2005-04-09 Kim F. Storm * lread.c (readevalloop): Add args START and END as region in current buffer to read. Callers changed. When specified, narrow to this region only when reading, not during eval. Track next point to read from during eval. Also restore point to "real" buffer position before eval. (Feval_region): Don't save excursion and restriction here, and don't narrow to region. Just pass region to readevalloop. Note: Point is now preserved even when PRINTFLAG is nil. 2005-04-08 Kim F. Storm * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>". 2005-04-06 Kim F. Storm * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones. 2005-04-06 YAMAMOTO Mitsuharu * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'. (Fmac_get_preference): Doc fix. * macfns.c (Fx_create_frame, x_create_tip_frame): Add "fontset-mac" to fallback font/fontsets. 2005-04-04 Kim F. Storm * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc. * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry. Call it again after autoload. 2005-04-02 Jan Djärv * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling mallopt. * ralloc.c (r_alloc_init): Ditto. 2005-04-01 Kenichi Handa * lisp.h (Vascii_upcase_table, Vascii_canon_table) (Vascii_eqv_table): Extern them. * casetab.c (set_case_table): If standard is nonzero, setup Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table. * search.c (looking_at_1): Use current_buffer->case_canon_table, not DOWNCASE_TABLE. (string_match_1): Likewise. (fast_c_string_match_ignore_case): Use Vascii_canon_table, not Vascii_downcase_table. (fast_string_match_ignore_case): Likewise. (search_buffer): Fix checking of boyer-moore usability. (boyer_moore): Calculate translate_prev_byte1/2/3 in advance. No need of translating characters in PAT. Fix calculation of simple_translate. 2005-03-31 Stefan Monnier * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap. (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it. Use XtNtopShadowPixel and XtNbottomShadowPixel. (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't really work and that breaks with some versions of Xaw3d. 2005-03-31 Kenichi Handa * coding.c (syms_of_coding): Fix previous change. 2005-03-30 Stefan Monnier * fileio.c (search_embedded_absfilename): Fix last change. 2005-03-25 Kenichi Handa * coding.c (syms_of_coding): Suggest to use set-coding-category in the docstring of coding-category-list. 2005-03-31 Kim F. Storm * keyboard.c (Qmouse_fixup_help_message): New var. (syms_of_keyboard): Intern and staticpro it. (show_help_echo): Apply mouse-fixup-help-message to help string. 2005-03-30 Kim F. Storm * xdisp.c (display_line): Allow multiple overlay arrows in window. 2005-03-28 Stefan Monnier * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP. (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p. (Ffile_name_absolute_p): Use it. (search_embedded_absfilename): New fun, extracted from Fsubstitute_in_file_name. Use file_name_absolute_p. Free the pw data after use. (Fsubstitute_in_file_name): Use it. After cutting a prefix, re-check file-name-handler. 2005-03-26 Lennart Borgman * w32term.h (x_output): Add focus_state. * w32term.c (x_focus_changed, w32_detect_focus_change): New functions. (w32_read_socket) : Call w32_detect_focus_change. 2005-03-25 Stefan Monnier * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit): Use Fexit_minibuffer. (Fexit_minibuffer): Mark it as no-return, deactivate the mark. 2005-03-24 Stefan Monnier * dired.c (Ffile_attributes): Add a missing gcpro. * alloc.c (make_number): The arg can be bigger than `int'. * lisp.h (make_number): Make prototype more precise. * process.c, dired.c (Vfile_name_coding_system) (Vdefault_file_name_coding_system): * callproc.c (Vdoc_file_name, Vfile_name_coding_system) (Vdefault_file_name_coding_system): Remove unused declarations. 2005-03-24 Jan Djärv * xmenu.c (create_and_show_popup_menu): Just remove menu and return if it failed to pop up (Gnome "show pointer on ctrl" option makes menus fail to pop up). 2005-03-24 Stefan Monnier * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9. Just prepend a backslash without replacing the NBSP by an SPC. 2005-03-22 Kim F. Storm * xfaces.c (lookup_derived_face): Add arg SIGNAL_P. * dispextern.h (lookup_derived_face): Fix prototype. * msdos.c (XMenuActivate): Fix call to lookup_derived_face. * xdisp.c (handle_single_display_spec): Derive left-fringe and right-fringe face from fringe face. * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face): Derive face from fringe face. 2005-03-22 Jan Djärv * xrdb.c (x_load_resources): Undo previous change (2005-03-18). 2005-03-22 David Kastrup * textprop.c (Fnext_char_property_change) (Fprevious_char_property_change): Allow marker as limit. (Fnext_single_char_property_change) (Fprevious_single_char_property_change): Check that limit is a number in strings. (Fnext_single_char_property_change): Coerce position to integer. (Fprevious_single_char_property_change): Same here. 2005-03-21 Thien-Thi Nguyen * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined. 2005-03-19 Stefan Monnier * frame.c (Fignore_event): Remove. (syms_of_frame): Don't defsubr it. * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the redundant `ignore-event'. 2005-03-19 Eli Zaretskii * unexec.c (write_segment, unexec): Move these functions to avoid forward references (which cause errors with "gcc -gcoff"). 2005-03-18 Jan Djärv * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so that it doesn't become "tooltip". The specbind is enough. * xrdb.c (x_load_resources): Use different char *helv when I18N is present. 2005-03-17 Kenichi Handa * coding.c (syms_of_coding): Docstring of coding-category-list fixed. 2005-03-17 Stefan Monnier * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]: Use xic_create_fontsetname even for non-Motif menus. Don't forget to free the fontsetname. * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern. 2005-03-17 Richard M. Stallman * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM. * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file) (Fmake_symbolic_link): Use G to read the new file name. * callint.c (Finteractive): Document G option. (Fcall_interactively): Implement G option. * buffer.c (buffer_lisp_local_variables): New function, broken out from Fbuffer_local_variables. (clone_per_buffer_values): Use buffer_lisp_local_variables. 2005-03-17 Stefan Monnier * xfns.c (xic_create_fontsetname): Add `motif' argument. Always return a freshly allocated string. (xic_create_xfontset): Adjust call. * xfaces.c (x_update_menu_appearance) [USE_MOTIF]: Use xic_create_fontsetname to create a fontset so utf-8 locales work. (dump_realized_face): Fix warning. * emacs.c (Fkill_emacs): YAILOM. * frame.c (Fignore_event): Fix ancient obscure C-u handling bug. 2005-03-17 YAMAMOTO Mitsuharu * mac.c (HASHKEY_TERMINAL): Remove. (HASHKEY_MAX_NID): New macro. (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra argument. (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument. (xrm_create_database, xrm_q_put_resource) (xrm_merge_string_database, xrm_q_get_resource_1) (xrm_q_get_resource): Change resource database representation so that it may not use multiple hash tables for a single database. [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM. 2005-03-16 Stefan Monnier * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM. * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the locale-coding-system, as was already done for WINDOWSNT. * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta translation for chars in the 0-255 range. 2005-03-16 Lute Kamstra * floatfns.c (Ffloor): Doc fix. 2005-03-16 YAMAMOTO Mitsuharu * mac.c: Include macterm.h instead of directly including Carbon.h. [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata) (Qarray, Qdictionary): New variables. (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them. [TARGET_API_MAC_CARBON] (Qutf_8): Add extern. [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro. [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used in callback for CFDictionaryApplyFunction. [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp) (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp) (cfobject_desc_to_lisp, cfdictionary_add_to_list) (cfdictionary_puthash, cfproperty_list_to_lisp): New functions. [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function. (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it. (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro. (skip_white_space, parse_comment, parse_include_file) (parse_binding, parse_component, parse_resource_name, parse_value) (parse_resource_line, xrm_create_database, xrm_q_put_resource) (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource) (xrm_cfproperty_list_to_value, xrm_get_preference_database): New functions. * macfns.c (mac_get_rdb_resource): Remove function. (x_get_string_resource): Use xrm_get_resource. * macgui.h (XrmDatabase): Typedef to Lisp_Object. * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of name_list_element. (mac_make_rdb): Create resource database from preferences and argument string. (mac_term_init): Save resource database to cddr part of name_list_element. * macterm.h (xrm_merge_string_database, xrm_get_resource) (xrm_get_preference_database): Add externs. [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp) (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp) (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise. * process.c (init_process): Change `#ifdef DARWIN' to `#if defined (DARWIN) || defined (MAC_OSX)'. * s/darwin.h (DARWIN): Don't define. 2005-03-16 YAMAMOTO Mitsuharu * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): Remove unused variables. (syms_of_macfns): Don't initialize them. Likewise for Qface_set_after_frame_default. Defvar and initialize Vx_window_horizontal_drag_shape. (x_set_mouse_color): Change mouse pointer shape. (mac_window) [!MAC_OSX]: Create root control. (Fx_create_frame): Remove initializations of mouse pointer shapes. (hourglass_started): New function (from xfns.c). (start_hourglass, cancel_hourglass): Put function body in #ifdef MAC_OSX. (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress indicator for each non-tooltip frame if needed, and show it. (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators. * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and Controls.h. Use ThemeCursor instead of CursHandle. * macterm.c (activate_scroll_bars, deactivate_scroll_bars): Remove functions and declarations. (mac_set_colors): Take argument for saving background color. All callers changed. (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle) (mac_draw_rectangle, mac_draw_string_common): Save and Restore background color. (x_update_end, mac_do_track_drag): Don't reset background color. (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]: Use SetThemeCursor. (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress indicator control to the upper-right corner of the window. (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable. (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it. (do_window_update): Update controls after updating content area. (mac_handle_window_event): Remove unused extern. (XTread_socket): Check both control handle and control part code to determine whether a scroll bar is clicked. Activate/deactivate root control instead of contained scroll bar controls. (make_mac_terminal_frame): Use ThemeCursor constants. * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: New member hourglass_control. (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines. (activate_scroll_bars, deactivate_scroll_bars): Remove declarations. 2005-03-15 YAMAMOTO Mitsuharu * macterm.c (keycode_to_xkeysym_table): Change mapping so that it coincides with that in Apple X11 except `clear', `enter' on laptops, and fn + `enter' on laptops. 2005-03-12 Stefan Monnier * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte. (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR. (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING. * xfns.c (xic_defaut_fontset): New constant. (xic_create_fontsetname): New function. Extracted from create_frame_xic. Try to generate a slightly better fontset. (xic_create_xfontset): Use it. (create_frame_xic): Simplify. 2005-03-11 Stefan Monnier * fileio.c (Fmake_symbolic_link): Fix last change. 2005-03-11 Richard M. Stallman * fileio.c (Frename_file, Fadd_name_to_file) (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory, expand the basename of FILE relative to it. 2005-03-11 Kenichi Handa * fileio.c (Finsert_file_contents): Call Fcheck_coding_system before calling setup_coding_system so that autoloading of a coding system work. 2005-03-10 Jan Djärv * xfns.c (hourglass_started): New function. * dispextern.h: Declare hourglass_started. * keyboard.c (Fexecute_extended_command): Restart hourglass after call to Fcompleting_read if already started. * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the GTK main loop is entered in xterm.c, thus doing the redraw. 2005-03-10 Kim F. Storm * xdisp.c (pos_visible_p): Fix X value in last line of buffer. 2005-03-08 Kenichi Handa * frame.c (x_set_font): Call set_default_ascii_font if an available font is found. * fontset.c (set_default_ascii_font): New function. (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here. * fontset.h (set_default_ascii_font): Extern it. 2005-03-07 Kim F. Storm * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const. (clear_image_cache_count): New var. (redisplay_internal): Don't clear face and image caches in the middle of redisplay; do it afterwards. * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else. * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos is valid. If not, clear phys_cursor_on_p and return. 2005-03-07 Andreas Schwab * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT. 2005-03-06 Richard M. Stallman * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT. * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO. (Feval, Ffuncall): Use CHECK_CONS_LIST. * lisp.h (CHECK_CONS_LIST): New macro (two definitions). * blockinput.h (UNBLOCK_INPUT_TO): New macro. (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any. 2005-03-05 Juri Linkov * emacs.c (USAGE1): Replace Info node name "command arguments" with "emacs invocation". (USAGE3): Fix usage of `--color=MODE' which actually doesn't allow arguments `--color' and `MODE' to be separated by space. Add --no-blinking-cursor, -nbc. (standard_args): Add -nbc, --no-blinking-cursor. 2005-03-04 Thien-Thi Nguyen * s/vms.h: Define NO_HYPHENS_IN_FILENAMES. * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES. * fileio.c (Fexpand_file_name) [VMS]: Use NO_HYPHENS_IN_FILENAMES, not VMS4_4. * doc.c (munge_doc_file_name) [VMS]: Likewise. (Fsnarf_documentation): Call munge_doc_file_name. 2005-03-04 Thien-Thi Nguyen * s/vms.h (FILE_SYSTEM_CASE): New macro. * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name "manually"; this is now handled generally via FILE_SYSTEM_CASE. 2005-03-04 YAMAMOTO Mitsuharu * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if defined (MAC_OSX) && defined (HAVE_CARBON)'. * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h. * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h. [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent. (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions. (mac_clear_font_name_table): Move extern to macterm.h. * macfns.c (install_window_handler): Move extern to macterm.h. (Fx_file_dialog): Check STRINGP (default_filename) to see it is valid. Don't check !NILP (dir) because it is already checked with CHECK_STRING. (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for specifying the default location and obtaining the selected filename. * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h. * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that are included via Carbon.h. * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]: Define USE_CARBON_EVENTS to 1. (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare. (x_free_frame_resources): Call remove_window_handler for non-tooltip windows. [TARGET_API_MAC_CARBON]: Don't include headers that are included via Carbon.h. [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP) (mac_do_receive_dragUPP): New variables. (mac_handle_service_event, init_service_handler): Put declarations and definitions in #ifdef MAC_OSX. (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for drag-and-drop handler functions and register them. (remove_window_handler): New function. (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]: Use fsspec_to_posix_pathname. (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8. (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM. [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]: Set default cursors. (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call init_service_handler or init_quit_char_handler. (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess. * macterm.h (install_window_handler, remove_window_handler) (posix_pathname_to_fsspec, fsspec_to_posix_pathname) (mac_clear_font_name_table): New externs. 2005-03-03 Thien-Thi Nguyen * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined. (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally. (Fexpand_file_name): Likewise. 2005-03-03 Thien-Thi Nguyen * emacs.c (Fkill_emacs): Use EXIT_SUCCESS; no longer special-case VMS. Add bogus return value. 2005-03-02 Kim F. Storm * dispextern.h (XASSERTS): Define to 0 if not already defined. (xassert) [!XASSERTS]: Define dummy version. 2005-03-02 Kim F. Storm * xdisp.c (redisplay_window): YABX (yet another bogus xassert). Reported by David Kastrup. 2005-03-01 Ehud Karni * xdisp.c (get_next_display_element): Fix control and escape glyph from display vector. 2005-03-01 Stefan Monnier * keyboard.c (Fposn_at_x_y): Check integerness of X and Y. 2005-02-27 Richard M. Stallman * xdisp.c (fast_find_position): Rename END to BEG. (syms_of_xdisp) : Doc fix. 2005-02-27 Jan Djärv * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to gtk_window_resize and x_wm_set_size_hint. 2005-02-25 Kim F. Storm * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16. * xdisp.c (init_from_display_pos): Don't read past end of it->overlay_strings array. 2005-02-25 Stephan Stahl (tiny change) * buffer.c (syms_of_buffer): Fix typo. 2005-02-23 Lute Kamstra * buffer.c (Foverlay_buffer): Doc fix. 2005-02-22 Kim F. Storm * minibuf.c (Ftry_completion, Fall_completions): Allow both string and symbol keys in alists and hash tables. * xdisp.c (fast_find_position): Fix search for start of overlay. 2005-02-21 Kim F. Storm * window.c (window_scroll_pixel_based): When scrolling backwards, handle partial visible line at end of window even when we hit PT. 2005-02-21 Stefan Monnier * keymap.h: Declare Fcurrent_active_maps, used in doc.c. 2005-02-21 Kim F. Storm * xdisp.c (move_it_vertically_backward): Eliminate two xasserts. I think those asserts are bogus if buffer contains invisible text or images. 2005-02-21 David Kastrup * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error. 2005-02-20 Kim F. Storm * xdisp.c (pos_visible_p): Be sure to move to the specified position. Always get the full ascent / descent of the corresponding row, to return reliable rtop and rbot values. (back_to_previous_visible_line_start): Fix 2005-01-18 change. Must look one character back, as back_to_previous_line_start returns position after the newline. (move_it_vertically_backward): Fix heuristic for when to move further back in case line_height * 2/3 is larger than window height. (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p as it does not do anything anymore. Add arg current_matrix_p to use current matrix rather than desired matrix when set. (try_cursor_movement): Don't scroll to make cursor row fully visible if cursor didn't move. This avoids unexpected recentering in case of blinking cursor or accepting process output. Use current matrix to check cursor row visibility. (redisplay_window): Fix whether to recenter or move to top in case cursor line is taller than window height. (find_first_unchanged_at_end_row): Stop search if we reach a row which not enabled (instead of abort). 2005-02-18 Kim F. Storm * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property to be nil in a :box attribute value list; customize prints that as lisp value when no box color is specified. * .gdbinit (pitx, pit): Pretty print display iterator. (prowx, prow): Pretty print glyph row. (pcursorx, pcursor): Pretty print a window cursor. (pwinx, pwin): Pretty print struct window. 2005-02-18 Stefan Monnier * alloc.c (BLOCK_BYTES): Harmless typo. 2005-02-17 Andreas Schwab * xfns.c (hack_wm_protocols): Use correct type for last parameter of XGetWindowProperty to avoid aliasing issues. (Fx_window_property): Likewise. * xselect.c (Fx_disown_selection_internal): Use union of struct input_event and struct selection_input_event to avoid aliasing issues. * xterm.c (handle_one_xevent): Use union of struct input_event and struct selection_input_event to avoid aliasing issues. (SET_SAVED_MENU_EVENT): Adapt reference to inev. 2005-02-17 Kim F. Storm * dispextern.h (enum it_method): New enum. (GET_FROM_*): Its members. (struct it): Change member method from function pointer to enum. * xdisp.c (check_it, init_from_display_pos, handle_stop) (setup_for_ellipsis, handle_single_display_spec) (handle_composition_prop, next_overlay_string) (get_overlay_strings, reseat_1, reseat_to_string) (next_element_from_ellipsis, BUFFER_POS_REACHED_P) (in_display_vector_p, display_line, get_next_display_element): Change it->method from function pointer to enum. (get_next_element): New array to map it->method to function. (get_next_display_element): Use it. (set_iterator_to_next): Use switch instead of if/else chain. 2005-02-15 Benjamin Riefenstahl * w32select.c: Summary: Thorough rework to implement Unicode clipboard operations and delayed rendering. Drop last_clipboard_text and related code, keep track of ownership via clipboard_owner instead. Drop old #if0 sections. (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP) (clipboard_owner, modifying_clipboard, cfg_coding_system) (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text) (current_coding_system, current_requires_encoding) (current_num_nls, current_clipboard_type, current_lcid): New static variables. (convert_to_handle_as_ascii, convert_to_handle_as_coded) (render, render_all, run_protected, lisp_error_handler) (owner_callback, create_owner, setup_config) (enum_locale_callback, cp_from_locale, coding_from_cp): New local functions. (term_w32select, globals_of_w32select): New global functions. (Fw32_set_clipboard_data): Ignore parameter FRAME, use clipboard_owner instead. Use delayed rendering and provide all text formats. Provide CF_LOCALE if necessary. (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not available. Force DOS line-ends for decoding. (Fx_selection_exists_p): Handle CF_UNICODETEXT. (syms_of_w32select): Init and register new variables. * w32.h: Add prototypes for globals_of_w32select and term_w32select. Make the neighboring K&R declarations into prototypes, too. * emacs.c: Include w32.h to get function prototypes. (main): Call globals_of_w32select. * w32.c (term_ntproc): Call term_w32select. * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef. 2005-02-16 Kim F. Storm * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and at end of display vector. 2005-02-15 Richard M. Stallman * xdisp.c (get_next_display_element): Fix escape-glyph criterion for mode and header lines. * lread.c (syms_of_lread) : Doc fix. * keymap.h (describe_map_tree): Change decl. * keyboard.c (command_loop_1): Always use safe_run_hooks to run Qdeferred_action_function. * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed. (describe_map, describe_vector): Likewise. When it's 1, don't omit shadowed bindings, instead mark them as shadowed. * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps for describe_map_tree. Pass 1 for MENTION_SHADOW. * data.c (Fsetq_default): Allow no arg case. 2005-02-14 Kenichi Handa * coding.c (encode_coding_string): Always return a unibyte string. If NOCOPY is nonzero and there's no need of encoding, make STR unibyte directly. * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII multibyte string, signal an error instead of aborting. 2005-02-12 Dan Nicolaescu * keyboard.c: If HAVE_FCNTL_H include fcntl.h. 2005-02-12 Kim F. Storm * xdisp.c (expose_window): Don't fix overlaps for mode lines. 2005-02-10 Kim F. Storm * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL if it moves outside window or it doesn't display text. 2005-02-09 Kim F. Storm * undo.c (Fprimitive_undo): Check that undo function does not switch buffer. 2005-02-08 Jan Djärv * xselect.c (selection_data_to_lisp_data): For the special case type == XA_ATOM, data contains array of int, not array of Atom. (x_property_data_to_lisp, selection_data_to_lisp_data): Comment update: data must be array of int for format == 32. 2005-02-08 Stefan Monnier * undo.c (Fprimitive_undo): Check veracity of delta,start,end. 2005-02-07 Jan Djärv * xfns.c (Fx_change_window_property): Use long array when format is 32. (Fx_window_property): If format is 32 and long is bigger than 32 bits, convert long array returned from XGetWindowProperty to an int array. (x_set_tool_bar_lines): Check that width and height is greater than zero before clearing area. * xselect.c (x_reply_selection_request): Pass long array to XChangeProperty so that 64 bit longs are handled correctly. (x_get_window_property): If format is 32 and long is bigger than 32 bits convert data from XGetWindowProperty from long array to int array. (lisp_data_to_selection_data): When the input is a vector and the format is 32, allocate a long array even if long is bigger than 32 bits. (x_fill_property_data): Use char, short and long as the man page for XChangeProperty specifies. This way the data returned is OK for both 32 and 64 bit machines. (x_handle_dnd_message): Calculate size correctly even for 64 bit machines. (Fx_send_client_event): Undo change from 2005-02-05, x_fill_property_data now handles that case. * xfns.c (Fx_backspace_delete_keys_p): Add comment about the reason for the approach in the code. 2005-02-07 Kim F. Storm * undo.c (Fprimitive_undo): Record max one dummy apply element. 2005-02-06 Richard M. Stallman * eval.c (Frun_hook_with_args) (Frun_hook_with_args_until_success) (Frun_hook_with_args_until_failure): Doc fixes. 2005-02-05 Andreas Schwab * sysdep.c (sys_subshell): Properly terminate execlp argument list. 2005-02-05 Jan Djärv * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle the longs in a XClientMessageEvent correctly when long is 64 bits. 2005-02-05 Eli Zaretskii * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM instead of HAVE_X_WINDOWS, for non-X windowed sessions. 2005-02-03 Jan Djärv * xmenu.c (menubar_selection_callback): Force out GTK buffered events so the menu event comes after them. This is to prevent sit-for from exiting on buffered events directly after a menu selection, lisp code for Help => About Emacs uses sit-for. * gtkutil.c (create_menus): Connect selection-done event instead of the deactivate event to deactivate_cb. This will make the last leave event come before the call to deactivate_cb, so the leave event does not make sit-for exit after a menu selection. 2005-02-03 Kim F. Storm * dispnew.c (build_frame_matrix_from_leaf_window) [!GLYPH_DEBUG]: Fix xassert. * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert. * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert. 2005-02-03 YAMAMOTO Mitsuharu * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by the compiling OS version. * macfns.c (x_create_tip_frame): Likewise. * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise. 2005-02-03 Richard M. Stallman * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline. * xdisp.c (echo_area_display): Clear echo_message_buffer. * buffer.c (Fbury_buffer): Doc fix. 2005-02-02 Steven Tamm * macfns.c (unwind_create_frame): Fix compile error due to xassert being uncondition, but predicate is. * dispnew.c (update_window): Fix compile error due to xassert being uncondition, but predicate is. 2005-02-02 Miles Bader * dispextern.h (xassert): Enable unconditionally. 2005-02-02 Kim F. Storm * undo.c (Fprimitive_undo): Fix dummy apply undo entry. 2005-02-02 Kenichi Handa * casefiddle.c (casify_object): Enable changing characters of different byte length. (casify_region): Fix loop condition, args to replace_range_2, and update opoint_byte. * insdel.c (replace_range_2): Fix bugs in adjusting markers and point. 2005-02-01 Kim F. Storm * xdisp.c (back_to_previous_visible_line_start): Reset iterator stack before calling handle_display_prop. 2005-01-31 Kim F. Storm * undo.c (Qapply): New lisp var. (syms_of_undo): Intern and staticpro it. (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS). * buffer.c (syms_of_buffer) : Doc fix. 2005-01-30 Jesper Harder * macterm.c (syms_of_macterm) : Fix docstring indentation. 2005-01-29 Luc Teirlinck * undo.c (syms_of_undo) : Doc update. Increase value to 3 Meg. 2005-01-29 Jan Djärv * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK, button events are not received otherwise. 2005-01-29 Richard M. Stallman * buffer.c (syms_of_buffer) : Doc fix. * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME. 2005-01-28 Stefan Monnier * keymap.c (access_keymap): YAILOM. 2005-01-27 Kim F. Storm * xdisp.c (get_phys_cursor_geometry): New function to calculate phys cursor position and size for hollow cursor. Position is aligned with get_glyph_string_clip_rect and ensures that a hollow cursor is shown, even when the actual glyph is not visible. * dispextern.h (get_phys_cursor_geometry): Add prototype. * xterm.c (x_clip_to_row): Ensure y >= 0. (x_draw_hollow_cursor): Use get_phys_cursor_geometry. * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry. * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry. 2005-01-27 Stefan Monnier * xterm.c (x_error_quitter): Add a prototype. Make it static again. 2005-01-27 Kim F. Storm * xdisp.c (get_glyph_string_clip_rect): Always show a cursor glyph, even when row is only partially visible and actual cursor position is not visible. 2005-01-24 Richard M. Stallman * xterm.c (x_error_quitter): No longer static, and moved after x_error_handler. 2005-01-24 Kim F. Storm * xdisp.c (move_it_by_lines): If we move forward after going too far back, cancel move if end position is same as start position. 2005-01-24 YAMAMOTO Mitsuharu * dispextern.h (struct glyph_string): New members clip_head and clip_tail. * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip region to the area between clip_head and clip_tail. (draw_glyphs): Record the area that need to be actually redrawn to the new variables clip_head and clip_tail when there are overhangs. Set values of these variables to the corresponding members in struct glyph_string. Refine x coordinates for notice_overwritten_cursor using clip_head and clip_tail. * macgui.h (STORE_XCHARSETSTRUCT): New macro. * macterm.c (mac_compute_glyph_string_overhangs): Implement with QDTextBounds. (x_draw_glyph_string): Don't fill the background of the successor of a glyph with a right overhang if the successor will draw a cursor. (XLoadQueryFont): Obtain font metrics using QDTextBounds. (x_redisplay_interface): Add entry for compute_glyph_string_overhangs. 2005-01-24 Kim F. Storm * window.c (window_scroll_pixel_based): Fix scrolling in the wrong direction if window height was smaller than next-screen-context-lines. Now always scroll at least one line in the requested direction. Ensure that we actually do scroll backwards when requested to do so. * xdisp.c (redisplay_window): Only try to make cursor line fully visible once (to avoid redisplay loop). 2005-01-23 Kim F. Storm * window.c (Fpos_visible_in_window_p): Simplify return value for partially visible rows. (window_scroll_pixel_based): Adapt to that change. * window.c (window_scroll_pixel_based): Force moving to next line if scrolling doesn't move start point, e.g. if looking at tall image. * xdisp.c (pos_visible_p): Return 0 if non-interactive. Clear last_height before calling line_bottom_y to get real height. Fix calculation of y. 2005-01-22 Steven Tamm * s/darwin.h: Removed PTY_ITERATION from here. (DARWIN): Define. * process.c (init_process): Default process-connection-type to nil on darwin 6 or less, t if it is 7 or higher. This way the broken pty behavior is still allowed on darwin 6 for interactive processes for people that know what they are doing. 2005-01-22 Kim F. Storm * window.c (auto_window_vscroll_p): New boolean. (syms_of_window): DEFVAR_BOOL it. (Fpos_visible_in_window_p): Extend return value to include RTOP and RBOT values if FULLY is nil. (window_scroll_pixel_based): Adjust vscroll for partially visible rows if auto_window_vscroll_p is set. (Fset_window_vscroll): Do nothing if vscroll is not modified. * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args to return number of partially invisible pixels at top and bottom of the display row at POS. * lisp.h (pos_visible_p): Fix prototype. 2005-01-21 Richard M. Stallman * fileio.c (Fcopy_file): Doc fix. 2005-01-21 Jan Djärv * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw. (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to start of function for older compilers. 2005-01-20 Richard M. Stallman * editfns.c (Fmessage): If arg is "", return "" (as before). * keymap.c (access_keymap): Protect from bad value of meta_prefix_char. * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable. 2005-01-20 Steven Tamm * editfns.c (Voperating_system_release): Add. (init_editfns): Assign new variable operating-system-release based on call to uname if available. (get_operating_system_release): Add function to allow c-level access to operating system release. * config.h: Regenerated. * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less. (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for using ptys as '7'. 2005-01-20 Kim F. Storm * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean. * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows. Thanks to Chong Yidong for debugging this. * macterm.c (x_draw_glyph_string_box): Likewise. * w32term.c (x_draw_glyph_string_box): Likewise. * indent.c (Fvertical_motion): Temporarily disable selective display. 2005-01-19 Kim F. Storm * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer image property. * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair. 2005-01-18 Kim F. Storm * xdisp.c (fast_find_position): Backtrack to find first row if charpos is inside a display overlay that spans multiple lines. 2005-01-18 Kenichi Handa * coding.c (decode_coding_iso2022): Translate invalid codes if translation-table is specified. 2005-01-18 Kim F. Storm * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28 change. If handle_display_prop indicates newline is replaced by image or text, move back to start of relevant overlay or interval and continue scan from there. Simplify. 2005-01-17 Kim F. Storm * dispnew.c (mode_line_string, marginal_area_string): Fix off-by-one error in search for glyph. 2005-01-16 Kim F. Storm * macterm.c (syms_of_macterm) : Doc fix. 2005-01-16 Steven Tamm * macterm.c (mac_to_x_fontname): Remove spurious argument. 2005-01-16 Andreas Schwab * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1. 2005-01-16 Jan Djärv * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *. 2005-01-16 YAMAMOTO Mitsuharu * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW) (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES): New flags for readable_events. (get_filtered_input_pending, readable_filtered_events): Remove. (tracking_off): Call readable_events and get_input_pending with flag READABLE_EVENTS_DO_TIMERS_NOW. (readable_events): Move code from old readable_filtered_events here, but check new READABLE_EVENTS_* in argument flags instead of previous two boolean arguments do_timers_now and filter_events. If we are doing mouse tracking and the mouse moved, return only if READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags. (swallow_events): Call get_input_pending with flag READABLE_EVENTS_DO_TIMERS_NOW. (get_input_pending): Move code from old get_filtered_input_pending here. Replace boolean arguments do_timers_now, filter_events with flags, and pass flags to readable_events. Document new READABLE_EVENTS_* flags. (detect_input_pending_ignore_squeezables): New function. (detect_input_pending_run_timers): Call get_input_pending with flag READABLE_EVENTS_DO_TIMERS_NOW. (Finput_pending_p): Call get_input_pending with flags READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS. * dispnew.c (update_window, update_frame_1): Replace calls to detect_input_pending with detect_input_pending_ignore_squeezables so that redisplay is not paused if the event queue contains only mouse movements. * lisp.h: Declare detect_input_pending_ignore_squeezables. 2005-01-15 Steven Tamm * macterm.c (Vmac_use_core_graphics): Declare variable for mac-allow-anti-aliasing. (syms_of_macterm): DEFVAR_LISP and initialize it. (mac_draw_string_common): Use core graphics text rendering if mac-allow-anti-aliasing is enabled. * macfns.c (Fx_file_dialog): Save As dialog includes only the file name in the text box. 2005-01-15 YAMAMOTO Mitsuharu * macfns.c (x_set_foreground_color, x_set_background_color): Sync with xfns.c. (mac_window, x_create_tip_frame): Use XSetWindowBackground. * macterm.c (XSetBackground, XSetWindowBackground): New functions. * macterm.h (XSetBackground, XSetWindowBackground): Add externs. 2005-01-14 Kim F. Storm * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE. 2005-01-13 Richard M. Stallman * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map if Voverriding_terminal_local_map is non-nil. * keyboard.c (syms_of_keyboard): Doc fix. 2005-01-13 Kim F. Storm * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg (specify 0 for FACE instead). Reorder arg list. Doc fix. 2005-01-12 Richard M. Stallman * xdisp.c (Fformat_mode_line): New arg FACE specifies a default face property for characters that don't specify one. * fns.c (Frequire): Record in load-history unconditionally. 2005-01-10 Kim F. Storm * dispextern.h (merge_faces): Rename from merge_into_realized_face. * xfaces.c (merge_faces): Rename from merge_into_realized_face. Callers changed. Add support to merge with lisp face id too (if face_name is t). * xdisp.c (get_next_display_element, next_element_from_display_vector): Don't lookup lface_id from display table glyphs here; instead use merge_faces to merge the lisp face id into current face. 2005-01-09 Kim F. Storm * dispextern.h (struct it): New member dpvec_face_id. (merge_into_realized_face): Add prototype. * xfaces.c (merge_into_realized_face): New function. Used to merge escape-glyph face or face from display table into current face. * xdisp.c (Vshow_nonbreak_escape): New lisp var. (syms_of_xdisp): DEFVAR_LISP it. (escape_glyph_face): Remove var. (redisplay_window): Don't initialize it. (setup_for_ellipsis, get_next_display_element): Set it->dpvec_face_id to -1. (get_next_display_element): Test Vshow_nonbreak_escape. Do not setup escape_glyph_face. Properly merge escape-glyph face or face from display table with current face for escape and control characters. Set it->dpvec_face_id to relevant face id instead of adding it to each element of display vector. (next_element_from_display_vector): If it->dpvec_face_id is set, use that instead of lface_id from glyph itself. 2005-01-08 Jan Djärv * xterm.h (struct x_output): New member, toolbar_detached. * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to 38. (xg_tool_bar_detach_callback): Set toolbar_detached to 1. (xg_tool_bar_attach_callback): Set toolbar_detached to 0. (xg_create_tool_bar): Initialize toolbar_detached. (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if toolbar_detached is zero. 2005-01-07 Jan Djärv * xmenu.c (create_and_show_popup_menu): Pass zero as button to gtk_menu_popup if not for_click, so callbacks for the menu are called. * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar) (xg_tool_bar_callback, xg_tool_bar_help_callback) (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning. * xselect.c (x_get_foreign_selection, x_fill_property_data) (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with XFLOAT_DATA to get extract number from Lisp object. 2005-01-07 Kim F. Storm * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change. Set stop_charpos to current charpos instead of 0. 2005-01-06 Nick Roberts * xdisp.c (Fformat_mode_line): First arg now required. 2005-01-06 YAMAMOTO Mitsuharu * macterm.c (XLoadQueryFont): Correctly handle 0 size font widths that are returned from some Japanese fonts. 2005-01-06 Kim F. Storm * fringe.c (fringe_faces): Change to Lisp_Object pointer. (draw_fringe_bitmap_1): Lookup user defined fringe faces here. (destroy_fringe_bitmap): Set fringe_faces element to nil. (Fdefine_fringe_bitmap, init_fringe): Change allocation of fringe_faces array and init elements to nil. (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of non-persistent face id. (mark_fringe_data): New function for GC. * alloc.c (mark_fringe_data): Declare extern. (Fgarbage_collect): Call mark_fringe_data. * alloc.c (overrun_check_free): Invalidate freed memory if XMALLOC_CLEAR_FREE_MEMORY is defined. 2005-01-05 YAMAMOTO Mitsuharu * macfns.c: Include sys/param.h. [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration and function. [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size of filename string. Set event callback function when creating dialog boxes. Add code conversions for filenames. Don't dispose of apple event descriptor record if failed to create it. * macterm.c: Include sys/param.h. [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for kEventWindowUpdate. (install_window_handler) [USE_CARBON_EVENTS]: Register it. (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead of FSSpec from apple event descriptor record. (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for size of filename string. [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a file dialog is in action. [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise. Reject only when there are no filename items. Set background color before (un)highlighting the window below the dragged items. (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update. 2005-01-05 Romain Francoise * term.c (encode_terminal_code): Fix buffer size computation. 2005-01-04 Richard M. Stallman * xdisp.c (Fformat_mode_line): Doc fix. 2005-01-04 Stefan Monnier * alloc.c (refill_memory_reserve): Move. (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc) (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define. 2005-01-03 Richard M. Stallman * window.c (window_scroll_pixel_based): Don't correct preserve_y for CURRENT_HEADER_LINE_HEIGHT when moving backwards. 2005-01-03 Jason Rumney * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and fontp->space_width to FONT_WIDTH so they are valid. * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not average width. Set fontp->average_width and fontp->space_width to their appropriate values. * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to fontp->space_width. 2005-01-03 YAMAMOTO Mitsuharu * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH. (x_font_min_bounds, XLoadQueryFont): Use the correct font width metrics for max and min bounds. (x_load_font): Correctly calculate average font width metrics. 2005-01-02 Richard M. Stallman * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers. 2004-12-31 Jan Djärv * xterm.c (handle_one_xevent): Clear area in expose event for GTK. 2004-12-31 Richard M. Stallman * xdisp.c (setup_for_ellipsis, get_next_display_element): Set it->ellipsis_p to 1 or 0. (display_line): Record whether row ends in mid-ellipsis. (set_cursor_from_row): If ends in ellipsis, find start of it. (cursor_row_p): If PT's at the end of the ellipsis the row ends within, don't display cursor on this row. * dispextern.h (struct it): New element ellipsis_p. (struct glyph_row): New element ends_in_ellipsis_p. * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified position if we're reading from something other than the buffer. * window.c (window_scroll_pixel_based): Only look at Vscroll_preserve_screen_position if the old PT can't be kept. (syms_of_window) : Doc fix. 2004-12-30 Kim F. Storm * xdisp.c (get_line_height_property): New function extracted from original calc_line_height_property. (calc_line_height_property): Rework. Handle t and (nil . ratio). (x_produce_glyphs): Use them to handle line-height and line-spacing according to new height spec. (Qtotal): Remove. (syms_of_xdisp): Remove intern and staticpro for Qtotal. 2004-12-30 Kenichi Handa * fileio.c (Finsert_file_contents): Don't use current_buffer->buffer_file_coding_system even if REPLACE is non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT. * fontset.h (struct font_info): New members space_width and average_width. * frame.h (struct frame): New member space_width. (FRAME_SPACE_WIDTH): New macro. * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH. * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to fontp->space_width. (x_load_font): Calculate fontp->space_width and fontp->average_width. (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH. * xdisp.c (x_produce_glyphs): Calculate tab width by FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH. 2004-12-29 Sanghyuk Suh * macterm.c (SelectionRange): Add Xcode position apple event struct. (do_ae_open_documents): Handle Xcode-style file position open events. 2004-12-29 Luc Teirlinck * buffer.c (syms_of_buffer) : Correct typo. 2004-12-29 Richard M. Stallman * buffer.c (syms_of_buffer) : Doc fix. 2004-12-29 YAMAMOTO Mitsuharu * macfns.c (install_window_handler): Modify extern to return OSErr value. (mac_window): Handle return value of install_window_handler. * macterm.c (reflect_byte): Remove function. (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte. Lookup table instead. (mac_do_font_lists): Simplify calculation of the longest nonspecial string. (init_mac_drag_n_drop): Remove function and declaration. (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call init_mac_drag_n_drop. (mac_do_track_drag): New function and declaration. (install_window_handler): Return OSErr value. (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for tracking/receiving drag-and-drop items. (do_ae_open_documents): Generate unibyte strings for filenames. (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise. Reject only non-filename items. Set event modifiers, and return value. 2004-12-28 Dan Nicolaescu * coding.c (decode_coding): Fix previous change. 2004-12-28 Richard M. Stallman * xdisp.c (back_to_previous_visible_line_start): Don't call handle_display_prop. 2004-12-28 Dan Nicolaescu * coding.c (decode_coding_XXX, decode_composition_emacs_mule) (decode_coding_emacs_mule, encode_coding_emacs_mule) (decode_coding_iso2022, encode_designation_at_bol) (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol) (decode_coding): Constify arguments and local vars. 2004-12-27 Jan Djärv * xmenu.c (popup_get_selection): Only pop down dialogs on C-g and Escape. (popup_get_selection): Remove parameter down_on_keypress. (create_and_show_popup_menu, create_and_show_dialog): Remove parameter down_on_keypress to popup_get_selection. 2004-12-27 YAMAMOTO Mitsuharu * dispextern.h: Change HAVE_CARBON to MAC_OS. (struct glyph_string): Likewise. * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of mac_initialize. * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name): Change TARGET_API_MAC_CARBON to HAVE_CARBON. * fns.c (vector): Change MAC_OSX to MAC_OS. * frame.c (x_set_frame_parameters, x_report_frame_params) (x_set_fullscreen): Remove #ifndef HAVE_CARBON. (x_set_border_width, Vdefault_frame_scroll_bars): Change HAVE_CARBON to MAC_OS. * image.c [MAC_OS]: Include sys/stat.h. [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and QuickTimeComponents.h. * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern. [!MAC_OSX] (select): Use mac_wait_next_event. [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes. [!MAC_OSX] (select, run_mac_command): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (mac_clear_font_name_table): Add extern. (Fmac_clear_font_name_table): New defun. (syms_of_mac): Defsubr it. [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define. [MAC_OSX] (select_and_poll_event): New function. [MAC_OSX] (sys_select): Use it. [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function. [MAC_OSX && SELECT_USE_CFSOCKET] (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and RunLoop for simultaneously monitoring two kinds of inputs, window events and process outputs, without periodically polling. * macfns.c (mac_initialized): Remove extern. (stricmp): Put in #if 0. All callers changed to use xstricmp in xfaces.c. (strnicmp): Decrement `n' at the end of each loop, not the beginning. (check_mac): Use the term "Mac native windows" instead of "Mac OS". (check_x_display_info, x_display_info_for_name): Sync with xfns.c. (mac_get_rdb_resource): New function (from w32reg.c). (x_get_string_resource): Use it. (install_window_handler): Add extern. (mac_window): New function. (Fx_create_frame): Use it instead of make_mac_frame. Set parameter for Qfullscreen. Call x_wm_set_size_hint. (Fx_open_connection, Fx_close_connection): New defuns. (syms_of_macfns): Defsubr them. (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add kWindowNoUpdatesAttribute to the window attribute. (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow. (x_create_tip_frame): Don't call ShowWindow. (Fx_show_tip): Call ShowWindow. (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (mac_frame_parm_handlers): Set handlers for Qfullscreen. (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0. * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h. (Window): Typedef to WindowPtr and move outside `#if TARGET_API_MAC_CARBON'. (XSizeHints): New struct. * macterm.c (x_update_begin, x_update_end) [TARGET_API_MAC_CARBON]: Disable screen updates during update of a frame. (x_draw_glyph_string_background, x_draw_glyph_string_foreground) [MAC_OS8]: Use XDrawImageString/XDrawImageString16. (construct_mouse_click): Put in #if 0. (x_check_fullscreen, x_check_fullscreen_move): Remove decls. (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (activate_scroll_bars, deactivate_scroll_bars) [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl. (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window if the position is neither user-specified nor program-specified. (x_free_frame_resources): Free size_hints. (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints. (mac_clear_font_name_table): New function. (mac_do_list_fonts): Initialize font_name_table if needed. (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT around mac_do_list_fonts. (mac_unload_font): New function. (x_load_font): Add BLOCK_INPUT around XLoadQueryFont. (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations and definitions with #if TARGET_API_MAC_CARBON. [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl. (install_window_handler): Add decl. (do_window_update): Add BeginUpdate/EndUpdate for the tooltip window. Use UpdateControls. Get the rectangle that should be updated and restrict the target of expose_frame to it. (do_grow_window): Set minimum height/width according to size_hints. (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow. (do_zoom_window): Don't use x_set_window_size. [USE_CARBON_EVENTS] (mac_handle_window_event): New function. (install_window_handler): New function. [!USE_CARBON_EVENTS] (mouse_region): New variable. [!USE_CARBON_EVENTS] (mac_wait_next_event): New function. (XTread_socket) [USE_CARBON_EVENTS]: Move call to GetEventDispatcherTarget inside BLOCK_INPUT. (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event. Update mouse_region when mouse is moved. (make_mac_frame): Remove. (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize mouse pointer shapes. Change values of f->left_pos and f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't call ShowWindow. (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from Vinvocation_name and Vsystem_name. (mac_make_rdb): New function (from w32term.c). (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has already been opened. Don't pass argument to mac_initialize_display_info. Don't set dpyinfo->height/width. Add entries to x_display_list and x_display_name_list. (x_delete_display): New function. (mac_initialize): Don't call mac_initialize_display_info. (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide. * macterm.h (check_mac): Add extern. (struct mac_output): New member size_hints. (FRAME_SIZE_HINTS): New macro. (mac_unload_font): Add extern. * xdisp.c (expose_window, expose_frame): Remove kludges for Mac. * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font. 2004-12-27 Richard M. Stallman * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el). (syms_of_buffer): Don't defsubr it. * process.c (list_processes_1): Set undo_list instead of calling Fbuffer_disable_undo. * xdisp.c (single_display_spec_string_p): Rename from single_display_prop_string_p. (single_display_spec_intangible_p): Rename from single_display_prop_intangible_p. (handle_single_display_spec): Rename from handle_single_display_prop. Rewritten to be easier to understand. Change in load-history format. Functions now get (defun . NAME), and variables get just NAME. * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH. * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH. (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH. (Qdefvar): Var deleted. (syms_of_eval): Don't initialze it. * lread.c (syms_of_lread) : Doc fix. 2004-12-27 Jan Djärv * xmenu.c (popup_get_selection): Pop down on C-g. (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that pops down menu on C-g. (xdialog_show): If dialog popped down and no button in the dialog was pushed, call Fsignal to quit. (xmenu_show): In no toolkit version, if menu returns NO_SELECT call Fsignal to quit. * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g. * gtkutil.c (xg_initialize): Install bindings for C-g so that dialogs and menus pop down. 2004-12-27 Kenichi Handa * coding.c (code_convert_region): Fix calculation of `ratio'. 2004-12-25 Jan Djärv * gtkutil.c (update_frame_tool_bar): Make the value of tool-bar-button-margin control margins of images in tool bar. * alloc.c (check_depth): New variable. (overrun_check_malloc, overrun_check_realloc): Only add overhead and write check pattern if check_depth is 1 (to handle recursive calls). Increase/decrease check_depth in entry/exit. (overrun_check_free): Only check for overhead if check_depth is 1. Increase/decrease check_depth in entry/exit. 2004-12-23 Jan Djärv * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK before touching input_available_clear_time, to avoid accessing it from multiple threads. 2004-12-23 Jason Rumney * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behavior of JPEG library. 2004-12-22 Richard M. Stallman * emacs.c (main): If batch mode, set Vundo_outer_limit to nil. * lisp.h (Vundo_outer_limit): Fix decl. * undo.c (Vundo_outer_limit): Replaces undo_outer_limit. Uses changed. (syms_of_undo): Initialize appropriately. (truncate_undo_list): If it's nil, there's no limit. 2004-12-22 Kenichi Handa * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string. 2004-12-21 Richard M. Stallman * eval.c (unwind_to_catch): Clear immediate_quit. * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad specially as `\ ' and `\-'. * keyboard.c (kbd_buffer_store_event_hold): In the code for while-no-input, handle immediate_quit. * alloc.c (Fgarbage_collect): Update call to truncate_undo_list. Call that at the very start. (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c. (syms_of_alloc): Don't define undo-limit, undo-strong-limit and undo-outer-limit here. * undo.c (truncate_undo_list): Return void. Take just one argument, the buffer. Make it current, and inhibit recursive GC. Access and update the undo list directly; return void. Refer to the undo...limit variables directly. Test undo_outer_limit only after counting the whole current command. When it's exceeded, call the function in undo-outer-limit-function. (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c. (Vundo_outer_limit_function): New variable. (syms_of_undo): Define undo-limit, undo-strong-limit and undo-outer-limit here, and undo-outer-limit-function. Doc fixes. * lisp.h (truncate_undo_list): Update decl. 2004-12-21 Piet van Oostrum * fileio.c (Fread_file_name): Delete duplicates in file-name-history when history_delete_duplicates is true. 2004-12-20 YAMAMOTO Mitsuharu * macterm.c (mac_do_list_fonts): Fix memory leak. 2004-12-20 Richard M. Stallman * regex.c (re_match_2_internal) : Fix calls to UPDATE_SYNTAX_TABLE_FORWARD. 2004-12-18 YAMAMOTO Mitsuharu * macterm.c (endif, x_font_name_to_mac_font_name): Use maccentraleurroman instead of maccentraleuropean (mac_c_string_match, mac_do_list_fonts): Speed up font search by quickly finding a specific font without needing regexps. 2004-12-15 Jan Djärv * syssignal.h: Declare main_thread. (SIGNAL_THREAD_CHECK): New macro. * keyboard.c (input_available_signal): Move thread checking code to macro SIGNAL_THREAD_CHECK and call that macro. (interrupt_signal): Call SIGNAL_THREAD_CHECK. * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c. * emacs.c: Define main_thread. (main): Initialize main_thread. (handle_USR1_signal, handle_USR2_signal, fatal_error_signal) (memory_warning_signal): Call SIGNAL_THREAD_CHECK. * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK. * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK. * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK. * process.c (send_process_trap, sigchld_handler): Call SIGNAL_THREAD_CHECK. * data.c (arith_error): Call SIGNAL_THREAD_CHECK. * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK. * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before returning when xg_ignore_gtk_scrollbar is true. 2004-12-14 Kim F. Storm * keyboard.c (read_char): Save and restore echo_string when handling input method. 2004-12-13 Richard M. Stallman * eval.c (syms_of_eval) : Doc fix. * keyboard.c (Vthrow_on_input): New variable. (syms_of_keyboard): Defvar and initialize it. (kbd_buffer_store_event_hold): Handle Vthrow_on_input. * lisp.h (QUIT): Check for Vthrow_on_input. (Vthrow_on_input): Declare it. 2004-12-13 Kim F. Storm * xdisp.c (set_iterator_to_next): Reset stop_charpos after display vector. 2004-12-12 Richard M. Stallman * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0. * minibuf.c (Fall_completions): Add var `zero' and use it in loop. (Ftry_completion): Really use outer `zero'; eliminate inner one. 2004-12-12 Kenichi Handa * term.c (encode_terminal_code): Fix previous change. 2004-12-11 Stefan Monnier * keyboard.c (handle_async_input): Remove pthread mutex handling. (input_available_signal): Move pthread thingy to !SYNC_INPUT branch. * syntax.c (Fforward_word): Avoid non-idempotent side-effects in macro arguments. * minibuf.c (Ftry_completion, Fall_completions): Don't use XFASTINT blindly. * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT. 2004-12-11 Jan Djärv * w32term.c (x_calc_absolute_position): Remove calculation of difference between inner and outer window. Don't subtract difference for left and top calculations. * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff for left and top calculations. Remove call to x_real_positions. [Bug report by Drew Adams in November.] (x_check_expected_move): Do not set change_gravity to 1 when calling x_set_offset. 2004-12-08 Richard M. Stallman * xdisp.c (get_next_display_element): Use `escape-glyph' for control chars and escaped octal codes. (Qescape_glyph): New variable. (syms_of_xdisp): Initialize it. (escape_glyph_face): New variable. (redisplay_window): Initialize it. 2004-12-07 Paul Eggert * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE) (init_image): Use 1 rather than TRUE. TRUE's not always defined. 2004-12-07 Jan Djärv * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around reset_malloc_hooks. * keyboard.c (handle_async_input, input_available_signal): Add ! defined (SYSTEM_MALLOC) around thread code. * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC. 2004-12-07 Stefan Monnier * eval.c (init_eval_once): Increase max_specpdl_size to 1000. * config.in: Regenerate. 2004-12-07 Jan Djärv * xmenu.c (Fx_popup_menu): Correct documentation about position. (xmenu_show): Do not call XTranslateCoordinates. Adjust position if not given by a mouse click to correspond with x-popup-menu documentation. * config.in: Regenerate. * gtkutil.c: Include signal.h and syssignal.h. (xg_get_file_name): Block and unblock __SIGRTMIN if defined. * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h, new variables main_thread and alloc_mutex, define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread. If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as (UN)BLOCK_INPUT. (emacs_blocked_free, emacs_blocked_malloc) (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC. (uninterrupt_malloc): Initialize main_thread and alloc_mutex. (reset_malloc_hooks): New function. * lisp.h: Declare reset_malloc_hooks. * emacs.c (Fdump_emacs): Call reset_malloc_hooks. * keyboard.c: Conditionally include pthread.h. (handle_async_input, input_available_signalt): If not in the main thread, block signal, send signal to main thread and return. * gtkutil.c (xg_get_file_with_chooser): Handle local files only. Set current folder in file chooser if default_filename is a directory. 2004-12-05 Stefan Monnier * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end. Remove redundant correctness checks. (regex_compile): Fix up error codes for \{..\} expressions. 2004-12-05 Richard M. Stallman * regex.c (regex_compile): Fix end-of-pattern case for space. 2004-12-03 YAMAMOTO Mitsuharu * macterm.h (cfstring_create_with_utf8_cstring): Add prototype. * mac.c (cfstring_create_with_utf8_cstring): Add to prevent crashes with invalid characters. * macmenu.c (add_menu_item): Use it. * image.c (image_load_quartz2d): Likewise. * macfns.c (x_set_name, x_set_title): Likewise. (Fx_file_dialog): Likewise. Use constant CFRefs instead of creating them each time for labels. 2004-12-02 Richard M. Stallman * config.in (RE_TRANSLATE_P): If make_number is not a macro, don't use it here. * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE. (interactive_p): Skip Scalled_interactively_p frames like Sinteractive_p frames. (unwind_to_catch): Clear handling_signal. * data.c (Fmake_variable_buffer_local): Doc fix. (Fmake_local_variable): Doc fix. * insdel.c (insert_from_string_before_markers) (insert_from_string): Don't modify buffer on empty insertion. * window.c (Fget_lru_window, Fget_largest_window): Doc fixes. 2004-12-01 YAMAMOTO Mitsuharu * macmenu.c (add_menu_item): Fallback on MacRoman if encoding menu text as UTF8 fails. 2004-12-01 Kim F. Storm * alloc.c: Add commentary for last change. (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle sizeof(size_t) != 4. (overrun_check_malloc, overrun_check_realloc, overrun_check_free): Use them. Also clear header and trailer of freed memory. (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA. (string_overrun_cookie): Rename from string_overrun_pattern. (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE. 2004-12-01 Andreas Schwab * lisp.h: Declare string_to_multibyte. 2004-12-01 Kenichi Handa * w32console.c (w32con_write_glyphs): Decide coding here. Adjusted for the change of encode_terminal_code. * term.c (encode_terminal_code): Don't make it "static". 2004-11-30 Kenichi Handa * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables. (encode_terminal_code): Argument changed. Encode all characters at once, and return a pointer to the result of encoding. (write_glyphs): Decide coding here. Adjusted for the above change. (insert_glyphs): Likewise. (term_init): Initialize encode_terminal_bufsize to 0. * coding.c (Vcode_conversion_workbuf_name): New variable. (syms_of_coding): Initialize and staticpro it. (set_conversion_work_buffer): New function. (run_pre_post_conversion_on_str): Use it. (run_pre_write_conversin_on_c_str): New function. * coding.h (run_pre_write_conversin_on_c_str): Extern it. 2004-11-30 YAMAMOTO Mitsuharu * keyboard.c: Don't undef SIGIO * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon * Makefile.in (mac.o): Depend on blockinput.h and atimer.h. (macfns.o): Don't depend on ccl.h. * macfns.c (mac_frame_parm_handlers): Set handlers for Qleft_fringe and Qright_fringe. * macterm.c (mac_fill_rectangle_to_pixmap) (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap) (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1): Put in #if 0. (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect. (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames. (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement. (x_draw_glyph_string_background, x_draw_glyph_string_foreground) [!MAC_OS8]: Added ifdef'd out code for os8. Don't use XDrawImageString. Always draw background and foreground separately. (x_draw_image_foreground): Use clipping instead of computing the intersection rectangle. (x_draw_image_glyph_string): Don't draw an image with mask to a pixmap. (x_redisplay_interface): Set flush_display_optional member to 0. (XTread_socket): Correctly reset the TEConverter object. 2004-11-30 Kim F. Storm * lisp.h: New defines to enable buffer overrun checking. (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST) (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add. * alloc.c: Add more checks for buffer overruns. (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header) xmalloc_overrun_check_trailer, overrun_check_malloc) overrun_check_realloc, overrun_check_free): Add. (GC_STRING_EXTRA, string_overrun_pattern): Add. (check_sblock, allocate_string_data, compact_small_strings): Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN. (check_cons_list): Condition on GC_CHECK_CONS_LIST. (check_string_free_list): Add. (allocate_string, sweep_strings): Call check_string_free_list. * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if XMALLOC_OVERRUN_CHECK to avoid crash during load. 2004-11-29 Kim F. Storm * fns.c (concat): Use SAFE_ALLOCA. 2004-11-29 Stefan Monnier * sysdep.c (emacs_write): Don't use QUIT. 2004-11-29 Kenichi Handa * buffer.c (init_buffer): Set current_buffer->directory to a multibyte string made by string_to_multibyte. * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args. 2004-11-27 Andreas Schwab * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined. * s/gnu-linux.h: Enable no-op gcpros on ia64. (GC_MARK_SECONDARY_STACK) [__ia64__]: Define. * filelock.c (lock_file_1): Call get_boot_time early. Increase buffer size. 2004-11-27 Eli Zaretskii * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN is not defined. 2004-11-27 Kim F. Storm * search.c (syms_of_search) : Move 'doc:' marker out of doc string. 2004-11-26 Stefan Monnier * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25, which was not mentioned in the log. 2004-11-26 Kim F. Storm * fringe.c (update_window_fringes): Prefer truncation bitmaps over angle bitmaps at top/bottom line. * xdisp.c: Undo recent changes for restoring saved_face_id. Instead, set it when it->method is set to next_element_from_display_vector. (setup_for_ellipsis): Add LEN argument. Callers changed. Set it->saved_face_id. (get_next_display_element): Use loop instead of recursion. Set it->saved_face_id. Combine duplicate code for ctr chars. (next_element_from_display_vector): Do not set it->saved_face_id. (next_element_from_ellipsis): Use setup_for_ellipsis. 2004-11-26 Eli Zaretskii * eval.c (Fdefvar): Declare pdl from last change as `volatile' to prevent compiler warnings. 2004-11-25 Stefan Monnier * keyboard.c (command_loop_1): Print a message describing the key the user just pressed when this key has no binding. * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set. (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted. * lread.c (readchar): Check QUIT when `getc' is interrupted. 2004-11-24 Richard M. Stallman * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only. * buffer.c (syms_of_buffer) : Doc fix. 2004-11-24 Kim F. Storm * xdisp.c (move_it_in_display_line_to, display_line): Restore saved_face_id also when truncate-lines or hscrolled. 2004-11-23 Jan Djärv * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to x-use-old-gtk-file-dialog. * xfns.c: Define x_use_old_gtk_file_dialog. (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it outside ifdef USE_GTK. 2004-11-23 Stefan Monnier * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM): Don't use XFASTINT blindly. * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly. * indent.c (skip_invisible): Avoid non-idempotent side-effects in macro arguments. * keymap.c (Flookup_key): Check INTEGERP before XINT. * lread.c (oblookup): Don't use XFASTINT blindly. * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int. (decode_next_window_args, window_loop): Don't use XFASTINT blindly. 2004-11-23 Kim F. Storm * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P) (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero. * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if signal_p is zero and face name is unknown. (Fx_list_fonts): Don't signal error in lookup_named_face. (Fface_font): Signal error in lookup_named_face. (ascii_face_of_lisp_face): Likewise. * dispextern.h (lookup_named_face): Fix prototype. * xdisp.c (handle_single_display_prop): Don't signal error in lookup_named_face for unknown fringe face name. (highlight_trailing_whitespace): Don't signal error in lookup_named_face if trailing-whitespace face unknown. (calc_line_height_property): Don't signal error in lookup_named_face if specified face name is unknown. * fringe.c (update_window_fringes): Show top row indicator if window has header-line. Don't show arrow at bob and eob if the boundary indicators are not used. (Fset_fringe_bitmap_face): Signal error in lookup_named_face. * window.c (set_window_buffer): Clear display_error_modiff. 2004-11-22 Kim F. Storm * fringe.c (update_window_fringes): Provide sensible fall-back value for non-nil indicate-buffer-boundaries setting. 2004-11-22 Markus Rost * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change. 2004-11-22 Stefan Monnier * eval.c (Fdefvar): Warn when var is let-bound but globally void. 2004-11-21 Kim F. Storm * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA. * xterm.c (x_clip_to_row): Add area arg. Callers changed. (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA. * w32term.c (w32_clip_to_row): Add area arg. Callers changed. (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA. * macterm.c (x_clip_to_row): Add area arg. Callers changed. (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA. * xdisp.c (move_it_in_display_line_to, display_line): Restore saved_face_id if overflow-newline-into-fringe is enabled and line is continued before or in middle of element from display vector. * indent.c (Fvertical_motion): Fix last change. Use another method to detect if iterator moved too far ahead after reseat. * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not expand matrix width for overflow in zero-width area. (append_glyph, append_composite_glyph, produce_image_glyph) (append_stretch_glyph): Use it to avoid loop in redisplay. (note_mode_line_or_margin_highlight): Don't let help-echo from string override help-echo from image map. 2004-11-20 Luc Teirlinck * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument. * callint.c (Fcall_interactively): Ditto. 2004-11-20 Stefan Monnier * minibuf.c (Fminibuffer_complete_and_exit): Fixup the case of the completed value, for case-indep completion. 2004-11-20 Richard M. Stallman * lisp.h (Fread_from_minibuffer): Add arg in decl. * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed. (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed. * search.c (Vsearch_spaces_regexp): Rename from Vsearch_whitespace_regexp. All uses changed. 2004-11-20 Thien-Thi Nguyen * eval.c (init_eval_once): Increase `max_specpdl_size' to 650. 2004-11-19 Richard M. Stallman * search.c (Vsearch_whitespace_regexp): New variable. (syms_of_search): Defvar it. (compile_pattern_1): Call re_set_whitespace_regexp with it. (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp is non-nil. (struct regexp_cache): New element whitespace_regexp. (syms_of_search): Initialize whitespace_regexp elements. (compile_pattern): Compare whitespace_regexp elements. (compile_pattern_1): Set whitespace_regexp elements. * regex.c (regex_compile): Substitute whitespace_regexp for spaces, if it is nonzero. (whitespace_regexp): New variable. (re_set_whitespace_regexp): New function. 2004-11-19 Kim F. Storm * indent.c (Fvertical_motion): Fix last change. 2004-11-18 Kim F. Storm * indent.c (Fvertical_motion): Undo 2004-11-16 change. Instead, move back again if reseating moves too far ahead. 2004-11-17 Luc Teirlinck * xdisp.c (message3): Call clear_message. 2004-11-17 Kim F. Storm * xdisp.c (erase_phys_cursor): Adjust cursor row visible height. 2004-11-16 Jan Djärv * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW. * xmenu.c (x_menu_in_use): Remove. (x_menu_set_in_use): Also set popup_activated_flag. * xfns.c (Fx_file_dialog): Call popup_activated instead of x_menu_in_use. Call x_menu_set_in_use in Motif version also. * xterm.h (x_menu_in_use): Remove. 2004-11-16 Richard M. Stallman * keymap.c (Fmap_keymap): New arg SORT-FIRST. Use map-keymap-internal to implement that. * indent.c (Fvertical_motion): In batch mode, use vmotion directly. 2004-11-16 Stefan Monnier * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's a window before using XWINDOW. * window.c (make_window, Fselect_window, make_dummy_parent) (save_window_save): * frame.c (make_frame): * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments. * lisp.h (NILP): Use EQ rather than XFASTINT. 2004-11-16 Kim F. Storm * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify. * indent.c (Fvertical_motion): Fix last change. Only reseat when moving backwards. 2004-11-16 Luc Teirlinck * dispextern.h: Extern reseat_at_previous_visible_line_start. 2004-11-16 Kenichi Handa * xdisp.c (display_mode_element): Fix previous change (calculate end position of substring to display correctly). 2004-11-16 Kim F. Storm * keyboard.c (Fposn_at_point): Remove extra */ after doc string. Reported by Andrew M. Scott. 2004-11-15 Kim F. Storm * fns.c (Fsafe_plist_get): New defun. (syms_of_fns): Defsubr it. * lisp.h (Fsafe_plist_get): Add EXFUN. * xdisp.c (store_mode_line_string, produce_stretch_glyph): Use Fsafe_plist_get. (note_mode_line_or_margin_highlight, note_mouse_highlight): Fix image map element parsing. Use Fsafe_plist_get. 2004-11-15 Richard M. Stallman * xdisp.c (get_next_display_element): Fix previous change. 2004-11-14 Jan Djärv * window.c (shrink_windows): Handle special case of one window left when trying to shrink the final reminder. Grow windows if total_removed is less than total_shrink. * xmenu.c (pop_down_menu): Remove global variable current_menu, extract pointer from arg with XSAVE_VALUE. (create_and_show_popup_menu, create_and_show_dialog, xmenu_show): Construct arg to record_unwind_protect with make_save_value. 2004-11-13 Richard M. Stallman * xdisp.c (reseat_at_previous_visible_line_start): No longer static. (get_next_display_element): Fix previous change to apply only to \n. * indent.c (Fvertical_motion): Scan to PT from start of line to make iterator consistent. * minibuf.c (syms_of_minibuf) : Doc fix. 2004-11-14 Jan Djärv * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT. * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use. Record unwind with clean_up_file_dialog. * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event): Declare. * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions. 2004-11-13 Jan Djärv * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel) (xg_file_sel_destroy): Remove. (xg_file_response_cb, pop_down_file_dialog) (xg_get_file_name_from_chooser, xg_get_file_name_from_selector): New functions. (xg_get_file_with_chooser, xg_get_file_with_selection): Take new arg func, set it to xg_get_file_name_from_chooser/selector. Move common code to xg_get_file_name. Return widget created. (xg_get_file_name): Set name, transient for, modal and destroy with parent here. Connect response signal to xg_file_response_cb, connect delete-event to gtk_true. Record pop_down_file_dialog for unwind. Do event loop and call x_menu_wait_for_event in loop. (xg_create_widget): Make dialogs modal. * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type Lisp_Object. (popup_get_selection): Move unwind protect ... (create_and_show_popup_menu, create_and_show_dialog): ... to here. Move destroy of widget to pop_down_menu. (popup_widget_loop): Move unwind protect ... (create_and_show_popup_menu, create_and_show_dialog): ... to here. Move destroy of widget to pop_down_menu. (pop_down_menu): BLOCK_INPUT and destroy widget/window. (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy, x_mouse_leave and grabbed = 0 to pop_down_menu. 2004-11-13 Kim F. Storm * xdisp.c (make_cursor_line_fully_visible_p): New variable. (syms_of_xdisp): DEFVAR_BOOL it. (make_cursor_line_fully_visible, try_cursor_movement) (try_window_id): Use it. 2004-11-12 Kim F. Storm * dispextern.h (struct glyph_row): New member extra_line_spacing. (struct it): New member max_extra_line_spacing. (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP) (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros. (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible part of last line is only extra line spacing (so the text on the line is fully visible). Use helper macros. Add W arg (to use them). All callers changed. (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P) (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros. * window.c (window_scroll_pixel_based, Frecenter): Use move_it_vertically_backward directly. (Frecenter): Fix calculation of new start pos for negative arg. Before, the new start pos was sometimes chosen too far back, so the last line became only partially visible, and thus would be either only semi-visible or automatically scrolled to the middle of the window by redisplay. * xdisp.c (init_iterator): Clear it.max_extra_line_spacing. (move_it_vertically_backward): Don't recurse to move further back. (move_it_vertically): Remove superfluous condition. (move_it_by_lines): Clear last_height when moved 0 lines. (resize_mini_window): Use it.max_extra_line_spacing. (display_tool_bar_line): Clear row->extra_line_spacing. (try_scrolling): Use move_it_vertically_backward directly. (redisplay_window): Likewise. (compute_line_metrics): Set row->extra_line_spacing. (display_line, display_string): Likewise. (x_produce_glyphs): Update it->max_extra_line_spacing. * xmenu.c (pop_down_menu): Return nil. 2004-11-12 Jan Djärv * xmenu.c (x_menu_wait_for_event): New function. (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event to handle timers. (popup_widget_loop): Add argument do_timers. (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for do_timers to popup_widget_loop. (xmenu_show): Call XMenuActivateSetWaitFunction so that x_menu_wait_for_event is called by XMenuActivate. (create_and_show_popup_menu): Pass 1 for do_timers to popup_get_selection. (pop_down_menu): New function. (popup_get_selection, popup_widget_loop): Unwind protect to pop_down_menu. (popup_widget_loop): Add argument widget. (create_and_show_popup_menu, create_and_show_dialog): Pass new argument widget to popup_widget_loop. 2004-11-10 Stefan Monnier * keymap.c (Fkeymap_prompt): Accept symbol keymaps. 2004-11-09 Kim F. Storm * xselect.c: Include and (for getpid). Fix various comments referring to XEvents instead of input events. (x_queue_event): Fix format strings. (x_stop_queuing_selection_requests): Likewise. * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'. (pint2hrstr): Add extra braces to silence compiler. * print.c (print_object): Fix format string. * lread.c (read1): Fix next_char matching. * lisp.h (Fdelete): Add EXFUN. (replace_range_2): Add prototype. * keyboard.c (read_avail_input): Remove unused variable 'discard'. * intervals.h (NULL_INTERVAL_P): Add separate version when ENABLE_CHECKING is not defined to silence compiler. (compare_string_intervals): Add prototype. * fringe.c (destroy_fringe_bitmap): Fix return type. (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'. * emacs.c (Fdump_emacs): Fix format string. * doc.c: Include . (Fsubstitute_command_keys): Remove unused variable 'firstkey'. * data.c (store_symval_forwarding): Remove unused variables. * callint.c (Fcall_interactively): Remove unused variable 'funcar'. 2004-11-09 Jan Djärv * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies to ${OLDXMENU}. 2004-11-09 Kim F. Storm * process.c (Fmake_network_process): Remove kludge for interrupted connects on BSD. If connect is interrupted, just close socket and start over rather than sleeping and retry with same socket. 2004-11-09 Jan Djärv * .cvsignore: Add buildobj.lst. * doc.c: New variable Vbuild_files. (Fsnarf_documentation): If Vbuild_files is nil, populate it with file names from buildobj.lst. Only attach docstrings from files that are in Vbuild_files. (syms_of_doc): Defvar Vbuild_files. * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o and w32*.o. (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked. (mostlyclean): Rm buildobj.lst. * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs is linked. 2004-11-09 Kim F. Storm * fringe.c (update_window_fringes): Update fringe bitmaps if cur and row ends_at_zv_p differs. If bitmaps of a row is updated, also update previous row to get rid of misc. artifacts. 2004-11-08 Kim F. Storm * xdisp.c (fast_find_position): Fix start pos if header line present. (note_mouse_highlight): Clear mouse face if we move out of text area. 2004-11-08 Eli Zaretskii * editfns.c: Move #include "systime.h" before . Don't include explicitly. Include unconditionally, not just on MacOS. 2004-11-08 Kenichi Handa * fontset.c (fontset_pattern_regexp): Cancel my previous change; don't pay attention to '\' before '*'. (fontset_pattern_regexp): Change the meaning of the second arg. (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset. (check_fontset_name): Try NAME as literal at first, and if it fails, try NAME as pattern. 2004-11-07 Jan Djärv * emacs.c (Fdump_emacs): Only output warning on GNU/Linux. 2004-11-07 Andreas Schwab * lisp.h (Fmsdos_downcase_filename): Declare. * dired.c (Fmsdos_downcase_filename): Don't declare here. * fileio.c: Likewise. 2004-11-07 Jan Djärv * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in comparisons with integers instead of Lisp_Object address. (Fmsdos_set_keyboard): Declare argument allkeys. * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s. * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid int/Lisp_Object mixup. * fileio.c: Ditto. 2004-11-06 Steven Tamm * editfns.c: Need to include sys/time.h before resource.h on darwin. 2004-11-06 Richard M. Stallman * callint.c (Fcall_interactively): Avoid reusing EVENT for other data. * xfaces.c (merge_named_face): GCPRO the face_name in the named_merge_point struct that we make. (merge_face_heights): Eliminate GCPRO arg. All callers changed. * keyboard.c (command_loop_1): Change Vtransient_mark_mode before deciding whether to inactivate mark. 2004-11-06 Lars Brinkhoff * config.in: Regenerate (add HAVE_GETRUSAGE). * editfns.c (Fget_internal_run_time): New function. (syms_of_data): Defsubr it. * fns.c (sxhash): As far as possible, merge calculation of hash code for symbols and strings. 2004-11-06 Eli Zaretskii * frame.c (syms_of_frame): Fix the example in the doc string. 2004-11-06 Jan Djärv * eval.c (Feval): Remove check for INPUT_BLOCKED_P. * xmenu.c (popup_get_selection, create_and_show_popup_menu) (create_and_show_dialog): Revert change from 2004-10-31. 2004-11-05 Luc Teirlinck * macros.c (syms_of_macros) : Doc fix. 2004-11-05 Kim F. Storm * print.c (print_object): Print Lisp_Misc_Save_Value objects. * fileio.c (Ffile_modes): Doc fix. (auto_save_1): Check for Ffile_modes nil value. 2004-11-05 Kim F. Storm * xselect.c (struct selection_event_queue, selection_queue) (x_queue_selection_requests, x_queue_event) (x_start_queuing_selection_requests) (x_stop_queuing_selection_requests): Add new queue for selection input events to replace previous XEvent queue in xterm.c. (queue_selection_requests_unwind): Adapt to new queue. (x_reply_selection_request): Adapt to new queue. Unexpect wait_object in case of x errors (memory leak). (x_handle_selection_request, x_handle_selection_clear): Make static. (x_handle_selection_event): New function. May queue selection events. (wait_for_property_change_unwind): Use save_value instead of cons. Clear property_change_reply_object. (wait_for_property_change): Abort if already waiting. Use save_value instead of cons for unwind data. (x_handle_property_notify): Skip events already arrived, but don't free them, as "arrived" field is checked by wait_for_property_change, and it will be freed by unwind or explicit unexpect_property_change. (x_get_foreign_selection): Add to new queue. (receive_incremental_selection): Don't unexpect wait_object when done as it has already been freed by previous wait_for_property_change. * xterm.h (x_start_queuing_selection_requests) (x_stop_queuing_selection_requests, x_handle_selection_request) (x_handle_selection_clear): Remove prototypes. (x_handle_selection_event): Add prototype. * xterm.c (handle_one_xevent): Don't queue X selection events here, it may be too late if we start queuing after we have already stored some selection events into the kbd buffer. (struct selection_event_queue, queue, x_queue_selection_requests) (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests) (x_stop_queuing_selection_requests): Remove/move to xselect.c. (x_catch_errors_unwind): Block input around final XSync. * keyboard.h (kbd_buffer_unget_event): Add prototype. * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code. (kbd_buffer_unget_event): New function. (kbd_buffer_get_event, swallow_events): Combine SELECTION events and use x_handle_selection_event. (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT. 2004-11-05 Jan Djärv * xselect.c (TRACE3): New debug macro. (x_reply_selection_request): Use it. (receive_incremental_selection): In call to TRACE0, the name of a symbol is in xname. 2004-11-05 Kim F. Storm * fontset.c (fontset_pattern_regexp): Use unsigned char. 2004-11-04 Jan Djärv * fileio.c (Fnext_read_file_uses_dialog_p): New function. * gtkutil.h (use_old_gtk_file_dialog): Declare. * gtkutil.c: Make use_old_gtk_file_dialog non-static. (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ... * xfns.c (syms_of_xfns): ... to here. * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if it doesn't start with /. 2004-11-04 Kenichi Handa * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\', treat it as a literal character. 2004-11-03 Kim F. Storm * .gdbinit (ppt): New function. 2004-11-02 Jan Djärv * xterm.c (x_window_to_scroll_bar): Only call xg_get_scroll_id_for_window if toolkit scroll bars are used. * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead of save. 2004-11-02 Andreas Schwab * window.c (Fscroll_right): Fix last change. 2004-11-02 Kim F. Storm * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h. 2004-11-02 YAMAMOTO Mitsuharu * callproc.c (Fcall_process): Block input around vfork. 2004-11-02 Kim F. Storm * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p. (syms_of_eval): Defsubr it. 2004-11-02 Richard M. Stallman * insdel.c (replace_range_2): New function. * casefiddle.c (casify_region): Handle changes in byte-length using replace_range_2. * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb. * xdisp.c (back_to_previous_visible_line_start): Subtract 1 from pos when checking previous newline for invisibility. * window.c (window_scroll_pixel_based): Update preserve_y for header line if any. (Fscroll_left, Fscroll_right): Don't call interactive_p; use a new second argument instead. * eval.c (Fcall_interactive_p): New function. (interactive_p): Don't test INTERACTIVE here. (Finteractive_p): Doc fix. * eval.c (Feval): Abort if INPUT_BLOCKED_P. 2004-11-02 KOBAYASHI Yasuhiro * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for comparing font names. 2004-11-02 Jan Djärv * fileio.c (Fread_file_name): Pass Qt as fifth parameter to Fx_file_dialog if only directories should be read. * lisp.h: Fx_file_dialog takes 5 parameters. * xfns.c (Fx_file_dialog): Both Motif and GTK version: Add parameter only_dir_p. In Motif version, don't put DEFAULT_FILENAME in filter part of the dialog, just text field part. Do not add DEFAULT_FILENAME to list of files if it isn't there. In GTK version, pass only_dir_p parameter to xg_get_file_name. * macfns.c (Fx_file_dialog): Add parameter only_dir_p. Check only_dir_p instead of comparing prompt to "Dired". When using a save dialog, add option kNavDontConfirmReplacement, change title to "Enter name", change text for save button to "Ok". * w32fns.c (Fx_file_dialog): Add parameter only_dir_p. Check only_dir_p instead of comparing prompt to "Dired". * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection): New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW respectively. (xg_get_file_name): Add parameter only_dir_p. Call xg_get_file_with_chooser or xg_get_file_with_selection depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog. (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog. * gtkutil.h (xg_get_file_name): Add parameter only_dir_p. * config.in: Rebuild (added HAVE_GTK_FILE_*). 2004-11-01 Kim F. Storm * process.c (connect_wait_mask, num_pending_connects): Only declare and use them if NON_BLOCKING_CONNECT is defined. (init_process): Initialize them if NON_BLOCKING_CONNECT defined. (IF_NON_BLOCKING_CONNECT): New helper macro. (wait_reading_process_output): Only declare and use local vars Connecting and check_connect when NON_BLOCKING_CONNECT is defined. 2004-11-01 Andy Petrusenco (tiny change) * w32term.c (x_scroll_run): Delete region objects after use. 2004-10-31 Jan Djärv * xmenu.c: Add prototypes for forward function declarations. (popup_get_selection): Remove parameter do_timers, remove call to timer_check. (create_and_show_popup_menu, create_and_show_dialog): Remove parameter do_timers from call to popup_get_selection. * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to tool_bar_items and assign the result to f->tool_bar_items if not equal. Move BLOCK/UNBLOCK_INPUT from around call to tool_bar_items to assignment of result. * atimer.c (alarm_signal_handler): Do not call set_alarm if pending_atimers is non-zero. 2004-10-31 Kim F. Storm * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor. 2004-10-28 Will Glozer * macterm.c: Allow user to assign key modifiers to the Mac Option key via a 'mac-option-modifier' variable. 2004-10-28 Stefan Monnier * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions): Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks. (x_handle_selection_request, x_handle_selection_clear) (x_clear_frame_selections, syms_of_xselect): Adjust accordingly. 2004-10-28 Richard M. Stallman * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes. * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes. 2004-10-27 Stefan Monnier * syntax.c (scan_sexps_forward): Give precedence to a 2-char comment-starter over a 1-char one. 2004-10-27 Richard M. Stallman * xdisp.c (get_next_display_element): In mode lines, treat newline and tab like other control characters. * editfns.c (Fmessage): Doc fix. * indent.c (vmotion): When moving up, check the newline before. Make prevline an int, not a Lisp_Object. 2004-10-27 Kim F. Storm * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA. Only allocate info and discarded tables once. * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer. (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used. (SAFE_FREE): Test it to determine if we need to unwind to free. Remove size arg. All users changed. (SAFE_FREE_LISP): Remove. All users changed to use SAFE_FREE. 2004-10-26 Jan Djärv * gtkutil.c: Put empty line between comment and function body. (xg_destroy_widgets): Rename from remove_from_container. Just destroy all widgets in list. Argument wcont removed. (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets instead of remove_from_container. (xg_display_close, xg_create_tool_bar, update_frame_tool_bar) (free_frame_tool_bar): Add comment. * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME is not NULL before strcmp. 2004-10-26 Kim F. Storm * callint.c (Fcall_interactively): Add 'U' code to get the up-event discarded by a previous 'k' or 'K' argument. 2004-10-26 David Kastrup * buffer.c (syms_of_buffer): Fix a few typos. 2004-10-26 Jan Djärv * xsmfns.c: Put empty line between comment and function body. Use two spaces before comment end. 2004-10-25 Kenichi Handa * fontset.c (fontset_pattern_regexp): Optimize for the case that PATTERN is full XLFD. 2004-10-24 Kenichi Handa * regex.h (enum reg_errcode_t): New value REG_ERANGEX. * regex.c (re_error_msgid): Add an entry for REG_ERANGEX. (regex_compile): Return REG_ERANGEX if appropriate. 2004-10-22 Kenichi Handa * editfns.c (Ftranslate_region_internal): New function. (syms_of_editfns): Defsubr it. 2004-10-22 Jan Djärv * xfns.c (xic_create_xfontset): Initialize missing_list to NULL. 2004-10-21 Károly Lőrentey * xterm.h (x_output): New member `xic_base_fontname'. (FRAME_XIC_BASE_FONTNAME): New macro. (xic_free_xfontset): Declare. * xfns.c (xic_create_xfontset): Share fontsets between frames based on base_fontname. (xic_free_xfontset): New function. (free_frame_xic): Use it. (xic_set_xfontset): Ditto. * xterm.c (xim_destroy_callback): Ditto. 2004-10-20 B. Anyos (tiny change) * w32term.c (x_draw_glyph_string): Use overline_color for overlines. 2004-10-20 Jan Djärv * xterm.h (XSync): If USE_GTK, define XSync as process_all and then XSync. * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF): New variables and constant. (main): Calculate heap_bss_diff. If we are dumping and the heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32 and exec ourself again. (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF print a warning. * lastfile.c: Make my_endbss and my_endbss_static available on all platforms. * Makefile.in (RUN_TEMACS): Remove @SETARCH@. * config.in (HAVE_PERSONALITY_LINUX32): Regenerate. 2004-10-19 Luc Teirlinck * data.c (Flocal_variable_if_set_p): Doc fix. 2004-10-19 Jason Rumney * w32.c (init_environment): Set emacs_dir correctly when running emacs from the build directory. 2004-10-19 Richard M. Stallman * editfns.c (Fdelete_and_extract_region): If region is empty, return null string. 2004-10-19 Jan Djärv * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left and canon_width. (xg_frame_cleared): Remove. * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose) (xg_find_top_left_in_fixed): Remove. (xg_create_scroll_bar): Put an event box widget between the scroll bar widget and the edit widget. (xg_show_scroll_bar): Show the parent widget (the event box). (xg_remove_scroll_bar): Destroy parent (the event box) also. (xg_update_scrollbar_pos): Remove arguments real_left and canon_width. Move the parent (the event box) widget inside the fixed widget. Move window clear to xterm.c. * gtkutil.h (xg_frame_cleared): Remove. * xterm.c (x_clear_frame): Remove call to xg_frame_cleared (x_scroll_bar_create, XTset_vertical_scroll_bar): Remove arguments left and width to xg_update_scrollbar_pos. (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also. 2004-10-19 Kenichi Handa * xdisp.c (display_mode_element): Fix display of wide chars. 2004-10-18 Jan Djärv * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to gdk_window_clear and move gdk_window_process_all_updates after clear so events are sent to the X server in correct order. 2004-10-18 Kenichi Handa * fontset.c (fs_load_font): Use fast_string_match_ignore_case for comparing font names. (fs_query_fontset): Use fast_string_match for comparing fontset names. (list_fontsets): Likewise. * search.c (fast_string_match_ignore_case): New function. * lisp.h (fast_string_match_ignore_case): Extern it. 2004-10-17 Kim F. Storm * xdisp.c (overlay_arrow_at_row): Return overlay string rather than bitmap if there is not left fringe. (get_overlay_arrow_glyph_row): Also used on windows system. (display_line): Display overlay string if no left fringe. 2004-10-16 Jason Rumney * w32fns.c (w32_font_match): Encode font name being matched. 2004-10-16 Richard M. Stallman * window.c (Fspecial_display_p): Doc fix. 2004-10-15 Stefan Monnier * doc.c (Fsubstitute_command_keys): Fix remap-handling. Don't ignore menus, because where-is-internal already does it for us. 2004-10-15 Kim F. Storm * xdisp.c (redisplay_window): Only update fringes and vertical border on window frames. 2004-10-14 Andreas Schwab * m/ia64.h (DATA_SEG_BITS): Don't define. 2004-10-14 Kim F. Storm * xterm.h: Include Xutil.h after keysym.h to work around bug in some X versions. 2004-10-13 Stefan Monnier * fns.c (map_char_table): Add missing gcpros. 2004-10-13 Stefan Monnier * keymap.c (get_keymap): An autoload form is not a keymap. * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky. 2004-10-13 Kim F. Storm * callproc.c (Fcall_process): Simplify handling of display arg. Resume `display_on_the_fly' once a coding system is determined. * xdisp.c (redisplay_preserve_echo_area): Fix last change. 2004-10-12 Kim F. Storm * xdisp.c (redisplay_preserve_echo_area): Flush display in case caller, such as call-process, is not going to poll for input. (calc_line_height_property): Handle case where it->object is nil. * xterm.c (x_redisplay_interface): Fix flush_display_optional. 2004-10-12 Kenichi Handa * xdisp.c (get_next_display_element): If unibyte_display_via_language_environment is zero, display 8-bit chars in octal in unibyte buffer. 2004-10-12 Kim F. Storm * doc.c (Fsubstitute_command_keys): Ignore remappings unless there are no ordinary bindings. 2004-10-11 Jan Djärv * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also. 2004-10-10 YAMAMOTO Mitsuharu * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow. (x_lower_frame): Add BLOCK_INPUT around SendBehind. (make_mac_frame): Add BLOCK_INPUT around the making of a terminal frame. (mac_initialize): Add BLOCK_INPUT around carbon initialization. * macgui.h (mktime): Use emacs_mktime. * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code. Make a cancel file-open dialog be like C-g. * mac.c (mktime): Use emacs_mktime. (Fdo_applescript): Add BLOCK_INPUT around do_applescript. (Fmac_paste_function): Add better error handling for carbon cut/paste. 2004-10-10 Kim F. Storm * keyboard.c (timer_resume_idle): New function to resume idle timer without resetting timers on the idle list. (read_char): Use timer_resume_idle. Remove local var last_idle_start. (timer_start_idle, timer_stop_idle): Declare static. (read_key_sequence): Use timer_resume_idle instead of timer_start_idle. * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes. 2004-10-08 Steven Tamm * config.in (HAVE_MALLOC_MALLOC_H): Regenerate. * macterm.c (mac_check_for_quit_char): Remove warning for using NULL where 0 should be used. * unexmacosx.c: Use malloc/malloc.h on Tiger instead of objc/malloc.h * mac.c: Include time.h for Tiger compatibility. 2004-10-07 Kim F. Storm * xdisp.c (redisplay_window): Fix flicker on vertical line between windows. Update vertical line after drawing window fringes, but only if actually drawing any bitmaps--or there is no fringe. * xterm.c (x_update_window_end): Likewise. * macterm.c (x_update_window_end): Likewise. * w32term.c (x_update_window_end): Likewise. * fringe.c (draw_window_fringes): Return value now indicates if any fringe bitmaps were redrawn (or there are no fringes). * dispextern.h (draw_window_fringes): Update prototype. 2004-10-06 YAMAMOTO Mitsuharu * macfns.c (mac_get_window_bounds): Add extern. (x_real_positions): Use mac_get_window_bounds. * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for xmenu.c (YAILOM). * macterm.c [!MAC_OSX]: Include Windows.h. (front_emacs_window): Rename from mac_front_window. All uses changed. Return the frontmost non-tooltip emacs window. (mac_get_window_bounds): New function. (x_calc_absolute_position): Use the difference of width and height between the inner and outer window. (x_set_offset): Specify window position by the coordinate of the outer window. Adjust the position if the title bar is completely outside the screen. (app_is_suspended, app_sleep_time): Remove unused variables. (do_app_resume, do_app_suspend): Remove their contents because window-activate/deactivate events will do the job. (do_zoom_window): Remove unused variables. Make compliant to the standard way of zooming. Set f->left_pos and f->top_pos. (XTread_socket): Don't use argument `expected'. Don't use FrontWindow to determine the clicked window. Exclude unprocessed mouseUp cases in the early stage. Add parentheses to fix operator precedence. (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area. 2004-10-05 Jan Djärv * config.in: Regenerate. * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of HAVE_EXECSHIELD. 2004-10-05 Jan Djärv * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for a row if Alt or Meta has been found for that row. Also stop scanning for Keysyms for that row. 2004-10-04 Kim F. Storm * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons to list. Include overlay arrow bitmap in return value. * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll bars with fractional column width. If scroll bar separates two windows, move it towards the window it belongs to. Only update the padding area below the scroll bar widget when necessary, i.e. when scroll bar widget is created, moved, or resized. * xdisp.c (define_frame_cursor1): Do not change frame cursor while tracking/dragging mouse. (x_draw_vertical_border): Do not draw line if frame has scroll bars. * window.c (coordinates_in_window): Relax check for cursor on vertical border between mode lines. (Fset_window_fringes): Do not allow negative widths. (Fset_window_scroll_bars): Likewise. * .gdbinit (pp): Shorthand for p ARG + pr. (ff): New command: flush frame updates (X only). 2004-10-03 Michael Albinus * fileio.c (auto_save_1) Call Ffile_modes for remote files. 2004-09-30 Kenichi Handa * process.c (send_process): Free composition data. * fileio.c (Finsert_file_contents): Free composition data. * coding.c (code_convert_region): Don't skip ASCIIs if there are compositions to encode. (encode_coding_string): Likewise. Free composition data. 2004-09-30 Florian Weimer * coding.c (code_convert_region): Free composition data. 2004-09-29 Kim F. Storm * fringe.c: Remove limit on number of bitmaps. (fringe_bitmaps, fringe_faces): Change to pointers. (max_fringe_bitmaps): New var. (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces. (init_fringe): Allocate fringe_bitmaps and fringe_faces. * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps). (struct glyph_row): Reorder fringe_bitmap related fields. (struct it): Likewise. * w32term.c (fringe_bmp): Change to pointer. (max_fringe_bmp): New var. (w32_define_fringe_bitmap): Expand fringe_bmp. (w32_draw_fringe_bitmap): Check max_fringe_bmp. (w32_destroy_fringe_bitmap): Likewise. 2004-09-29 Kim F. Storm * fringe.c: Simplify last change. (lookup_fringe_bitmap): New function. (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove. (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap. Keep standard bitmaps in Vfringe_bitmaps. (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap. (Fset_fringe_bitmap_face): Likewise. * dispextern.h (lookup_fringe_bitmap): Add prototype. (valid_fringe_bitmap_p): Remove prototype. * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap. 2004-09-29 Kim F. Storm * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap) (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif). * dispextern.h (valid_fringe_bitmap_p): Fix prototype. * fringe.c (Vfringe_bitmaps): New variable. (syms_of_fringe): DEFVAR_LISP it. (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p. Change arg to Lisp_Object and fail if not an integer. (get_fringe_bitmap_name, resolve_fringe_bitmap) (destroy_fringe_bitmap): New functions. (Fdestroy_fringe_bitmap): Change arg to bitmap symbol. Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and clear its fringe property. (init_fringe_bitmap): Use destroy_fringe_bitmap instead of Fdestroy_fringe_bitmap. (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps and set fringe property. Signal error if no free slots. (Fset_fringe_bitmap_face): Change arg to bitmap symbol. (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers. * xdisp.c (handle_single_display_prop): Fringe bitmaps are now symbols with a fringe property. 2004-09-27 Kim F. Storm * buffer.c (syms_of_buffer) : Doc fix. Format may now be a symbol or alist, not a cons. * fringe.c (update_window_fringes): Handle new formats of indicate-buffer-boundaries (symbol or alist). No longer allow a simple cons. (Ffringe_bitmaps_at_pos): Use nil value for no bitmap. 2004-09-25 Jan Djärv * config.in: Rebuild. 2004-09-24 Jan Djärv * config.in: Rebuild. * Makefile.in: Run setarch i386 ./temacs if exec-shield is present. 2004-09-18 Stefan Monnier * xterm.c (x_term_init): Work around a bug in some X servers. 2004-09-18 Richard M. Stallman * buffer.c (syms_of_buffer) : Doc fix. * xdisp.c (try_window_reusing_current_matrix): Handle the case where we reach the old displayed text, out of sync with the old line boundary. 2004-09-14 Stefan Monnier * fileio.c (Finsert_file_contents): Fix case of replacement in a narrowed buffer. 2004-09-14 Kim F. Storm * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT. * xfaces.c (Qface_no_inherit): New var. (syms_of_xfaces): Intern and staticpro it. (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute) (Finternal_copy_lisp_face, update_face_from_frame_parameter): Don't increment face_change_count when face has non-nil face-no-inherit property. 2004-09-13 Stefan Monnier * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC. (Fbyte_code): Remove dead code after `wrong_type_argument'. * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl before doing the mark_stack_check_gcpros since they're not on the stack. 2004-09-12 Kim F. Storm * editfns.c (Fformat): Handle format strings with multiple text properties. Reverse text property list from the format string, so the positions are in increasing order. 2004-09-10 Jan Djärv * xselect.c (x_reply_selection_request): XSync and UNBLOCK before x_uncatch_errors so that possible protocol errors are delivered. 2004-09-10 Eli Zaretskii * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and blockinput.h. (dosfns.o): Depend on blockinput.h, window.h, dispextern.h, charset.h, and coding.h (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h. (term.o): Depend on window.h and keymap.h. (abbrev.o): Depend on syntax.h. (callint.o): Depend on keymap.h. (casefiddle.o): Depend on charset.h and keymap.h. (category.o): Depend on keymap.h. (coding.o): Depend on dispextern.h. (cmds.o): Depend on keyboard.h and keymap.h. (dispnew.o): Depend on indent.h and intervals.h. (doc.o): Depend on keymap.h. (editfns.o): Depend on frame.h. (emacs.o): Depend on dispextern.h. (fileio.o): Don't depend on ccl.h. (filelock.o): Depend on charset.h and coding.h. (frame.o): Depend on w32term.h and macterm.h. (insdel.o): Depend on region-cache.h. (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h. (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h. (search.o): Depend on $(INTERVALS_SRC). (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC). (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC), xterm.h, w32term.h, and macterm.h. (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h, w32term.h, and macterm.h. (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC), region-cache.h, xterm.h, w32term.h, and macterm.h. (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h. (data.o): Depend on frame.h. (fns.o): Depend on keymap.h, xterm.h, and blockinput.h. (print.o): Depend on termchar.h and $(INTERVALS_SRC). (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h. (intervals.o): Depend on keymap.h. * msdos.c (msdos_set_cursor_shape, IT_display_cursor): Add debugging print-out to termscript. 2004-09-09 Richard M. Stallman * xdisp.c (decode_mode_spec): Use current buffer for most purposes. 2004-09-08 Richard M. Stallman * window.c (Fset_window_buffer): Doc fix. * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use. 2004-09-08 Dan Nicolaescu * minibuf.c (history_delete_duplicates): New variable. (read_minibuf): Use it. (syms_of_minibuf): Create the corresponding lisp variable. 2004-09-08 Kim F. Storm * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in overlay just before point. 2004-09-07 Luc Teirlinck * buffer.h (struct buffer): Add auto_save_file_format field. * buffer.c (reset_buffer, init_buffer_once): Handle auto_save_file_format field. (syms_of_buffer): Add DEFVAR_PER_BUFFER for `buffer-auto-save-file-format'. * fileio.c: Delete declaration for removed Vauto_save_file_format. (build_annotations): Adapt to replacement of `auto-save-file-format' with the new buffer-local variable `buffer-auto-save-file-format'. (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format. 2004-09-07 Jason Rumney * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c. * w32fns.c (w32_wnd_proc) : Handle Unicode menu titles. 2004-09-07 Kim F. Storm * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor' property from text property or overlay strings at point. 2004-09-07 Stefan Monnier * xmenu.c (update_submenu_strings): YAILOM. (set_frame_menubar): Make sure last_i is initialized. 2004-09-03 Jason Rumney * w32menu.c (_widget_value): Add lname and lkey. (digest_single_submenu): Set lname and lkey in widget_value instead of name and key. (update_submenu_strings): New function. (set_frame_menubar): Remove call to inhibit_garbage_collection, call update_submenu_strings. * w32menu.c (globals_of_w32menu): Check for Unicode API. (digest_single_submenu, w32_menu_show): Encode menu strings as UTF-8 if Unicode API is available. (utf8to16): New function. (add_menu_item): Use it when calling Unicode API. 2004-09-03 Kim F. Storm * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property in overlay or text-property strings; set cursor on corresponding glyph rather than at end of the string. 2004-09-02 YAMAMOTO Mitsuharu * macfns.c (x_real_positions): Save the current window port and set a new one before obtaining the global coordinate. Use FRAME_MAC_WINDOW. (x_set_name, x_set_title): Encode title to UTF8. Use SetWindowTitleWithCFString. (Fx_server_version): Get correct OS version. * macmenu.c (add_menu_item): Remove unused variable `i'. Don't let separator items destroy reference constants of other menu items. * macterm.c (x_update_end): Move SetPortWindowPort to inside BLOCK_INPUT. (x_set_offset): Use FRAME_MAC_WINDOW. * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to nontext_cursor if it is on a scroll bar. * s/darwin.h (LIBS_CARBON): New define to specify libraries for Carbon support. (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++. Use LIBS_CARBON. 2004-09-02 Jan Djärv * xfns.c (x_set_name_internal): New function. Check if we shall call xfree before ENCODE_UTF_8. (x_set_name, x_set_title): Call x_set_name_internal. 2004-08-31 NAKAMURA Toshikazu (tiny change) * w32fns.c (w32_load_font): If a BDF font is already loaded, do not reload it. 2004-08-30 Jan Djärv * macmenu.c (_widget_value): Add lname and lkey. (single_submenu): Set lname and lkey in widget_value instead of name and key. (update_submenu_strings): New function. (set_frame_menubar): Remove call to inhibit_garbage_collection, call update_submenu_strings. * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value instead of name and key. (update_submenu_strings): New function. (set_frame_menubar): Remove call to inhibit_garbage_collection, call update_submenu_strings. * gtkutil.h (_widget_value): Added lname and lkey. 2004-08-30 Steven Tamm * macmenu.c (mac_menu_show): Remove shadowing of menu variable by using different names for inner loop variables. 2004-08-27 Jan Djärv * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection from 1.233 so that strings from ENCODE_UTF_8 isn't GC:ed before used. * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when tool bar items is 0. 2004-08-26 YAMAMOTO Mitsuharu * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte strings in menu items. (single_submenu): Use ENCODE_MENU_STRING (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because button release isn't passed to event loop (add_menu_item): Use SetMenuItemWithCFString. 2004-08-26 Steven Tamm * fileio.c (Fread_file_name): Call x_file_dialog on carbon on tool-bar/menu click. * macfns.c (Fx_file_dialog): Implement using NavServices. 2004-08-24 Jan Djärv * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed. * xfns.c (x_window_to_frame, x_any_window_to_frame) (x_non_menubar_window_to_frame, x_menubar_window_to_frame) (x_top_window_to_frame): Return 0 if wdesc is None. 2004-08-22 Richard M. Stallman * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: If there's no char for this signal, drop through and use system calls. * bytecode.c (Fbyte_code) : Cannot GC. 2004-08-20 Kim F. Storm * process.c (wait_reading_process_output): Rename from wait_reading_process_input. All uses changed. (wait_reading_process_output_1): Rename from wait_reading_process_input_1. All uses changed. * dispnew.c (Fsleep_for): Remove obsolete code. 2004-08-20 Kenichi Handa * syntax.c (skip_chars): Fix for unibyte case. 2004-08-19 Stefan Monnier * syntax.c (char_quoted): Mixup byte/char pos. (back_comment): Fixup globals in all cases. 2004-08-19 Jan Djärv * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before passing it to gtk_window_set_title. 2004-08-19 Kim F. Storm * process.c (wait_reading_process_input): Clean up. Add wait_for_cell, wait_proc, and just_wait_proc args to avoid overloading `read_kbd' and `do_display' args. Change read_kbd arg to int. All callers changed. * process.c (process_send_signal): Use CDISABLE. * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE. 2004-08-18 Kim F. Storm * process.c (Faccept_process_output): Add arg JUST-THIS-ONE; forward to wait_reading_process_input via DO_DISPLAY arg. (wait_reading_process_input): If DO_DISPLAY < 0 for a process object, only process output from that process; also inhibit running timers if DO_DISPLAY==-2. 2004-08-17 Kim F. Storm * process.c (process_send_signal): Fix last change--use _POSIX_VDISABLE instead of CVDISABLE when available. 2004-08-16 Richard M. Stallman * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]: Set VQUIT and VINTR chars to the standard ones if they are unset. [AIX]: Don't do that here. And don't force VINTR to standard when SIGNALS_VIA_CHARACTERS. * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up. Do nothing if the character is CVDISABLE. * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op. * intervals.c (move_if_not_intangible): Force POSITION to be between BEGV and ZV. 2004-08-14 John Paul Wallington * buffer.c (Frestore_buffer_modified_p): Doc fix. * fileio.c (Fread_file_name): Doc fix. * minibuf.c (syms_of_minibuf) : Doc fix. 2004-08-09 Luc Teirlinck * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes. 2004-08-08 Luc Teirlinck * keyboard.c: Declare Qdisabled_command_function instead of Qdisabled_command_hook. (Fcommand_execute): Use Qdisabled_command_function instead of Qdisabled_command_hook. (syms_of_keyboard): Ditto. 2004-08-07 Luc Teirlinck * keymap.c (Flocal_key_binding, Fglobal_key_binding) (syms_of_keymap) : Doc fixes. 2004-08-07 Stefan Monnier * window.c (window_list_1): YAILOM. * fileio.c (make_temp_name): Handle multibyte prefixes. 2004-08-06 Luc Teirlinck * keyboard.c (syms_of_keyboard) : Doc fix. 2004-08-03 Kenichi Handa * coding.c (decode_coding_string): Adjust coding->consumed, and etc. with shrinked_bytes. 2004-08-03 Kim F. Storm * indent.c (compute_motion): Fix check for full width window in non-window case. Do not count left truncation glyph on window systems. 2004-08-02 Luc Teirlinck * data.c (Finteractive_form): Doc fix. 2004-08-02 Kim F. Storm * indent.c (compute_motion): Use actual window width if WIDTH is -1, properly accounting for continuation glyph on non-window systems. (Fcompute_motion): Use actual window width if WIDTH is nil, and actual window width/height if TOPOS is nil, properly accounting for continuation glyphs on non-window systems, and optional header lines. (vmotion): Let compute_motion calculate actual window width. * window.c (window_scroll_line_based): Let compute_motion calculate actual window width. 2004-08-02 Kim F. Storm * process.c (read_process_output): Use whole read buffer. Don't trigger adaptive read buffering on errors. 2004-07-31 Luc Teirlinck * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes. * keyboard.c (syms_of_keyboard) : Doc fix. * callint.c (Fcall_interactively): Doc fix. 2004-07-30 Richard M. Stallman * abbrev.c (Fexpand_abbrev): Undo previous change. 2004-07-30 Kim F. Storm * editfns.c (Fformat): Allocate extra (dummy) element in info. 2004-07-28 Luc Teirlinck * eval.c (Fdefvar, Fdefconst): Doc fixes. 2004-07-27 Kim F. Storm * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after we have ensured that the glyph fits on the current line (or returned MOVE_LINE_CONTINUED otherwise). 2004-07-26 Kim F. Storm * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV if target position is at end of display line but char is not a newline. 2004-07-25 Richard M. Stallman * window.c (coordinates_in_window): Return ON_SCROLL_BAR instead of ON_VERTICAL_BORDER, when on scroll bar. (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil. * dispextern.h (enum window_part): Add ON_SCROLL_BAR. * window.c (Fcoordinates_in_window_p): Take account of FRAME_INTERNAL_BORDER_WIDTH. * alloc.c (check_cons_list): New function (contents commented out). 2004-07-24 Luc Teirlinck * xfaces.c (Fcolor_supported_p): Doc fix. * frame.c (Fselect_frame, Fset_frame_selected_window) (Fframe_visible_p, Fraise_frame): Doc fixes. 2004-07-24 Richard M. Stallman * keyboard.h (not_single_kboard_state): Declare. * fileio.c (Fwrite_region): Doc fix. * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH. * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook only when a real abbrev is present. * xfns.c (x_icon_verify): New function. (Fx_create_frame): Use it. 2004-07-22 Barry Fishman (tiny change) * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined. 2004-07-21 Kim F. Storm * window.h (struct glyph_matrix): New members nrows_scale_factor and ncols_scale_factor. * window.c (make_window): Initialize nrows_scale_factor and ncols_scale_factor members. * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor. (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up. (required_matrix_height): Apply nrows_scale_factor. (required_matrix_width): Apply ncols_scale_factor. * xdisp.c (display_line): Increment nrows_scale_factor and set fonts_changed_p if past last allocated row. (append_glyph, append_composite_glyph, produce_image_glyph) (append_stretch_glyph): Increment ncols_scale_factor and set fonts_changed_p if current area is full. 2004-07-21 Jan Djärv * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0. 2004-07-19 Luc Teirlinck * window.c (Fpos_visible_in_window_p, Fset_window_hscroll) (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point) (Fset_window_start, Fscroll_up, Fscroll_down) (Fother_window_for_scrolling, Fscroll_other_window) (Fsave_window_excursion, Fset_window_vscroll) (syms_of_window) : Doc fixes. 2004-07-19 KOBAYASHI Yasuhiro * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of ENCODE_SYSTEM for filenames. 2004-07-18 YAMAMOTO Mitsuharu * mac.c (sys_select): Block input around call to ReceiveNextEvent to prevent breakage. Correctly handle blocking on event queue only by calling ReceiveNextEvent instead of select (since GUI events aren't on an fd). (sys_read): Remove function * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON. 2004-07-18 YAMAMOTO Mitsuharu * mac.c (sys_select): Redo sys_select to use alarm-based polling instead of 1 sec timeouts (like solaris). * macterm.c (x_make_frame_visible): Comment in polling on frame creation. * keyboard.c: Undef SIGIO on Carbon. * atimer.c (alarm_signal_handler): Call alarm handlers after scheduling. * eval.c (Feval): Remove quit_char test. * process.c (wait_reading_process_input): Remove clearing stdin for select call on process input. 2004-07-18 Luc Teirlinck * xdisp.c (syms_of_xdisp) : Correct capitalization error in docstring. 2004-07-17 Juanma Barranquero * keyboard.c (not_single_kboard_state): Do nothing unless MULTI_KBOARD is defined. 2004-07-17 Richard M. Stallman * window.c (coordinates_in_window): Inside the window but outside its box to the L or R, return ON_VERTICAL_BORDER. (window_list_1): Rotate the list to start with WINDOW. * print.c (print_preprocess): Test for print_depth at limit before entering in being_printed. * keyboard.c (not_single_kboard_state): New function. (stuff_buffered_input): Now no-op only if no SIGTSTP. * frame.c (Fdelete_frame): If we're in single_bboard_state on this kboard, and we delete its last frame, go to any_kboard_state. * buffer.c (syms_of_buffer) : Doc fix. 2004-07-15 KOBAYASHI Yasuhiro * w32fns.c (Fx_file_dialog): Encode strings in system coding system before passing them to OS functions for display. 2004-07-15 David Kastrup * search.c (syms_of_search): Staticpro `saved_last_thing_searched'. Apparently fixes an abort condition. 2004-07-14 Luc Teirlinck * fileio.c (Fvisited_file_modtime): Return a list of two integers, instead of a cons. 2004-07-14 Károly Lőrentey * keyboard.c (echo_dash): Do nothing if there already is a dash at the end of the echo string. 2004-07-12 Kim F. Storm * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value if GC_MARK_STACK. 2004-07-10 Luc Teirlinck * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes. * window.c (Fwindow_buffer, Fother_window, Fget_lru_window) (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on) (Freplace_buffer_in_windows, Fset_window_buffer) (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes. (syms_of_window): Expand docstring of `display-buffer-function'. 2004-07-09 Luc Teirlinck * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time) (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings that time values of the type (HIGH . LOW) are considered obsolete. 2004-07-06 Luc Teirlinck * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table' docstring. * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING. 2004-07-06 John Paul Wallington * eval.c (Fdefmacro): Signal an error if NAME is not a symbol. * fns.c (Fclear_string): Signal an error if STRING is not a string. 2004-07-05 Jan Djärv * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList instead of CGMainDisplayID (only in OSX 10.2 and later). 2004-07-04 John Paul Wallington * fileio.c (read_file_name_completion_ignore_case): New variable. (syms_of_fileio): Declare and initialise it. (Fread_file_name): Bind `completion-ignore-case' to respect it. 2004-07-03 Eli Zaretskii * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects for event.x and event.y. 2004-07-01 Kenichi Handa * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly after getting a new string by pre-write-conversion. 2004-06-30 Stefan Monnier * xterm.c (x_detect_focus_change): Remove unused var `nr_events'. (x_calc_absolute_position): Remove unused var `child'. * xfaces.c (x_supports_face_attributes_p) (Fdisplay_supports_face_attributes_p): YAILOM. (tty_supports_face_attributes_p): Remove unused var `i'. * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and back_unibyte_ok. * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM. * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'. * Makefile.in (${etc}DOC): Fix file name of make-docfile. 2004-06-30 Andreas Schwab * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES. (Finit_image_library): Pass LIBRARIES through to CHECK_LIB_AVAILABLE. Declare parameters. Doc fix. (lookup_image_type): Pass Qnil as second argument to Finit_image_library. * lisp.h (Finit_image_library): Declare. 2004-06-29 YAMAMOTO Mitsuharu * macterm.c (do_window_activate, do_window_deactivate): Remove. (XTread_socket): Send mouse button events to the toolbox dispatcher even when the mouse is grabbed. Don't process window activate events for non-Emacs windows. Replace function calls to do_window_activate and do_window_deactivate with their contents. Reset mouse grabbing status when a window is deactivated. 2004-06-29 Steven Tamm * macterm.c (mac_get_emulated_btn) (mac_event_to_emacs_modifiers): Fix emulated mouse button support to correctly mask out modifiers. 2004-06-29 David Kastrup * search.c (Fset_match_data): Allow buffer before end of list which can happen if set-match-data is using a pre-consed list. 2004-06-28 Steven Tamm * macterm.c (XTread_socket): Correctly set the frame position after the window is moved. 2004-06-28 Jan Djärv * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on gpix and gmask just before return to avoid memory leak. (xg_get_image_for_pixmap): Add workaround for monochrome displays so insensitive and activated icons look ok. 2004-06-27 Jason Rumney * w32fns.c (file_dialog_callback): Disable edit control if set to directories only on CDN_INITDONE message. (Fx_file_dialog): Default to directories only when prompt starts with "Dired". 2004-06-25 Kim F. Storm * alloc.c (allocate_misc): Update total_free_markers. (free_misc): New function. (safe_alloca_unwind, free_marker): Use it. * lisp.h (free_misc): Add prototype. * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs. 2004-06-24 Richard M. Stallman * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted. (syms_of_emacs): Lisp variables deleted. 2004-06-23 David Kastrup * search.c (Freplace_match): Adjust the match-data more thoroughly when replacing strings in the buffer. (Fmatch_data): When INTEGERS is non-nil and the last match was in a buffer, add the buffer as last element to the match data. (Fset_match_data): If an additional element of the match-data is a buffer, restore it to last_thing_searched. (save_search_regs): Save last_thing_searched as part of the match data. (restore_match_data): Restore it again. 2004-06-23 Luc Teirlinck * keymap.c (Ftext_char_description): Doc fix. * doc.c (Fsnarf_documentation): Doc fix. 2004-06-22 Kim F. Storm * fns.c (Fmapcar, Fmapconcat): GCPRO the args array. * lisp.h (struct Lisp_Save_Value): New member dogc. (SAFE_ALLOCA_LISP): Change second arg to number of elements. Set dogc member in Lisp_Save_Value object so it will be GC'ed. (SAFE_FREE_LISP): New macro. * alloc.c (safe_alloca_unwind): Clear dogc and pointer members. (make_save_value): Init new dogc member. (mark_object): Mark Lisp_Save_Value pointer array if dogc is set. * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and SAFE_FREE_LISP macros. 2004-06-22 Kim F. Storm * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects. Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects in that memory area are unknown to GC. Add comments. * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP. 2004-06-21 Kim F. Storm * lisp.h (MAX_ALLOCA): Define here. (safe_alloca_unwind): Add prototype. (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros. * alloc.c (safe_alloca_unwind): New function. * casefiddle.c (casify_object): Use SAFE_ALLOCA. * charset.c (Fstring): Use SAFE_ALLOCA. * coding.c (MAX_ALLOCA): Remove define. * data.c (MAX_ALLOCA): Remove define. (Faset): Use SAFE_ALLOCA. * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA. * fns.c (string_make_multibyte, string_to_multibyte) (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA. (MAX_ALLOCA): Remove define. (Fbase64_encode_region, Fbase64_encode_string) (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA. (Fbase64_encode_region, Fbase64_encode_string): Fix potential memory leak if encoding fails. * xdisp.c (add_to_log): Use SAFE_ALLOCA. 2004-06-21 Eli Zaretskii * print.c (Fwith_output_to_temp_buffer): Doc fix. 2004-06-20 Richard M. Stallman * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix. * search.c (match_limit): Cleaner err msg when no match data available. * window.c (syms_of_window): Doc fix. * keyboard.c (command_loop_1): Handle values `only' and `identity' for Vtransient_mark_mode. * buffer.c (syms_of_buffer): Doc fix. 2004-06-21 David Kastrup * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding and unbinding of `case-fold-search' according to `completion-ignore-case' around calls of string-match and predicates, respectively. Should give satisfactory performance in all relevant cases. 2004-06-17 Jan Djärv * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from clip_x/y_origin. * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca. * macfns.c (Fx_display_color_cells): Do not limit return value to 256. * macterm.c (mac_initialize_display_info): Initialize n_planes correctly on Mac OSX. 2004-06-16 Luc Teirlinck * buffer.c (syms_of_buffer): Clarify `fill-column' docstring. 2004-06-16 Kim F. Storm * dispextern.h (Vimage_types): Remove extern. 2004-06-16 Miles Bader * image.c (lookup_image_type): Initialize image type if necessary. 2004-06-15 Kim F. Storm * xdisp.c (try_cursor_movement): Exclude header line from scroll margin at top of window. (try_window_reusing_current_matrix): Calculate proper cursor position after scrolling up with non-zero scroll margin, as the old cursor position corresponds to value of PT before executing this command. (try_window_id): Consider scroll margin at bottom of window too; otherwise we fail to scroll when hl-line-mode is enabled. * syntax.c (skip_chars): Only recognize [:class:] when it has the proper format and class is a lower-case word. 2004-06-14 Jan Djärv * gtkutil.c (xg_get_image_for_pixmap): New function. (xg_get_gdk_pixmap_and_mask): Remove. (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of xg_get_gdk_pixmap_and_mask. * xterm.h (struct x_display_info): Typo in comment fixed. 2004-06-14 Juanma Barranquero * dispextern.h (Vimage_types): Make it conditional on HAVE_WINDOW_SYSTEM. * image.c (Vimage_types): Move from xdisp.c. (Vimage_type_cache): New variable. (define_image_type): New argument indicating whether an image library was loaded; cache loaded status and return t on success, nil otherwise. (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros. (w32_delayed_load): New function to load an image library from a list of possible filenames. (init_xpm_functions, init_png_functions, init_jpeg_functions) (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'. (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument. (Finit_image_library): New function, extracted from `init_image'. Try to initialize an image library on demand and cache whether we were successful or not. (syms_of_image): Initialize `Vimage_types' and `Vimage_type_cache'. Add recognized image types to Vimage_types. Export `init-image-library'. (init_image): Remove initialization of all image types, except xbm and pbm. * xdisp.c (Vimage_types): Delete (moved to image.c). 2004-06-14 Andreas Schwab * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): Avoid calling specbind when completion-regexp-list is empty. 2004-06-13 Richard M. Stallman * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t) (re_wctype, re_iswctype, re_wctype_to_bit): Non-function definitions moved here from regex.c. * regex.c (re_wctype, re_iswctype): Function defs longer static. (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t) (re_wctype, re_iswctype, re_wctype_to_bit): Non-function definitions moved to regex.h. * window.c (Fselect_window): Doc fix. * syntax.c: Include regex.h. (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed. If requested, make a list of classes, then check the scanned chars for membership in them. (in_classes): New function. Doc fix. * keyboard.c (cmd_error): Don't call any_kboard_state if inside a recursive edit level. 2004-06-13 Károly Lőrentey * keyboard.c (command_loop): Call any_kboard_state before command_loop_2 when at top level. 2004-06-13 Andreas Schwab * print.c (print_object): Always use %ld for printing EMACS_INT. * keyboard.c (cancel_hourglass_unwind): Return a value. (modify_event_symbol): Always use %ld for printing EMACS_INT. (Fexecute_extended_command): Likewise. * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to avoid clashes. (SYNTAX): Likewise. (SYNTAX_WITH_FLAGS): Likewise. (SYNTAX_MATCH): Likewise. * syntax.c (char_quoted): Avoid warning about undefined operation. (find_defun_start): Likewise. (scan_lists): Likewise. (INC_FROM): Likewise. (scan_sexps_forward): Likewise. * image.c: Include . * xfaces.c (face_attr_equal_p): Declare parameters. 2004-06-13 Kenichi Handa * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1. 2004-06-12 Matthew Mundell * eval.c (Fdefun): Signal an error if NAME is not a symbol. 2004-06-12 Kenichi Handa * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in ccl_prog_stack_struct and update it. (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook. (CCL_READ_CHAR): Get instruction counter from eof_ic, not from ccl->eof_ic on EOF. (ccl_debug_hook): New function. (struct ccl_prog_stack): New member eof_ic. (ccl_driver): Handle EOF in subroutine call correctly. 2004-06-11 Kenichi Handa * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT. 2004-06-11 Kim F. Storm * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown. 2004-06-11 Juanma Barranquero * keyboard.c (Fposn_at_point): Doc fix. 2004-06-11 David Kastrup * search.c (match_limit): Don't flag an error if match-data exceeding the allocated search_regs.num_regs gets requested, just return Qnil. 2004-06-08 Miles Bader * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected. 2004-06-07 Juanma Barranquero * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time) (Fcurrent_time_string, Fcurrent_time_zone) (Finsert_buffer_substring, Ftranspose_regions): Doc fixes. 2004-06-07 Miles Bader * xfaces.c (struct named_merge_point): New type. (push_named_merge_point): New function. (merge_named_face): New function. (merge_face_ref, face_at_buffer_position, face_at_string_position): Use `merge_named_face'. (merge_face_inheritance): Function removed. (merge_face_ref): Rename from `merge_face_vector_with_property'. Add new `err_msgs' and `named_merge_points' args. Return error status. Only print error messages if ERR_MSGS is true. Don't try to do :inherit attribute validation. (merge_face_heights): Handle `unspecified' in both directions. (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'. Call `merge_face_ref' instead of `merge_face_inheritance'. (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector) (compute_char_face, face_at_buffer_position) (face_at_string_position): Call `merge_face_ref' instead of `merge_face_vector_with_property'. 2004-06-07 Kenichi Handa * coding.c (find_safe_codings): Check NILP (safe_codings) only at the necessary places. 2004-06-07 Kim F. Storm * process.c (Fdelete_process): Undo 2004-05-28 change. Instead, call status_notify also for network process. (status_message): Use process instead of status as arg. Give messages "deleted" or "connection broken by remote peer" for an exited network process. (status_notify): Change call to status_message. (read_process_output): Increase readmax to 4096. Do not increase buffer size for datagram channels (default is now large enough). 2004-06-06 Steven Tamm * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation problem due to newly defined variable. 2004-06-06 Miles Bader * xfaces.c (Fdisplay_supports_face_attributes_p): Give up immediately if non-interactive or not initialized. 2004-06-05 Richard M. Stallman * minibuf.c (Fcompleting_read): Doc fix. 2004-06-05 Andreas Schwab * macfns.c (x_create_tip_frame): Fix declaration after statement. 2004-06-05 Juanma Barranquero * keymap.c (Fdescribe_vector): Fix docstring. (Fkey_description, Fglobal_key_binding): Fix typo in docstring. 2004-06-05 Miles Bader * xfaces.c (tty_supports_face_attributes_p): Make sure the specified attributes have different values than the default face. 2004-06-04 Eli Zaretskii * xfaces.c (x_supports_face_attributes_p): Make this function conditional on HAVE_WINDOW_SYSTEM. (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]: Don't call x_supports_face_attributes_p if it was not compiled in. 2004-06-04 Miles Bader * xfaces.c (tty_supports_face_attributes_p): New function, mostly from Ftty_supports_face_attributes_p. (x_supports_face_attributes_p): New function. (Ftty_supports_face_attributes_p): Function deleted. (Fdisplay_supports_face_attributes_p): New function. (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p. (face_attr_equal_p): New function. (lface_equal_p): Use it. 2004-06-03 Juanma Barranquero * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command) (Vw32_color_map): Fix typo in docstring. (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip) (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key): Make argument names match their use in docstring. 2004-06-02 Juanma Barranquero Work around bugs/problems with MinGW builds of graphics libraries called from MSVC builds of Emacs. * image.c (lookup_image): Make pointer to img static. (png_read_from_memory): Disable "global" optimization. 2004-06-01 Stefan Monnier * eval.c (Fcondition_case): Fix usage. Simplify. * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true. 2004-05-29 YAMAMOTO Mitsuharu * macfns.c: Don't include ccl.h. [MAC_OSX]: Don't include QuickTime/QuickTime.h. [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or TextUtils.h. (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors. (Fx_display_mm_height, Fx_display_mm_width): Calculate length from display height/width. (compute_tip_xy, Vx_max_tooltip_size): Declare. (unwind_create_tip_frame, compute_tip_xy): New functions. (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c. (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size, and last_show_tip_args. * macgui.h [!MAC_OSX]: Include Gestalt.h. (Cursor, No_Cursor): New defines. [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro. [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare. * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort. * macterm.c: Don't include Gestalt.h. (enum mouse_tracking_type, mouse_tracking_in_progress): Remove. (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap) (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap) (XFillRectangle, mac_draw_rectangle, mac_draw_string_common) (mac_copy_area, mac_copy_area_with_mask, x_update_end) (construct_mouse_click, XTmouse_position) (x_scroll_bar_report_motion, x_calc_absolute_position) (do_mouse_moved, do_zoom_window, mac_do_receive_drag) (XTread_socket, make_mac_frame): Use SetPortWindowPort. (note_mouse_movement): Clear the mouse face and reset the pointer shape when the pointer goes outside the frame without grabbing. (mac_front_window): New function. (mac_window_to_frame): New macro. (XTmouse_position, x_scroll_bar_report_motion, do_window_update) (do_window_activate, do_window_deactivate, do_app_resume) (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window) (do_zoom_window, mac_do_receive_drag, XTread_socket) (mac_check_for_quit_char): Use mac_front_window and/or mac_window_to_frame. (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a scroll-bar click event. (mac_define_frame_cursor): Change the pointer shape. (x_free_frame_resources): Reset tip_window to NULL when it is disposed of. [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable. [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor. (do_window_update): Don't do anything if the updated window is the tooltip window. (do_mouse_moved): Handle mouse movement events here (previously in XTread_socket). Clear the mouse face if dpyinfo->mouse_face_hidden is set. (do_os_event, do_events): Remove (now in XTread_socket). (XTread_socket): Immediately return if interrupt_input_blocked. Loop until all the events in the queue are processed. Rearrange codes for mouse grabbing. Add tooltip support. Include the contents of do_os_event and do_events. Remove mouse movement handling (now in do_mouse_moved). Add the case where Vmouse_highlight has an integer value. (NewMacWindow): Remove. (make_mac_frame): Do what NewMacWindow previously did. Don't do excess initializations. (make_mac_terminal_frame): Previous initializations in make_mac_frame are moved here. (mac_initialize_display_info): Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden. * xdisp.c [MAC_OS] (No_Cursor): Remove variable. (define_frame_cursor1): Don't treat HAVE_CARBON as a special case. 2004-05-29 Richard M. Stallman * lisp.h (truncate_undo_list): Update decl. * alloc.c (undo_outer_limit): New variable. (syms_of_alloc): Defvar it. (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list. * undo.c (truncate_undo_list): New arg LIMITSIZE. * alloc.c (lisp_align_malloc): Check for base == 0 regardless of HAVE_POSIX_MEMALIGN. Clean up HAVE_POSIX_MEMALIGN handling of `err'. 2004-05-28 Stefan Monnier * alloc.c: Undo Kim's recent changes and fix the same bug differently. (marker_blocks_pending_free): Remove. (Fgarbage_collect): Sweep after cleaning up undo-lists. Mark the undo lists after cleaning them up. Don't free block in marker_blocks_pending_free. (mark_buffer): Don't mark undo_list. (gc_sweep): Sweep hash-tables and strings first. Do free marker blocks that are empty. 2004-05-28 Jim Blandy * regex.c (print_partial_compiled_pattern): Add missing 'break' after 'case wordend'. For symbeg and symend, print to stderr, like the other cases. 2004-05-28 Noah Friedman * process.c (Fdelete_process): Do not call remove_process. 2004-05-28 Stefan Monnier * alloc.c (struct backtrace): Remove. (Fgarbage_collect): Use the new mark_backtrace. * eval.c (mark_backtrace): New function. * minibuf.c (run_exit_minibuf_hook): New function. (read_minibuf_unwind): Don't run exit-minibuffer-hook any more. (read_minibuf): Use separate unwind handler to run exit-minibuf-hook. 2004-05-27 Kim F. Storm * xdisp.c (back_to_previous_visible_line_start): Skip backwards over display properties, e.g. images, that replace buffer text. 2004-05-25 Kim F. Storm * alloc.c (marker_blocks_pending_free): New var. (gc_sweep): Store free marker blocks on that list. (Fgarbage_collect): Free them after undo-list cleanup. * process.c (wait_reading_process_input): Check connect_wait_mask before actually accepting connection in case it has already been accepted due to recursion. 2004-05-23 Károly Lőrentey * coding.c (Fset_safe_terminal_coding_system_internal): Set suppress_error in safe_terminal_coding, not terminal_coding. 2004-05-22 Richard M. Stallman * alloc.c (Fmake_string): Doc fix. * buffer.c (clone_per_buffer_values): Copy the alist of local vars, and the alist pairs too. * casefiddle.c (casify_object): Return OBJ unchanged if not real char. * emacs.c (main): Update copyright year. * fileio.c (Fread_file_name): Expand DIR if not absolute. * insdel.c (del_range_2, replace_range): Don't write an anchor if the gap is empty. * xdisp.c (try_scrolling): If scroll-up-aggressively or scroll-down-aggressively is small but positive, put point near the screen edge. 2004-05-22 Juanma Barranquero * keymap.c (Fdefine_key): Doc fix. 2004-05-22 Kim F. Storm * alloc.c (struct backtrace): Add debug_on_exit member. (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep. Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of the removed cons cells. (mark_object): Undo previous change - disallow Lisp_Misc_Free objects. (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have any cons cells pointing to unallocated strings. Do not lisp_free any marker blocks, as there may still be pointers to them from buffer undo lists at this stage of GC. * keyboard.c (struct backtrace): Add debug_on_exit member. (Fcommand_execute): Clear it. 2004-05-20 Luc Teirlinck * intervals.c (lookup_char_property): Do not prematurely return nil. 2004-05-19 Jim Blandy Add support for new '\_<' and '\_>' regexp operators, matching the beginning and end of symbols. * regex.c (enum syntaxcode): Add Ssymbol. (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword. (re_opcode_t): New opcodes `symbeg' and `symend'. (print_partial_compiled_pattern): Print the new opcodes properly. (regex_compile): Parse the new operators. (analyse_first): Skip sym(beg|end) (they match only the empty string). (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and \sw; `symbeg' is mutually exclusive with \S_ and \Sw. (re_match_2_internal): Match symbeg and symend. * search.c (trivial_regexp_p): \_ is no longer a trivial regexp. 2004-05-19 Kim F. Storm * .gdbinit (xsymbol): Fix last change. 2004-05-18 Stefan Monnier * .gdbinit (xprintstr): New fun. (xstring, xprintsym): Use it. * w32proc.c (create_child): Use INTMASK. * alloc.c (Fgarbage_collect): Do all the marking before flushing unmarked elements of the undo list. 2004-05-18 David Ponce * print.c (print): Reset print_depth before to call print_object. 2004-05-18 Jason Rumney * w32console.c: Prefix RIF functions with w32con_ to avoid namespace clash with functions in term.c and w32term.c. * w32menu.c (add_menu_item, w32_menu_display_help) [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member. * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype. 2004-05-18 Eli Zaretskii * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems. * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph with make_number. (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph with XINT. 2004-05-18 Kim F. Storm * blockinput.h (INPUT_BLOCKED_P): New macros. * keyboard.c (Frecursive_edit): Return immediately if input blocked. (Ftop_level): Unblock input if blocked. * buffer.h (GET_OVERLAYS_AT): New macro. * msdos.c (IT_note_mouse_highlight): Use it. * textprop.c (get_char_property_and_overlay): Use it. * xdisp.c (next_overlay_change, note_mouse_highlight): Use it. * xfaces.c (face_at_buffer_position): Use it. * print.c (print_object): Increase buf size. 2004-05-17 Jason Rumney * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key) (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member. (w32_quit_key): Rename from Vw32_quit_key, and make an int. (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int consistently. * w32proc.c (create_child): Use make_number instead of masking pid. * w32fns.c (w32_color_map_lookup): Return a Lisp_Object. (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets): Use EQ to compare Lisp_Objects. (w32_parse_hot_key): Use int for lisp_modifiers consistently. * w32term.c (w32_num_mouse_buttons): Rename from Vw32_num_mouse_buttons and make it an int. * w32.c (init_environment): Use it. * w32fns.c (w32_wnd_proc): Likewise. * w32proc.c (w32_pipe_read_delay): Rename from Vw32_pipe_read_delay and make it an int. * w32.c (_sys_read_ahead): Use it. * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition. * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid. * w32inevt.c (w32_console_mouse_position, do_mouse_event) (key_event): Don't mix Lisp_Object and int. * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location. * keyboard.c (kbd_buffer_get_event): Don't use event->code and modifiers in language change event. 2004-05-17 Kim F. Storm * alloc.c (mark_object): Ignore Lisp_Misc_Free objects. Such objects may be freed markers which still exist on an undo list. 2004-05-16 Juanma Barranquero * data.c (Fset_default): Make argument names match their use in docstring. 2004-05-15 Andreas Schwab * emacs.c (gdb_array_mark_flag): Define. * .gdbinit: Mask off gdb_array_mark_flag from vector sizes. 2004-05-15 Eli Zaretskii * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use __attribute__((__aligned__)), so that USE_LSB_TAG would not become defined for the MS-DOS build. 2004-05-14 Stefan Monnier * w32fns.c (Fw32_define_rgb_color): Avoid XSET. 2004-05-14 Kenichi Handa * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS. 2004-05-14 YAMAMOTO Mitsuharu * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c section to frame.c section. (Fxw_display_color_p, Fx_file_dialog): Declare if HAVE_WINDOW_SYSTEM defined. * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup. * macmenu.c (set_frame_menubar): Use NILP to test a lisp value. * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers) (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values. (XTread_socket): Fix int/Lisp_Object mixup. (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup. * macterm.h (struct frame, struct face, struct image) (display_x_get_resource, Fx_display_color_p) (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs): Add prototypes. 2004-05-14 Kim F. Storm * process.c (wait_reading_process_input): Make reentrant. Make Available and Connecting non-static. Save and restore value of waiting_for_user_input_p. 2004-05-13 Kim F. Storm * keyboard.c (mark_kboards): Don't mark x and y members that are overloaded in selection request events. 2004-05-13 Stefan Monnier * lisp.h (USE_LSB_TAG): Make it the default when it is known to work. 2004-05-13 Glenn Morris * window.c (Fdisplay_buffer, Fsplit_window) (split-height-threshold): Doc fix. 2004-05-13 Juanma Barranquero * xfaces.c (Ftty_supports_face_attributes_p) (Finternal_copy_lisp_face): Fix typo in docstring. (Finternal_get_lisp_face_attribute): Fix docstring. 2004-05-12 Jan Djärv * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK. 2004-05-11 Steven Tamm * macfns.c (Fx_create_frame): Default to using tool-bar by setting tool-bar-lines to 1 in default-frame-alist. 2004-05-11 YAMAMOTO Mitsuharu * image.c (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, xpm_load) (syms_of_image): Support XPM on Carbon Emacs. Does not depend on libXpm, but only supports XPM version 3 without extensions. 2004-05-11 YAMAMOTO Mitsuharu * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P instead of FRAME_X_P. 2004-05-11 Kim F. Storm * process.c (read_process_output): Grow decoding_buf when needed; this could cause a crash in allocate_string and compact_small_strings. 2004-04-29 Jim Blandy * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2 against proper opcode. 2004-05-10 Juanma Barranquero * process.c (Fstart_process): Fix docstring. * charset.c (Fget_unused_iso_final_char): Fix typos in docstring. (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction) (Fsplit_char, Fchar_charset): Make argument names match their use in docstring. 2004-05-10 Richard M. Stallman * print.c (print_preprocess): Use being_printed, loop_count and halftail to detect overdeep nesting and cyclic cdr chains. 2004-05-10 Andreas Schwab * lisp.h (Fmake_symbolic_link): Declare. * fileio.c (Frename_file): Remove extra argument in call to Fmake_symbolic_link. 2004-05-10 Kim F. Storm * xdisp.c (calc_line_height_property): Use string position when object is a string. 2004-05-10 Kenichi Handa * print.c (temp_output_buffer_setup): Bind inhibit-read-only and inhibit-modification-hooks to t temporarily before calling Ferase_buffer. * xfns.c (x_create_tip_frame): Bind inhibit-read-only and inhibit-modification-hooks to t temporarily before calling Ferase_buffer. * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and inhibit-modification-hooks to t temporarily before calling Ferase_buffer. * fns.c (count_combining): Delete it. (concat): Don't check combining bytes. 2004-05-09 Jason Rumney * w32fns.c (Vw32_ansi_code_page): New Lisp variable. (globals_of_w32fns): Set it. 2004-05-09 Piet van Oostrum * data.c (Fquo): Simplify. 2004-05-08 Peter Whaite (tiny change) * data.c (Fquo): If any argument is float, do the computation in floating point. 2004-05-08 Juanma Barranquero * process.c (Fwaiting_for_user_input_p, Fmake_network_process) (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering): Fix spelling of Emacs on docstring. (Fset_process_coding_system, Fprocess_coding_system) (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p): Make argument names match their use in docstring. (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process): Fix docstring. * editfns.c (Finsert_buffer_substring): Make argument names match their use in docstring. * syntax.c (Fmodify_syntax_entry): Fix docstring. 2004-05-07 Steven Tamm * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT around call to ReceiveEvent to avoid certain crashes. 2004-05-07 YAMAMOTO Mitsuharu * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData) (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap) (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap): Save/restore the current graphics port and device handle when drawing into an offscreen graphics world. * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1) (gif_load): Likewise. 2004-05-07 Juanma Barranquero * window.c (Fset_window_buffer): Fix docstring. 2004-05-06 Thien-Thi Nguyen * emacs.c (main) [VMS]: Fix var ref. 2004-05-06 Romain Francoise * data.c (Fsetq_default): Fix docstring. 2004-05-06 Jason Rumney * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h to avoid name clash. 2004-05-04 Jan Djärv * fileio.c (barf_or_query_if_file_exists): Use lstat. (Frename_file): Handle renaming of symlinks across file systems. (Frename_file): Put symlink handling inside #ifdef S_IFLNK. 2004-05-04 Kim F. Storm * xdisp.c (Qtotal): New var. (syms_of_xdisp): Intern and staticpro it. (calc_line_height_property): New arg total. Set it if line-spacing property has format (total . VALUE). (x_produce_glyphs): Ignore line-spacing if line-height is 0. Handle total line-spacing property. 2004-05-03 Jan Djärv * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear "under" scroll bar when size/position changes. 2004-05-03 Jason Rumney * makefile.nt: Remove. 2004-05-02 Eli Zaretskii * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT): Avoid compiler warnings. * Makefile.in (region-cache.o): Depend on config.h. 2004-05-02 Romain Francoise * indent.c (compute_motion): Save vpos in prev_vpos when dealing with continuation lines, too. 2004-05-02 Thien-Thi Nguyen * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'. 2004-05-01 Stefan Monnier * xdisp.c (calc_line_height_property): YAILOM (yet another int/Lisp_Object mixup). 2004-05-01 Eli Zaretskii * msdos.c (top-level): Add "#pragma pack(0)" after , to undo bad effect of pack(4) in some versions of system headers. 2004-05-01 Jason Rumney * w32term.c (x_draw_hollow_cursor): Sync with xterm.c. 2004-04-30 Kim F. Storm * buffer.c (syms_of_buffer) : Allow float value. (syms_of_buffer) : Doc fix. * dispextern.h (struct it): Remove member use_default_face. Add members override_ascent, override_descent, override_boff. * xdisp.c (init_iterator): Handle line-spacing float value. Initialize override_ascent member. (append_space_for_newline): Reset override_ascent. Remove use_default_face. (calc_line_height_property): New function to calculate value of line-height and line-spacing properties. Look at overlays, too. Set override_ascent, override_descent, override_boff members when using another face than the current face. Float values are now relative to the frame default font, by default; accept a cons of ratio and face name to specify value relative to a specific face. (x_produce_glyphs): Use calc_line_height_property. Use override_ascent etc. when set to handle different face heights. A negative line-spacing property value is interpreted as a total line height, rather than inter-line spacing. (note_mouse_highlight): Allocate room for 40 overlays initially. 2004-04-29 Stefan Monnier * data.c (Fsubr_name): New fun. (syms_of_data): Defsubr it. 2004-04-29 Kim F. Storm * xdisp.c (null_glyph_slice): New var. (append_glyph, append_composite_glyph, append_stretch_glyph): Use it to initialize glyph slice. 2004-04-27 Stefan Monnier * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup. (on_hot_spot_p): Make sure we always return a value. (Flookup_image_map): Remove unused var ix and iy. (note_mode_line_or_margin_highlight): Remove unused var `image'. 2004-04-27 Eli Zaretskii * msdos.c (init_environment): If one of the TMP... environment variables is set to a drive letter without a trailing slash, append a slash. 2004-04-27 Matthew Mundell * editfns.c (lisp_time_argument): Provide externally. * fileio.c (Fset_file_times): New function. (syms_of_fileio): Intern and staticpro it. 2004-04-27 Kim F. Storm * xdisp.c (x_produce_glyphs): Fix last change; handle newline in header line strings. * dispextern.h (struct it): New member use_default_face. * xdisp.c (Qline_height): New variable. (syms_of_xdisp): Intern and staticpro it. (append_space_for_newline): Partially undo 2004-04-25 change; add default_face_p arg, and restore callers. Clear it->use_default_face after use. (x_produce_glyphs): Set default font for ascii char if it->use_default_font is set. Change line-spacing property to set just extra line spacing. Handle new line-height property. 2004-04-26 Andreas Schwab * print.c (print_object): Print non-ascii characters in bool vector representation as octal escapes. * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define. * print.c (print_object): Use it instead of BITS_PER_CHAR for bool vectors. * lread.c (read1): Likewise. * alloc.c (Fmake_bool_vector): Likewise. * data.c (Faref, Faset): Likewise. * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray) (mapcar1): Likewise. 2004-04-26 Steven Tamm * lread.c (init_lread): Fix typo in HAVE_CARBON test logic. 2004-04-26 Miles Bader * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c. 2004-04-26 Juanma Barranquero * buffer.c (Fpop_to_buffer): Fix docstring. 2004-04-26 Steven Tamm * lread.c (init_lread): Don't display missing lisp directory warnings with Carbon Emacs because self-contained bundled Emacs may be built without correct installation path. 2004-04-25 Kim F. Storm * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines. * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines. * xdisp.c (append_space_for_newline): Rename from append_space. Remove DEFAULT_FACE_P arg; always use current face. Callers changed. (x_produce_glyphs): Handle line-spacing property on newline char. If value is t, adjust ascent and descent to fit current row height. If value is an integer or float, set extra_line_spacing to integer value, or to float value x current line height. 2004-04-23 Kenichi Handa * fontset.c (Finternal_char_font): If POSITION is nil, return font for displaying CH with the default face. 2004-04-23 Juanma Barranquero * makefile.w32-in: Add "-*- makefile -*-" mode tag. 2004-04-21 Stefan Monnier * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]: Don't make assumptions about the relative place of i and val. (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well. 2004-04-21 Kim F. Storm * dispextern.h (struct glyph_slice): New struct. (struct glyph): New member slice. (GLYPH_SLICE_EQUAL_P): New macro. (GLYPH_EQUAL_P): Use it. (struct glyph_string): New member slice. (struct it_slice): New struct. (struct it): New member slice, add member to stack too. New member constrain_row_ascent_descent_p. (image_ascent): Add prototype. * dispnew.c (buffer_posn_from_coords): Return full image width and height even for image slices (posn is relative to full image). (marginal_area_string): Adjust x0,y0 for image slice. * image.c (image_ascent): Add slice arg; calculate ascent for image slice (or full image). * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns. (syms_of_keyboard): Defsubr them. * lisp.h (pos_visible_p): Fix prototype. * macterm.c (x_draw_relief_rect): Add top_p and bot_p args. (x_draw_glyph_string_box): Fix call to x_draw_relief_rect. (x_draw_image_foreground, x_draw_image_relief) (x_draw_image_foreground_1, x_draw_image_glyph_string): Draw sliced images. * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args. (x_draw_glyph_string_box): Fix call to x_draw_relief_rect. (x_draw_image_foreground, x_draw_image_relief) (w32_draw_image_foreground_1, x_draw_image_glyph_string): Draw sliced images. * w32term.h (image_ascent): Remove prototype. * window.c (Fpos_visible_in_window_p): Return pixel position if PARTIALLY arg is non-nil. Simplify. Doc fix. (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg to return/set vscroll in pixels. * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN. * xdisp.c (Qslice): New variable. (syms_of_xdisp): Intern and staticpro it. (pos_visible_p): Return pixel position in new x and y args. (init_iterator): Reset it->slice info. (handle_display_prop): Parse (slice ...) property. (push_it, pop_it): Save/restore slice info. (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not force repositioning of tall row if window is vscrolled, as that would reset vscroll. (append_space): Set it->constrain_row_ascent_descent_p to avoid increasing row height if row is non-empty. (fill_image_glyph_string): Copy slice info. (take_vertical_position_into_account): Simplify. (produce_image_glyph): Handle iterator slice info, setup glyph slice info. Do not force minimum line height. (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set, do not increase height (ascent/descent) of non-empty row when adding normal character glyph; instead reduce glyph ascent/descent appropriately; if row is higher than current glyph, adjust glyph descent/ascent to reposition glyph within the existing row. Likewise, when char is newline, only set ascent/descent if row is currently empty. (note_mouse_highlight): Handle hotspots with sliced image. * xterm.c (x_draw_relief_rect): Add top_p and bot_p args. (x_draw_glyph_string_box): Fix call to x_draw_relief_rect. (x_draw_image_foreground, x_draw_image_relief) (x_draw_image_foreground_1, x_draw_image_glyph_string): Draw sliced images. * xterm.h (image_ascent): Remove prototype. 2004-04-20 Stefan Monnier * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup. 2004-04-20 John Paul Wallington * fns.c (Fassoc, Feql): Fix indentation. * fontset.c (regularize_fontname): Rename from regulalize_fontname. 2004-04-19 John Paul Wallington * fns.c (Feql): New function. (syms_of_fns): Defsubr it. 2004-04-18 Jason Rumney * w32select.c (Fw32_set_clipboard_data): Get sequence number after closing the clipboard. 2004-04-16 Luc Teirlinck * buffer.c (Fbuffer_base_buffer): Doc fix. 2004-04-17 Kim F. Storm * keymap.c (Fkey_description): Add optional PREFIX arg. Combine prefix with KEYS to make up the full key sequence to describe. Correlate meta_prefix_char and following (simple) key to describe as meta modifier. All callers changed. (describe_map): Rename arg `keys' to `prefix'. Remove local `elt_prefix' var. Use Fkey_description with prefix instead of elt_prefix combined with Fsingle_key_description. (describe_vector): Declare static. Replace arg `elt_prefix' with `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it if !KEYMAP_P. Use Fkey_description with prefix instead of Fsingle_key_description. * keymap.h (Fkey_description): Fix prototype. (describe_vector): Remove prototype. * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0. * image.c (PNG_BG_COLOR_SHIFT): Remove. (png_load): Fix calculation of transparent background color on X and W32 platforms. 2004-04-16 Juanma Barranquero * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is not too large before computing how much to scroll. 2004-04-15 Stefan Monnier * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler. 2004-04-14 Luc Teirlinck * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime): Add hyperlink to Elisp manual to the docstring. 2004-04-14 Stefan Monnier * callint.c (fix_command): Use XDCR. 2004-04-14 Nick Roberts * window.c (Fget_lru_window): Doc fix. 2004-04-14 Kim F. Storm * editfns.c (Fformat): Fix allocation size of precision array. * dispnew.c (update_window): Only set changed_p if scrolling_window actually did scroll. (scrolling_window): Only return 1 if we actually did scroll. * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor height to glyph height when cursor row is not fully visible. (make_cursor_line_fully_visible): Add FORCE_P arg to return failure in case row is higher than window. Callers changed. (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd). Try to scroll partially visible, higher-than-window cursor row. (redisplay_window): Always try to scroll partially visible, higher-than-window cursor row - both initially and again with centering_position = 0. Clear desired matrix before retrying with centering_position = 0. 2004-04-13 Stefan Monnier * syntax.c (scan_lists): Simplify backward string scan. Fix off-by-one boundary check for string and comment fences. 2004-04-13 Joe Buehler * sheap.c, unexcw.c: New files. 2004-04-12 Luc T