* xselect.c: Include stdio,h.
[bpt/emacs.git] / src / ChangeLog
index 199a727..08c4f50 100644 (file)
@@ -1,3 +1,206 @@
+2004-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xselect.c: Include stdio,h.
+
+2004-02-05  Kenichi Handa  <handa@m17n.org>
+
+       * buffer.c (Fset_buffer_multibyte): Fix docstring.
+
+2004-02-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (Vmouse_events): Rename from Vmenu_events.
+       (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
+
+2004-02-04  Kenichi Handa  <handa@m17n.org>
+
+       * fns.c (Fset_char_table_range): Handle charsets ascii,
+       eight-bit-control, and eight-bit-graphic correctly.
+
+2004-02-03  Jason Rumney  <jasonr@gnu.org>
+
+       * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
+
+       * w32fns.c (x_to_w32_font): Likewise.
+
+2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.h: Add x_handle_dnd_message, x_check_property_data,
+       x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
+
+       * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
+       ClientMessages.
+
+       * xselect.c: Include termhooks.h and X11/Xproto.h
+       (x_check_property_data, x_fill_property_data)
+       (x_property_data_to_lisp, mouse_position_for_drop)
+       (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
+       (Fx_send_client_event): Move here from xfns.c.
+       (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
+
+       * xfns.c (x-send-client-message): Move to xselect.c
+       (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
+       OUTER_P.
+       (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
+       VECTOR_RET_P.  Handle AnyPropertyType.  Call x_property_data_to_lisp
+       if vector_ret_p is true.
+       (syms_of_xfns): Sx_send_client_message moved to xselect.c.
+
+2004-02-02  Eli Zaretskii  <eliz@elta.co.il>
+
+       * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
+       basename of FILE relative to it, not FILE itself.
+
+2004-02-02  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (coding_restore_composition): Check invalid
+       composition data more rigidly.
+
+2004-01-30  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * fileio.c (Fread_file_name_internal): Correctly handle the case
+       where insert-default-directory is nil.
+       (Fread_file_name): Always return an empty string if the user exits
+       with an empty minibuffer.  Adapt the docstring accordingly.
+       (syms_of_fileio): Adapt the docstring of insert-default-directory
+       to the change in Fread_file_name.
+
+2004-01-29  Eli Zaretskii  <eliz@elta.co.il>
+
+       * alloca.c [!alloca]: Fix the prototype for xfree.
+
+2004-01-29  Kenichi Handa  <handa@m17n.org>
+
+       * fns.c (string_char_to_byte): Optimize for ASCII only string.
+       (string_byte_to_char): Likewise.
+
+2004-01-28  Peter Runestig  <peter@runestig.com>
+
+       * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
+
+2004-01-27  Steven Tamm <steventamm@mac.com>
+
+       * unexmacosx.c (unexec_copy): Do not copy more than was
+       requested to prevent overwriting during unexec.
+
+2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * process.c (sigchld_handler): Add comment about not calling malloc.
+
+       * process.h: Add extern to synch_process_termsig.
+
+2004-01-27  Steven Tamm <steventamm@mac.com>
+
+       * macterm.c (make_mac_frame, make_mac_terminal_frame):
+       Move setting of scroll bars from make_mac_frame to
+       make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
+
+2004-01-26  Richard M. Stallman  <rms@gnu.org>
+
+       * search.c (Freplace_match): Handle nonexistent
+       back-references properly.
+
+2004-01-03  Richard M. Stallman  <rms@gnu.org>
+
+       * window.c (decode_any_window): New function.
+       (Fwindow_height, Fwindow_width, Fwindow_edges)
+       (Fwindow_pixel_edges, Fwindow_inside_edges)
+       (Fwindow_inside_pixel_edges): Use decode_any_window.
+
+2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * process.h: synch_process_termsig new variable.
+
+       * callproc.c: Define synch_process_termsig.
+       (Fcall_process): Initiate synch_process_termsig to zero and
+       check if non-zero and get signal name after subprocess has ended.
+
+       * process.c (sigchld_handler): Set synch_process_termsig
+       if terminated by a signal.  synch_process_death setting removed.
+
+       * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
+
+2004-01-26  Andreas Schwab  <schwab@suse.de>
+
+       * print.c (print_preprocess): Declare size as EMACS_INT to not
+       lose bits.
+       (print_object): Likewise.
+       * alloc.c (Fpurecopy): Likewise.
+
+2004-01-25  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * window.c (Fwindow_minibuffer_p): Doc fix.
+
+2004-01-24  Jonathan Yavner  <jyavner@member.fsf.org>
+
+       * editfns.c (Fformat): Make both passes accept the same set of flags.
+
+2004-01-23  Kenichi Handa  <handa@m17n.org>
+
+       * fns.c (Fmd5): If OBJECT is a buffer different from the current
+       one, set buffer to OBJECT temporarily.
+
+2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keyboard.c (kbd_buffer_gcpro): Remove.
+       (kbd_buffer_store_event, clear_event, Fdiscard_input)
+       (stuff_buffered_input, init_keyboard, syms_of_keyboard):
+       Don't initialize and/or maintain the variable any more.  It was made
+       redundant by my commit of 2003-06-15.
+
+       * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
+
+2004-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * lisp.h: Add undef DECL_ALIGN.
+
+2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * process.c (wait_reading_process_input) [SYNC_INPUT]:
+       Check interrupt_input_pending explicitly.
+
+       * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
+
+       * keyboard.c (handle_async_input): New fun,
+       extracted from input_available_signal.
+       (input_available_signal, reinvoke_input_signal): Use it.
+
+2004-01-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
+
+       * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
+       manipulation macros for when tags are in the lower bits.
+       (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
+       (DECL_ALIGN): New macro.
+       (DEFUN): Use it.
+
+       * lisp.h [ENABLE_CHECKING]: Don't force union type.
+
+       * s/darwin.h (__attribute__): Remove outdated workaround.
+
+       * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
+
+       * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
+       Don't check range of malloc address.
+       (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
+
+       * process.c (wait_reading_process_input): Lisp_Object/int mixup.
+
+       * dired.c (Ffile_attributes): Lisp_Object/int mixup.
+
+2004-01-19  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (fontset_font_pattern): Fix previous change.
+
+2004-01-16  Miles Bader  <miles@gnu.ai.mit.edu>
+
+       * xdisp.c (Voverflow_newline_into_fringe)
+       (move_it_in_display_line_to, redisplay_internal)
+       (update_window_fringes, redisplay_window, display_line, window):
+       Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
+       that it compiles without a window-system.
+       * dispnew.c (direct_output_for_insert, update_window): Likewise.
+
 2004-01-16  Kim F. Storm  <storm@cua.dk>
 
        * buffer.h (struct buffer): New member indicate_buffer_boundaries.
@@ -9,7 +212,7 @@
 
        * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
        right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
-       New members exact_window_width_line_p and cursor_in_fringe_p for 
+       New members exact_window_width_line_p and cursor_in_fringe_p for
        overflowing newlines into right fringe.
        New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
        and indicate_bottom_line_p for buffer boundaries and scrolling.
        continued lines.
        (display_line): Overflow newline into fringe for rows that are
        exactly as wide as the window.  Don't append space for newline
-       in this case.  
+       in this case.
        (notice_overwritten_cursor): Explicitly clear cursor bitmap
        in fringe as if it had been overwritten.
        (erase_phys_cursor): Erase cursor bitmap in fringe.
-       (syms_of_xdisp): Mark show-trailing-whitespace and 
+       (syms_of_xdisp): Mark show-trailing-whitespace and
        void-text-area-pointer as user options.
        DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
-       
+
        * xterm.c (x_update_window_end): Call draw_window_fringes.
        (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
        in row instead of actually drawing fringe bitmaps.
        * xdisp.c (note_mode_line_or_margin_highlight): Use modified
        mode_line_string and marginal_area_string functions to handle
        both string object and image object properties.
-       
+
 2004-01-06  Andreas Schwab  <schwab@suse.de>
 
        * syntax.c (skip_chars): Treat '-' at end of string as ordinary
 
 2004-01-02  Andreas Schwab  <schwab@suse.de>
 
-       * macterm.c (emacs_options, x_initialized, same_x_server): Remove
-       unused (and duplicated) definitions.
+       * macterm.c (emacs_options, x_initialized, same_x_server):
+       Remove unused (and duplicated) definitions.
 
 2004-01-02  Kim F. Storm  <storm@cua.dk>
 
 
 2004-01-01  Jason Rumney  <jasonr@gnu.org>
 
-       * w32term.c (w32_text_out): Use s->font, for consistency with
-       callers.
+       * w32term.c (w32_text_out): Use s->font, for consistency with callers.
 
 2003-12-30  Luc Teirlinck  <teirllm@auburn.edu>
 
 
        * fontset.c (Voverriding_fontspec_alist): New variable.
        (lookup_overriding_fontspec): New function.
-       (fontset_ref_via_base): Call lookup_overriding_fontspec if
-       necessary.
+       (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
        (fontset_font_pattern): Likewise.
        (regulalize_fontname): New function.
        (Fset_fontset_font): Call regulalize_fontname.
        (Fset_overriding_fontspec_internal): New function.
-       (syms_of_fontset): Initialize and staticprop
-       Voverriding_fontspec_alist. Defsubr
-       Sset_overriding_fontspec_internal.
+       (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
+       Defsubr Sset_overriding_fontspec_internal.
 
        * xfaces.c (face_font_available_p): New function.
 
        (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
        (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
        image maps.
-       (x_y_to_hpos_vpos): Return glyph relative coordinates through 
+       (x_y_to_hpos_vpos): Return glyph relative coordinates through
        new dx and dy args.
        Remove buffer_only_p arg (always 0).  Simplify code accordingly.
        (get_glyph_string_clip_rect): Draw cursor using glyph's rather
        (produce_image_glyph): Adjust it.ascent to minimum row ascent if
        image glyph is alone on the last line.
        (append_glyph, append_composite_glyph, produce_image_glyph)
-       (append_stretch_glyph): Set glyph's ascent and descent. 
+       (append_stretch_glyph): Set glyph's ascent and descent.
        (on_hot_spot_p): New function to check if position is inside an
-       rectangular, circular, or polygon-shaped image hot-spot, 
+       rectangular, circular, or polygon-shaped image hot-spot,
        (find_hot_spot): New function to search for image hot-spot.
        (Flookup_image_map): New defun to search for image hot-spot.
        (define_frame_cursor1): New aux function to determine frame pointer.
        (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
        read_minibuf.
        (Fcompleting_read): Delete code moved into read_minibuf.
-       (Ftest_completion): Make it handle obarrays and hash tables
-       correctly.
+       (Ftest_completion): Make it handle obarrays and hash tables correctly.
 
 2003-12-03  Kenichi Handa  <handa@m17n.org>
 
 
 2003-11-22  Lars Hansen <larsh@math.ku.dk>
 
-       * w32.c (struct the_group): Added.
-       (getgrgid): Added.
-       * mac.c (struct my_group): Added.
-       (getgrgid): Added.
+       * w32.c (struct the_group, getgrgid): Add.
+       * mac.c (struct my_group, getgrgid): Add.
 
 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
 
 
 2003-11-21  Lars Hansen  <larsh@math.ku.dk>
 
-       * dired.c (Ffile_attributes): Parameter ID-FORMAT added and
-       included in call to file name handler. Numeric UID and GID
-       optionally translated to strings. Docstring updated.
-       (directory_files_internal): Parameter ID-FORMAT added.
-       (Fdirectory_files_and_attributes): Parameter ID-FORMAT added and
-       included in call to file name handler and call to
-       directory_files_internal. Docstring updated.  (Fdirectory_files):
-       Dummy parameter added in call to directory_files_internal.
-       * lisp.h (Qinteger): Added.  (Qinteger_or_floatp,
-       Qinteger_or_float_or_marker_p): Removed.  (Ffile_attributes):
-       Parameter added.
-       * data.c (Qinteger): Exported.
+       * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
+       include in call to file name handler.  Optionally translate numeric
+       UID and GID to strings.  Update docstring.
+       (directory_files_internal): Add parameter ID-FORMAT.
+       (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
+       include in call to file name handler and call to
+       directory_files_internal.  Update Docstring.
+       (Fdirectory_files): Add dummy parameter in call to
+       directory_files_internal.
+       * lisp.h (Qinteger): Add.
+       (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
+       (Ffile_attributes): Add parameter.
+       * data.c (Qinteger): Export.
 
 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
 
 
 2003-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * alloc.c (make_float, Fcons): Clear the markbit at init time.
+       (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
+       of block_index outside of the macro call.
+       (Fgarbage_collect): Remove null code.
+
+       * m/amdx86-64.h: Don't redefine XPNTR.
+
        * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
        of VALMASK.
 
        * gtkutil.c: Include keyboard.h, charset.h, coding.h.
        (xg_create_frame_widgets): Use ENCODE_UTF_8.
 
-       * xterm.c (Qutf_8): Moved to coding.c
+       * xterm.c (Qutf_8): Move to coding.c
 
        * xmenu.c (ENCODE_MENU_STRING): New.
        (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):