(MMAP_ALLOCATED_P): New macro to be set from system
[bpt/emacs.git] / src / ChangeLog
index 8d00ee9..c12ce0b 100644 (file)
@@ -1,5 +1,472 @@
+2002-04-16  Gerd Moellmann  <gerd@gnu.org>
+
+       * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
+       configuration files.
+       (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
+       returns 0.
+
+2002-04-15  Andreas Schwab  <schwab@suse.de>
+
+       * config.in: Regenerated using autoheader.
+
+       * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
+       m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
+       m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
+       m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
+       m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
+       m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
+       m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
+       m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
+       m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
+       m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
+       m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
+       m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
+       m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
+       m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
+       m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
+       s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
+       STACK_DIRECTION, now set by autoconf.
+
+2002-04-14  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * dispnew.c (marginal_area_string): Sort arguments.
+
+       * dispextern.h (marginal_area_string): Add prototype.
+
+2002-04-13  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Finsert_file_contents): 
+       Don't call temp_output_buffer_setup--do just part, by hand.
+
+       * coding.c (run_pre_post_conversion_on_str):
+       Don't call temp_output_buffer_setup--do just part, by hand.
+
+       * keyboard.c (command_loop_1): Don't call start_hourglass
+       or cancel_hourglass when executing a macro.
+
+       * marker.c (count_markers): New function.
+
+       * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
+       grow without limit.  Move recently used elements to the front.
+
+2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
+
+2002-04-12  Gerd Moellmann  <gerd@gnu.org>
+
+       * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
+       rows marginal areas.
+       (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
+       (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
+
+       * dispnew.c (marginal_area_string): Check that glyph row is enabled.
+
+2002-04-12  Dave Love  <fx@gnu.org>
+
+       * dispnew.c (marginal_area_string): New.
+
+       * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
+       (Qleft_margin, Qright_margin): Declare.
+       (coordinates_in_window, (Fcoordinates_in_window_p): Deal with
+       margins.
+
+       * xterm.c (note_mode_line_or_margin_highlight): Renamed from
+       note_mode_line_highlight and extended.
+
+       * keyboard.c (Qleft_margin, Qright_margin): Declare.
+       (make_lispy_event): Deal with mouse events in margins.
+
+2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
+
+       * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
+       than deactivating the mark if tmm is set to `lambda'.
+       (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
+       Use a single event for HELP_EVENT.
+       (Fexecute_extended_command): Save last_point_position.
+
+2002-04-12  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * lisp.h (Fpropertize): Add prototype.
+
+       * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
+
+2002-04-10  Colin Walters  <walters@verbum.org>
+
+       * config.in: Add HAVE_SHARED_GAME_DIR.
+
+       * callproc.c: (Vgame_score_directory): New variable.
+       (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
+
+2002-04-10  Richard M. Stallman  <rms@gnu.org>
+
+       * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
+
+2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * minibuf.c (read_minibuf): Use empty_string.
+       (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
+       Short-circuit the search as soon as it "failed".
+       (Fall_completions): Allow lambda forms and lists of strings for alist.
+       (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
+       when require_match is nil.
+       (Ftest_completion): Rename from `test_completion' and export to elisp.
+       Call the predicate also when alist is a list.
+       Obey Vcompletion_regexp_list.
+       (do_completion, Fminibuffer_complete_and_exit): Use it.
+       (Fassoc_string): Rename from `assoc_for_completion'.
+       Allow list of strings as well and export to elisp.
+
+2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * puresize.h (BASE_PURESIZE): Increase to 900KB.
+
+2002-04-08  Juanma Barranquero  <lektu@terra.es>
+
+       * w32.c (sys_accept): Don't hide variable `s'.
+
+2002-04-05  Gerd Moellmann  <gerd@gnu.org>
+
+       * callint.c (Fcall_interactively): Use INTEGERP instead of
+       NUMBERP for checking Vhistory_length.
+
+2002-04-05  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
+       Doc fix to reflect it.
+
+2002-04-04  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (display_mode_element): New arg RISKY.
+       Disregard text props found or specified within a variable
+       that isn't marked risky-local-variable.
+       (Qrisky_local_variable): New variable.
+       (syms_of_xdisp): Init and staticpro it.
+
+2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * undo.c (record_point): New fun.
+       (record_delete, record_insert): Use it.
+
+2002-04-03  Juanma Barranquero  <lektu@terra.es>
+
+       * doc.c (Fdocumentation): Add missing parentheses.
+       (Fdocumentation_property): Likewise.
+
+2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * doc.c (Fdocumentation, Fdocumentation_property): When the doc
+       data is 0, just return nil.
+
+2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * msdos.c (syms_of_msdos): Fix last change with
+       mouse_autoselect_window.
+
+2002-04-03  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
+       mouse_autoselect_window.
+
+2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (make_lispy_event): Handle unknown keysyms together
+       with system-specific keysyms.  Use it also for unknown function keys.
+
+       * doc.c (reread_doc_file): Return whether reload was attempted.
+       (Fdocumentation, Fdocumentation_property): Don't try to reload
+       if the doc is 0 and only ask once.
+
+       * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
+
+2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * keyboard.c (read_char): If the event was Qselect_window,
+       restore timer_idleness_start_time to its previous value.
+
+       * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
+
+2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * region-cache.c (new_region_cache): Use BEG.
+
+       * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
+       Use BEG and BEG_BYTE.
+
+       * doc.c (get_doc_string): Return nil if the location is wrong.
+       (reread_doc_file): New fun.
+       (Fdocumentation, Fdocumentation_property):
+       Call it if get_doc_string fails.
+       (Fsnarf_documentation): Make it work for a dumped Emacs.
+
+       * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
+       Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
+
+       * charset.c (Fstring): Allow 0 arguments.
+
+       * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
+
+       * process.c (DATAGRAM_CONN_P, list_processes_1)
+       (Fprocess_datagram_address, Fset_process_datagram_address)
+       (Fset_network_process_options, server_accept_connection):
+       Fix some int/Lisp_Object confusions (thank you union types).
+
+2002-04-01  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
+
+       * w32term.c: Likewise.
+       (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
+
+       * keyboard.c (Qselect_window): New symbol.
+       (head_table): Use it.
+       (keys_of_keyboard): Bound select-window event to handle-select-window.
+       (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
+
+       * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
+       (last_window): New variable.
+       (XTread_socket): Generate SELECT_WINDOW_EVENTs.
+       (note_mouse_movement): Remove reimplemented code in #if 0.
+       (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
+       Emacs windows.
+
+       * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
+
+2002-03-31  Gerd Moellmann  <gerd@gnu.org>
+
+       * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
+       Callers changed.
+
+2002-03-30  Richard M. Stallman  <rms@gnu.org>
+
+       * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
+       loop whenever it stops making progress.
+
+       * widget.c (set_frame_size): Don't call change_frame_size.
+
+2002-03-30  Gerd Moellmann  <gerd@gnu.org>
+
+       * dispnew.c (direct_output_for_insert):
+       Call mark_window_display_accurate.
+
+2002-03-29  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
+
+2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * Makefile.in (lread.o): Depend on coding.h.
+
+       * lread.c (openp, Fload): Encode the file name before passing it
+       to `stat', `access', and `emacs_open'.
+       (openp): GCPRO the encoded file name.  Don't recompute Lisp
+       strings unnecessarily.
+
+2002-03-29  Kim F. Storm  <storm@cua.dk>
+
+       * fns.c (Flax_plist_put): Doc fix.
+
+2002-03-28  Miles Bader  <miles@gnu.org>
+
+       * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
+
+2002-03-27  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * process.c (set-network-process-options): Add usage.
+       (make-network-process): Doc fix.
+
+2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
+
+2002-03-26  Richard M. Stallman  <rms@gnu.org>
+
+       * fns.c (Fsubstring_no_properties): New function.
+       (Flax_plist_get, Flax_plist_put): New functions.
+       (syms_of_fns): defsubr them.
+
+       * xdisp.c (update_menu_bar): Test only update_mode_lines;
+       don't test or alter w->update_mode_line.
+
+       * window.c (Fdisplay_buffer): Doc fix.
+
+2002-03-24  Richard M. Stallman  <rms@gnu.org>
+
+       * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
+
+2002-03-24  Gerd Moellmann  <gerd@gnu.org>
+
+       * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
+       (Fdefmacro): Handle `(declare ...)'.
+       (syms_of_eval) <Qdeclare>: Initialize and staticpro.
+       (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
+
+2002-03-24  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
+       (xbm_file_p): Add prototypes.
+       (xbm_format, xbm_image_p): Sync with xfns.c.
+       (reflect_byte): New function.
+       (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
+       (xbm_load_image): Create bitmaps with a depth of 1.
+       (init_xfns): Enable XBM images.
+
+2002-03-23  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.c (w32_handle_tool_bar_click): Detect up and down events
+       correctly.  Do not pass up_modifier to keyboard buffer.
+
+       * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
+
+2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * Makefile.in (bootstrapclean): New target.
+       (bootstrap-temacs, bootstrap-doc): Remove.
+       (bootstrap-emacs): Use a bog-standard `temacs'.
+       Don't bother to build a DOC file.
+
+       * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
+
+       * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
+       in temacs even if !CANNOT_DUMP.
+       (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
+
+       * alloc.c (check_pure_size): Only output a warning.
+
+2002-03-22  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (Fx_create_frame): Enable tool-bar when images are
+       supported.
+
+       * w32term.c (zv_bits): Declare as short, for word alignment.
+       (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
+       (syms_of_w32term): Define x-use-underline-position-properties.
+
+       * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
+       (clear_image_cache): Block input, fix logic, clear matrices in
+       all frames that share this cache.
+
+2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * emacs.c (main): Update the Copyright year in the blurb printed
+       by "emacs --version".
+
+       * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
+
+       * xterm.c (XTread_socket): If XK_ISO_Lock and
+       XK_ISO_Last_Group_Lock are defined, handle keysyms between
+       XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
+
+2002-03-21  Kim F. Storm  <storm@cua.dk>
+
+       * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
+       menu-bar bindings in keymap and local-map properties _are_ used.
+       But try keymap property first in accordance with 2002-01-03 patch.
+       Added comment describing why this is not always reliable.
+       (tool_bar_items): Ditto for tool-bar.
+
+2002-03-21  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (x_clear_image_1): Disable color table code.
+
+2002-03-21  Kim F. Storm  <storm@cua.dk>
+
+       * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
+       removed the wrong version of the DEFUN macro; fixed it.
+
+       * fns.c (Ffeaturep): Allow subfeature to be a list (test using
+       Fmember rather than Fmemq).
+       (Fprovide): Check that subfeatures is a list.
+
+       * process.c (QCfeature, QCdatagram): Removed variables.
+       (QCtype, Qdatagram): New variables.
+       (network_process_featurep): Removed function.
+       (Fmake_network_process): Removed :feature check.
+       Use :type 'datagram instead of :datagram t to create a datagram
+       socket.  This allows us to add other connection types (e.g. raw
+       sockets) later in a consistent manner.
+       (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
+       supported subfeatures for feature make-network-process.
+       (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
+       Intern and staticpro QCtype and Qdatagram.
+       (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
+
+       * xfns.c: (QCtype): Remove duplicate declaration and
+       initialization (is now declared in process.c).
+
+       * w32fns.c: (QCtype): Remove duplicate declaration and
+       initialization (is now declared in process.c).
+
+2002-03-21  Richard M. Stallman  <rms@gnu.org>
+
+       * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
+       (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
+       when jumping to `fail' to avoid undoing reg changes in the
+       last iteration of the loop.
+       (GET_UNSIGNED_NUMBER): Skip spaces around the number.
+
+       * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
+       Depend on process.h.
+
+2002-03-20  Jason Rumney  <jasonr@gnu.org>
+
+       Most of the following changes are still conditional on HAVE_IMAGES
+       which is not set by default on Windows.
+
+       * emacs.c (main) [WINDOWSNT]: Call init_xfns.
+
+       * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
+       (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
+       (four_corners_best, x_clear_image_1, x_clear_image)
+       (x_alloc_image_color, postprocess_image) 
+       (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image) 
+       (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
+       (init_xfns, syms_of_w32fns): Initialize image functions and constants.
+
+       * w32gui.h (struct XImage): Define.
+
+       * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
+       extract mouse co-ordinates.
+
+2002-03-20  Jason Rumney  <jasonr@gnu.org>
+
+       * w32.c (init_winsock): Dynamically load new server and UDP
+       socket functions.
+       (socket_to_fd): New function.
+       (sys_socket): Use it.
+       (sys_setsockopt, sys_listen, sys_getsockname, sys_accept) 
+       (sys_recvfrom, sys_sendto): New wrapper functions.
+
+       * process.c (QCfamily, QCfilter): Remove duplicate declaration
+       and initialization.
+
+       * makefile.w32-in (LIBS): Remove $(WSOCK32).
+
+2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
+       use "sun" as a variable, it's a predefined constant on Sun
+       machines.
+
+2002-03-20  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * bytecode.c (Fbyte_code): Revert last change.
+
+2002-03-19  Kim F. Storm  <storm@cua.dk>
+
+       * makefile.w32-in (LIBS): Add $(WSOCK32).
+       From David Ponce <dponce@voila.fr>.
+
 2002-03-18  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
+       * process.c (wait_reading_process_input): Move variables `pname'
+       and `pnamelen' down where they are used.
+
+       * bytecode.c (Fbyte_code): Discard unused computed value to
+       prevent gcc warning.
+
        * lisp.h (Fplist_member): Add prototype.
 
 2002-03-18  Kim F. Storm  <storm@cua.dk>