]> code.delx.au - gnu-emacs/blobdiff - src/ChangeLog
(x_encode_text): Return stringp non-NULL if coding_system
[gnu-emacs] / src / ChangeLog
index 990f10d02ec12bd760eef1a3e977cac3f2b1cabf..9be130c46f0644bec94e81b4ecf55221ac646926 100644 (file)
@@ -1,8 +1,456 @@
+2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
+       is Qcompound_text_with_extensions.
+
+       * xselect.c (lisp_data_to_selection_data): Always set selection
+       type as string if x_encode_text returns streingp non-NULL.
+
+       * s/netbsd.h: Include /usr/pkg in the run time shared library path.
+
+2002-05-30  Richard M. Stallman  <rms@gnu.org>
+
+       * window.c (Fset_window_configuration): Correct the handling
+       of point in current buffer, to work with multiple windows.
+
+2002-05-29  Colin Walters  <walters@verbum.org>
+
+       * lread.c (Fread_from_string): Don't depend on order of evaluation
+       for C function parameters.
+
+2002-05-28  Richard M. Stallman  <rms@gnu.org>
+
+       * xterm.c (x_display_and_set_cursor): Change the cursor in the same
+       way for blinked-off state and for a nonselected window.
+
+       * window.c (window_scroll_pixel_based): Don't call Fbolp;
+       instead, see if the new start pos is at beginning of line.
+
+       * fileio.c (Fwrite_region): If START is a string, don't
+       make any annotations.
+
+       * eval.c (syms_of_eval): Doc fix.
+
+2002-05-28  Colin Walters  <walters@debian.org>
+
+       * emacs.c (USAGE1): Add --no-splash.
+       (standard_args): Ditto.
+
+2002-05-28  Colin Walters  <walters@gnu.org>
+
+       * lread.c (readchar_count): New variable.
+       (readchar): Increment it.
+       (unreadchar): Decrement it.
+       (read_multibyte): Decrement it.
+       (Vread_with_symbol_positions): New variable.
+       (Vread_symbol_positions_list): New variable.
+       (read_internal_start): New function, created from Fread and
+       Fread_from_string.  Handle Vread_symbol_positions_list and
+       Vread_with_symbol_positions.
+       (readevalloop, Fread, Fread_from_string): Use it.
+       (read1): Use readchar_count to add symbol positions to
+       Vread_symbol_positions_list if Vread_with_symbol_positions is
+       non-nil.
+       (syms_of_lread): DEFVAR_LISP and initialize them.
+
+       * lread.c (read0, read1, read_list, read_vector, read_multibyte)
+       (substitute_object_recurse, substitute_object_in_subtree)
+       (substitute_in_interval): Prototype.
+       (read_multibyte): Return c if it's less than zero.
+       
+2002-05-28  Kim F. Storm  <storm@cua.dk>
+
+       * fileio.c (Fread_file_name_internal): Added brute-force
+       speed up for using predicate file-directory-p.
+
+2002-05-28  Kim F. Storm  <storm@cua.dk>
+
+       * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
+       New variables.
+       (syms_of_fileio): DEFVAR_LISP them.
+       (read_file_name_cleanup): New unwind function.
+       (Fread_file_name_internal): Only return completions satifying
+       Vread_file_name_predicate.  Temporarily unwind protect and rebind
+       default-directory while checking completions against the predicate.
+       (Fread_file_name): Added PREDICATE argument.  Specbind it to
+       Vread_file_name_predicate during completion.
+       Call Vread_file_name_function to read the file name if non-nil.
+
+       * lisp.h (Fread_file_name): Now has 6 args.
+       
+       * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
+       predicate for Fread_file_name when reading directory name.
+       Supply Qnil for predicate in other calls to Fread_file_name.
+
+2002-05-26  Miles Bader  <miles@gnu.org>
+
+       * term.c (tty_capable_p): New function.
+       * dispextern.h (tty_capable_p): New function declaration.
+       (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
+       (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
+
+2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
+       (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
+       (Vwrite_region_annotate_functions): Docstring fix.
+
+2002-05-23  Kim F. Storm  <storm@cua.dk>
+
+       * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
+       phys_cursor's hpos is overwritten.  This is still not completely
+       correct, as it doesn't really make sense to use hpos at all to
+       get the cursor glyph (as that is relative to the width of the
+       characters on the line, which may have changed during the update).
+
+2002-05-22  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (enumfont_t): Remove tail, make pattern a normal
+       Lisp_Object.
+       (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
+       Use modified enumfont_t struct.
+
+       * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
+
+       * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
+       Handle the `hbar' cursor type.
+       (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
+
+       * w32fns.c (Qhbar): New variable.
+       (x_specified_cursor_type): Use it.
+
+2002-05-21  Ken Raeburn  <raeburn@gnu.org>
+
+       * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
+       now, when the address is needed.
+
+2002-05-21  Colin Walters  <walters@gnu.org>
+
+       * Makefile.in (shortlisp): Add font-core.el.
+
+2002-05-20  Richard M. Stallman  <rms@gnu.org>
+
+       * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
+
+       * keyboard.c (read_char_minibuf_menu_prompt): Don't list
+       equivalent key bindings here.
+
+2002-05-20  Ken Raeburn  <raeburn@gnu.org>
+
+       Change symbol structure to contain a lisp object for the symbol
+       name:
+       * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
+       object field named "xname".
+       (SYMBOL_NAME): New macro.
+       * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
+       name field.
+       * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
+       (mark_object, gc_sweep): Use symbol xname field and XSTRING
+       instead of name field.
+       * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
+       SYMBOL_NAME instead of XSYMBOL and name field.
+       * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
+       instead of XSYMBOL and name field.
+       * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
+       and SYMBOL_NAME instead of XSYMBOL and name field.
+       * coding.c (Fread_coding_system, code_convert_region1)
+       (code_convert_string1, code_convert_string_norecord)
+       (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
+       XSYMBOL and name field.
+       * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
+       (Fmake_variable_buffer_local, Fmake_local_variable)
+       (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
+       of XSYMBOL and name field.
+       * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
+       XSYMBOL and name field.
+       * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
+       instead of XSYMBOL and name field.
+       * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
+       XSYMBOL and name field.
+       * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
+       Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
+       * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
+       instead of XSYMBOL and name field.
+       * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
+       (parse_modifiers, apply_modifiers, Fevent_convert_list)
+       (parse_solitary_modifier, Fexecute_extended_command):
+       Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
+       * keymap.c (silly_event_symbol_error, Fsingle_key_description)
+       (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
+       of XSYMBOL and name field.
+       (describe_command, describe_translation): Use SYMBOL_NAME and
+       assignment instead of XSYMBOL and name field and XSETSTRING.
+       * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
+       instead of XSYMBOL and name field.
+       (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
+       name field and XSETSTRING.
+       * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
+       of XSYMBOL and name field.
+       * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
+       assignment instead of XSYMBOL and name field and XSETSTRING.
+       * print.c (print_error_message, print_object): Use SYMBOL_NAME and
+       XSTRING instead of XSYMBOL and name field.
+       * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
+       and XSTRING instead of XSYMBOL and name field.
+       * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
+       and XSTRING instead of XSYMBOL and name field.
+       * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
+       XSTRING instead of XSYMBOL and name field.
+       * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
+       of XSYMBOL and name field.
+       * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
+       Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
+
+2002-05-19  Ken Raeburn  <raeburn@gnu.org>
+
+       * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
+       and XCDR real rvalues in most configurations.
+
+       * buffer.c (fix_overlays_in_range, fix_overlays_before):
+       Don't take the address of the cdr part of a cons cell; instead, track
+       the parent cell and call XSETCDR, or set the variable for the head
+       of the list if we haven't started down the list yet.
+
+2002-05-19  Richard M. Stallman  <rms@gnu.org>
+
+       * doc.c (reread_doc_file): Don't ask for confirmation.
+
+2002-05-18  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
+       (xbm_load_image): Use it.
+       (xbm_load): Ditto.
+       (xbm_read_bitmap_data): Reverted to xfns.c version.
+       From David Ponce <david@dponce.com>.
+
+2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
+       2.02 and later.
+
+2002-05-16  Juanma Barranquero  <lektu@terra.es>
+
+       * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
+
+2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
+       meaningful test.
+       (read_char_minibuf_menu_prompt): Fix typo.
+
+2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * eval.c (Fcommandp): Doc fix.
+
+2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
+       (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
+       (Fset_keymap_parent): Gcpro a bit more.
+       (access_keymap): Gcpro around meta_map call and around the main loop.
+       (get_keyelt): Gcpro when following indirect references.
+       (copy_keymap_item): New fun, extracted from Fcopy_keymap.
+       (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
+       (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
+       Remove useless ad-hoc remap code.
+
+2002-05-13  Richard M. Stallman  <rms@gnu.org>
+
+       * search.c (search_buffer): Give up boyer moore search if inverse
+       translation change charset_base.
+
+2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
+       characters is carried over from the previous block of text, adjust
+       coding->produced to account for the extra character.
+
+2002-05-11  Andreas Schwab  <schwab@suse.de>
+
+       * coding.c (intersection): Keep the elements of the returned list
+       in the same order as in the first list.
+
+2002-05-11  Kim F. Storm  <storm@cua.dk>
+
+       * keymap.c (current_minor_maps): Fixed 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
+       later on, so I rewrote the code to use malloc/bcopy/free instead
+       of realloc.
+
+2002-05-10  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
+
+2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
+       parens, to ensure correct evaluation order.
+
+2002-05-10  Kim F. Storm  <storm@cua.dk>
+
+       * keymap.c (Vemulation_mode_map_alists): New variable.
+       (syms_of_keymap): DEFVAR_LISP it.
+       (current_minor_maps): Process keymap alists in that list before
+       minor-mode-overriding-map-alist and minor-mode-map-alist.
+
+2002-05-09  Richard M. Stallman  <rms@gnu.org>
+
+       * search.c (Freplace_match): Doc fix.
+
+2002-05-09  Kim F. Storm  <storm@cua.dk>
+
+       * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
+       Enlarge cursor rectangle drawn around image with non-zero relief.
+
+       * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
+       Enlarge cursor rectangle drawn around image with non-zero relief.
+
+       * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
+       Enlarge cursor rectangle drawn around image with non-zero relief.
+
+2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * xselect.c (lisp_data_to_selection_data): Don't set selection
+       type if comes from the Lisp object's car.  If the selection
+       contains a pure ASCII text, always return QSTRING as its type.
+
+2002-05-06  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * mac.c (mac-cut-function): Doc fix.
+
+2002-05-05  Richard M. Stallman  <rms@gnu.org>
+
+       * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
+
+2002-05-04  Jason Rumney  <jasonr@gnu.org>
+
+       * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
+       for event-click-count.
+
+       * process.c (init_process): Only add server subfeature if we can
+       use non-blocking I/O.
+
+2002-05-04  Andrew Choi  <akochoi@shaw.ca>
+
+       * macterm.c (XTread_socket): Call WaitNextEvent once instead of
+       repeatedly.
+
+2002-05-03  Jason Rumney  <jasonr@gnu.org>
+
+       * process.c (Fmake_network_process): Only support server sockets
+       when we can make them non-blocking.
+
+       * s/ms-w32.h (HAVE_SELECT): Define.
+
+       * w32.h (FILE_NDELAY): New flag.
+
+       * w32.c (sys_getpeername, fcntl): New functions.
+       (_sys_read_ahead): Temporarily block on non-blocking sockets.
+
+       * w32proc.c: include sys/file.h.
+
+2002-05-03  Colin Walters  <walters@verbum.org>
+
+       * callproc.c (Vgame_score_directory): Renamed to
+       Vshared_game_score_directory.
+
+2002-04-30  Richard M. Stallman  <rms@gnu.org>
+
+       * s/gnu.h [emacs]: Include stdio.h.
+       (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
+
+       * eval.c (do_autoload): Error if called while preparing to dump.
+
+       * fns.c (Frequire): Error if need to load while preparing to dump.
+
+2002-04-28  Colin Walters  <walters@verbum.org>
+
+       * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
+       Default to "~/.emacs.d/games".
+
+2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * lread.c (openp): Change arg exec_only to predicate.
+       (build_load_history): Use XCAR/XCDR.
+       (Flocate_file_internal): New fun.
+       (syms_of_lread): Defsubr it.
+       (Fload): Update call to openp.
+
+       * lisp.h (openp): Update prototype.
+
+       * xfns.c (x_create_bitmap_from_file, x_find_image_file):
+       * w32proc.c (sys_spawnve):
+       * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
+       * w32.c (check_windows_init_file):
+       * sound.c (Fplay_sound_internal):
+       * process.c (Fstart_process):
+       * macfns.c (x_create_bitmap_from_file, x_find_image_file):
+       * mac.c (run_mac_command):
+       * emacs.c (init_cmdargs):
+       * callproc.c (Fcall_process): Update call to openp.
+
+       * textprop.c (remove_properties): Don't use XCAR without CONSP.
+
+       * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
+
+2002-04-29  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
+       (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
+
+2002-04-28  Richard M. Stallman  <rms@gnu.org>
+
+       * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
+
+       * eval.c (Fcommandp): New arg for_call_interactively.
+       * lisp.h (Fcommandp): Declare new arg.
+
+2002-04-28  Jason Rumney  <jasonr@gnu.org>
+
+       * w32proc.c (syms_of_w32proc): Get true file attributes by default.
+
+       * w32.c (stat, fstat): Use file index information to generate
+       inodes for directories where available.
+
+2002-04-26  Andrew Choi  <akochoi@shaw.ca>
+
+       * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
+       [HAVE_CARBON]: Include Mac object files.
+
+       * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
+       fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
+       termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
+       MAC_OSX, and MAC_OS instead of macintosh.
+
+       * editfns.c [MAC_OS8]: Include stdio.h.
+
+       * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
+
+       * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
+       Apple Monaco.
+
+       * process.c: Declare QCfamily and QCfilter as extern.
+       (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
+       calling select.
+
+       * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
+
+       * tparam.c [MAC_OSX]: Don't define BC and UP.
+
+       * config.in [HAVE_CARBON]: Add.
+
+       * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
+       Move here from mac/src and mac/inc.
+
+       * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
+
 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
 
-       * xterm.c (x_draw_phys_cursor_glyph): Undo last change.  Compute
-       phys_cursor_width from the x position returned by x_draw_glyhs,
-       which is cheaper.
+       * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
+       Compute phys_cursor_width from the x position returned
+       by x_draw_glyhs, which is cheaper.
        (x_display_and_set_cursor): Compute the buffer-local value
        of `cursor-in-non-selected-windows' only when needed.
 
 
        * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
        0 for NO_CURSOR.
-       
+
        * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
 
 2002-04-23  Colin Walters  <walters@verbum.org>
        * xterm.c (notice_overwritten_cursor): Handle the special case
        of the cursor being in the first blank non-text line at the
        end of a window.
-       
+
        * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
        (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
        (x_display_and_set_cursor): Don't set phys_cursor_width here, for
 
 2002-04-23  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
-       * xdisp.c: Remove unused global variable
-       `minibuf_prompt_pixel_width'.
+       * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
 
 2002-04-22  Kim F. Storm  <storm@cua.dk>