+2005-02-22 Kim F. Storm <storm@cua.dk>
+
+ * 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@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.
(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): Added comment about the
+ * 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>
2005-02-05 Andreas Schwab <schwab@suse.de>
- * sysdep.c (sys_subshell): Properly terminate execlp argument
- list.
+ * sysdep.c (sys_subshell): Properly terminate execlp argument list.
2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* macfns.c (x_create_tip_frame): Likewise.
- * macterm.c (mac_draw_string_common, x_make_frame_visible):
- Likewise.
+ * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
2005-02-03 Richard M. Stallman <rms@gnu.org>
(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.
-<<<<<<< ChangeLog
- (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
- Reject only non-filename items. Set event modifiers and return value.
-=======
(mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
Reject only non-filename items. Set event modifiers, and return value.
->>>>>>> 1.4187
2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
(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.
-<<<<<<< ChangeLog
- (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.
->>>>>>> 1.4187
(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
2004-12-27 Richard M. Stallman <rms@gnu.org>
-<<<<<<< ChangeLog
- * buffer.c (Fbuffer_disable_undo): Delete (moved to simple.el).
-=======
* buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
->>>>>>> 1.4187
(syms_of_buffer): Don't defsubr it.
* process.c (list_processes_1): Set undo_list instead
* 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.
* 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>