+2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * 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 <monnier@iro.umontreal.ca>
+
+ * fileio.c (Fmake_symbolic_link): Fix last change.
+
+2005-03-11 Richard M. Stallman <rms@gnu.org>
+
+ * 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 <handa@m17n.org>
+
+ * 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\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * 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 <storm@cua.dk>
+
+ * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
+
+2005-03-08 Kenichi Handa <handa@m17n.org>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <schwab@suse.de>
+
+ * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
+
+2005-03-06 Richard M. Stallman <rms@gnu.org>
+
+ * 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 <juri@jurta.org>
+
+ * 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 <ttn@gnu.org>
+
+ * 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 <ttn@gnu.org>
+
+ * 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 <mituharu@math.s.chiba-u.ac.jp>
+
+ * 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 <ttn@gnu.org>
+
+ * 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 <ttn@gnu.org>
+
+ * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
+ no longer special-case VMS. Add bogus return value.
+
+2005-03-02 Kim F. Storm <storm@cua.dk>
+
+ * dispextern.h (XASSERTS): Define to 0 if not already defined.
+ (xassert) [!XASSERTS]: Define dummy version.
+
+2005-03-02 Kim F. Storm <storm@cua.dk>
+
+ * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
+ Reported by David Kastrup.
+
+2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
+
+ * xdisp.c (get_next_display_element): Fix control and escape
+ glyph from display vector.
+
+2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
+
+2005-02-27 Richard M. Stallman <rms@gnu.org>
+
+ * xdisp.c (fast_find_position): Rename END to BEG.
+ (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
+
+2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <stahl@eos.franken.de> (tiny change)
+
+ * buffer.c (syms_of_buffer): Fix typo.
+
+2005-02-23 Lute Kamstra <lute@gnu.org>
+
+ * buffer.c (Foverlay_buffer): Doc fix.
+
+2005-02-22 Kim F. Storm <storm@cua.dk>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <monnier@iro.umontreal.ca>
+
+ * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
+
+2005-02-21 Kim F. Storm <storm@cua.dk>
+
+ * 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 <dak@gnu.org>
+
+ * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
+
+2005-02-20 Kim F. Storm <storm@cua.dk>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <monnier@iro.umontreal.ca>
+
+ * alloc.c (BLOCK_BYTES): Harmless typo.
+
+2005-02-17 Andreas Schwab <schwab@suse.de>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <Benjamin.Riefenstahl@epost.de>
+
+ * 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 <storm@cua.dk>
+
+ * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
+ at end of display vector.
+
+2005-02-15 Richard M. Stallman <rms@gnu.org>
+
+ * xdisp.c (get_next_display_element): Fix escape-glyph criterion
+ for mode and header lines.
+
+ * lread.c (syms_of_lread) <user-init-file>: 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 <handa@m17n.org>
+
+ * 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 <dann@ics.uci.edu>
+
+ * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
+
+2005-02-12 Kim F. Storm <storm@cua.dk>
+
+ * xdisp.c (expose_window): Don't fix overlaps for mode lines.
+
+2005-02-10 Kim F. Storm <storm@cua.dk>
+
+ * 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 <storm@cua.dk>
+
+ * undo.c (Fprimitive_undo): Check that undo function does not
+ switch buffer.
+
+2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * 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 <monnier@iro.umontreal.ca>
+
+ * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
+
+2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * 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 handeled 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 <storm@cua.dk>
+
+ * undo.c (Fprimitive_undo): Record max one dummmy apply element.
+
+2005-02-06 Richard M. Stallman <rms@gnu.org>
+
+ * 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 <schwab@suse.de>
+
+ * sysdep.c (sys_subshell): Properly terminate execlp argument list.
+
+2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * 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 <eliz@gnu.org>
+
+ * 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\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <mituharu@math.s.chiba-u.ac.jp>
+
+ * 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 <rms@gnu.org>
+
+ * 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 <steventamm@mac.com>
+
+ * macfns.c (unwind_create_frame): Fixing compile error due to
+ xassert being uncondition, but predicate is.
+ * dispnew.c (update_window): Fixing compile error due to
+ xassert being uncondition, but predicate is.
+
+2005-02-02 Miles Bader <miles@gnu.org>
+
+ * dispextern.h (xassert): Enable unconditionally.
+
+2005-02-02 Kim F. Storm <storm@cua.dk>
+
+ * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
+
+2005-02-02 Kenichi Handa <handa@m17n.org>
+
+ * 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 <storm@cua.dk>
+
+ * xdisp.c (back_to_previous_visible_line_start): Reset iterator
+ stack before calling handle_display_prop.
+
+2005-01-31 Kim F. Storm <storm@cua.dk>
+
+ * 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) <buffer-undo-list>: Doc fix.
+
+2005-01-30 Jesper Harder <harder@phys.au.dk>
+
+ * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
+ <mac-emulate-three-button-mouse>: Fix docstring indentation.
+
+2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
+
+ * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
+ Increase value to 3 Meg.
+
+2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
+ button events are not received otherwise.
+
+2005-01-29 Richard M. Stallman <rms@gnu.org>
+
+ * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
+
+ * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
+
+2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keymap.c (access_keymap): YAILOM.
+
+2005-01-27 Kim F. Storm <storm@cua.dk>
+
+ * 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 <monnier@iro.umontreal.ca>
+
+ * xterm.c (x_error_quitter): Add a prototype. Make it static again.
+
+2005-01-27 Kim F. Storm <storm@cua.dk>
+
+ * 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 <rms@gnu.org>
+
+ * xterm.c (x_error_quitter): No longer static, and moved after
+ x_error_handler.
+
+2005-01-24 Kim F. Storm <storm@cua.dk>
+
+ * 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 <mituharu@math.s.chiba-u.ac.jp>
+
+ * 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 <storm@cua.dk>
+
+ * 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 <storm@cua.dk>
* window.c (Fpos_visible_in_window_p): Simplify return value for
2005-01-22 Steven Tamm <steventamm@mac.com>
* s/darwin.h: Removed PTY_ITERATION from here.
- (DARWIN): Defined.
+ (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
2005-01-20 Steven Tamm <steventamm@mac.com>
- * editfns.c (Voperating_system_release): Added.
+ * 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): Added function to
+ (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): Defined minimum kernel version for
+ * 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 <storm@cua.dk>
2005-01-17 Kim F. Storm <storm@cua.dk>
- * dispnew.c (mode_line_string, marginal_area_string): Fix
- off-by-one error in search for glyph.
+ * dispnew.c (mode_line_string, marginal_area_string):
+ Fix off-by-one error in search for glyph.
2005-01-16 Kim F. Storm <storm@cua.dk>
2005-01-16 Steven Tamm <steventamm@mac.com>
- * macterm.c (mac_to_x_fontname): Removed spurious argument.
+ * macterm.c (mac_to_x_fontname): Remove spurious argument.
2005-01-16 Andreas Schwab <schwab@suse.de>
* 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): Removed.
+ (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,
2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
- * macfns.c (x_set_foreground_color, x_set_background_color): Sync
- with xfns.c.
+ * 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.
(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
+ 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.
* 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.
+ (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
[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
+ [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.
+ (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
2005-01-05 Romain Francoise <romain@orebokech.com>
* 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.
+ 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.
* 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_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
2004-12-29 Sanghyuk Suh <han9kin@mac.com>
* macterm.c (SelectionRange): Add Xcode position apple event struct.
- (do_ae_open_documents): Handle Xcode-style file position open
- events.
+ (do_ae_open_documents): Handle Xcode-style file position open events.
2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
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.
+ (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. Set return value.
+ (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 <dann@ics.uci.edu>
* 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.
+ (create_and_show_popup_menu, create_and_show_dialog):
+ Remove parameter down_on_keypress to popup_get_selection.
2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* 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.
+ (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
* 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] (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.
* 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".
+ (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_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]:
+ 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.
(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.
+ * 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.
(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.
+ (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
(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): 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.
(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.
+ (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).
2004-12-27 Richard M. Stallman <rms@gnu.org>
- * buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el).
+ * 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): Renamed from
+ * xdisp.c (single_display_spec_string_p): Rename from
single_display_prop_string_p.
- (single_display_spec_intangible_p): Renamed from
+ (single_display_spec_intangible_p): Rename from
single_display_prop_intangible_p.
- (handle_single_display_spec): Renamed from handle_single_display_prop.
+ (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),
* alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
Call that at the very start.
- (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
+ (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.
2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
- * macterm.c (endif, x_font_name_to_mac_font_name): Use
- maccentraleurroman instead of maccentraleuropean
+ * 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.
* sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
- * process.c (send_process_trap, sigchld_handler): Call
- SIGNAL_THREAD_CHECK.
+ * process.c (send_process_trap, sigchld_handler):
+ Call SIGNAL_THREAD_CHECK.
* data.c (arith_error): Call SIGNAL_THREAD_CHECK.
* alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
-2004-12-07 Stefan <monnier@iro.umontreal.ca>
+2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
* eval.c (init_eval_once): Increase max_specpdl_size to 1000.
* regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
(regex_compile): Return REG_ERANGEX if appropriate.
-2004-10-22 Kenichi Handa <handa@m17n.org>
-
- * editfns.c (Ftranslate_region_internal): New function.
- (syms_of_editfns): Defsubr it.
-
2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
* window.c (Fspecial_display_p): Doc fix.
-2004-10-15 Stefan <monnier@iro.umontreal.ca>
+2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
* doc.c (Fsubstitute_command_keys): Fix remap-handling.
Don't ignore menus, because where-is-internal already does it for us.
* search.c (Fmatch_data): Doc fix. Explicitly state that
match-data is undefined if last search failed.
- * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
+ * keymap.c (Fcommand_remapping): Rename from Fremap_command.
All uses changed.
2003-02-12 Juanma Barranquero <lektu@terra.es>
selected frame.
* keymap.c (apropos_predicate, apropos_accumulate): Make them static.
- (syms_of_keymap): staticpro them.
+ (syms_of_keymap): Staticpro them.
(Fapropos_internal): Initialize them and clear them out.
Don't GCPRO them.
These changes were in part based upon suggestions made by Peter
'Luna' Runestig [peter@runestig.com].
- * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
- g_b_init_get_token_information, g_b_init_lookup_account_sid,
- g_b_init_get_sid_identifier_authority ): Add several static
+ * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
+ (g_b_init_get_token_information, g_b_init_lookup_account_sid)
+ (g_b_init_get_sid_identifier_authority ): Add several static
global variables.
* w32.c (globals_of_w32): New function. Used to initialize those
* fns.c (concat): Likewise.
* lread.c (read_vector): Likewise.
- * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
+ * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
(STRING_SET_UNIBYTE): New macro.
- (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
+ (SET_STRING_BYTES): Delete. Callers (all of which supplied a
length of -1) changed to use STRING_SET_UNIBYTE.
* abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
2002-07-11 Richard M. Stallman <rms@gnu.org>
* alloc.c (Vmemory_full): New variable.
- (Vmemory_signal_data): Renamed from memory_signal_data.
+ (Vmemory_signal_data): Rename from memory_signal_data.
Uses changed.
(syms_of_alloc): Defvar them.
(memory_full, buffer_memory_full): Set Vmemory_full.
(reseat_at_next_visible_line_start, next_element_from_buffer):
Use `double', not `float', when calling indented_beyond_p.
- * s/hpux11.h (BROKEN_SA_RESTART): Defined.
+ * s/hpux11.h (BROKEN_SA_RESTART): Define.
* sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
2002-05-11 Kim F. Storm <storm@cua.dk>
- * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
+ * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
only update cmm_size if realloc actually succeeds.
Testing with initial size of 2 elements revealed that using
realloc on GNU/Linux would cause a random trap in xmalloc
2002-02-24 Kim F. Storm <storm@cua.dk>
- * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
+ * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
The validation of the event type was too strict as it didn't
allow string events; buffer names are used in bindings for
menu-bar-select-buffer (see `menu-bar-update-buffers').
prefix in the keymaps, i.e. [remap COMMAND].
* keymap.c (Qremap, remap_command_vector): New variables.
- (is_command_symbol): Removed function.
+ (is_command_symbol): Remove function.
(Fdefine_key): No longer accept a symbol for KEY.
Added validation of [remap COMMAND] argument for KEY.
The DEF is no longer required to be a symbol when remapping a command.
Doc updated. Callers changed. Pass arg to where_is_internal.
* keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
- (is_command_symbol): Added prototype.
+ (is_command_symbol): Add prototype.
* keyboard.c (Vthis_original_command): New variable.
(syms_of_keyboard): DEFVAR_LISP it.
2002-01-03 Kim F. Storm <storm@cua.dk>
- * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
+ * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
2002-01-02 Richard M. Stallman <rms@gnu.org>