(XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY, XBUFFER_OBJFWD)
[bpt/emacs.git] / src / ChangeLog
index 70fbaad..a48dc5c 100644 (file)
@@ -1,3 +1,341 @@
+2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
+       (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
+       Add type checks.
+       (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
+
+       * alloc.c (free_misc): Use XMISCTYPE.
+       (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
+
+2007-10-17  Glenn Morris  <rgm@gnu.org>
+
+       * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
+       (syms_of_minibuf): Add Qcompletion_ignore_case.
+       * dired.c (Qcompletion_ignore_case): Change to external.
+       (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
+       * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
+       (Fread_file_name): Use it rather than intern'ing.
+
+       * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
+       (Fread_coding_system): Ignore case of user input.
+
+2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * xdisp.c (handle_display_prop): Ignore display specs after
+       replacing one when string text is being replaced.
+       (handle_single_display_spec): Pretend as if characters with display
+       property haven't been consumed only when buffer text is being replaced.
+
+2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xfns.c (Fx_create_frame, Fx_display_list):
+       * window.c (window_fixed_size_p, enlarge_window)
+       (shrink_window_lowest_first):
+       * macterm.c (init_font_name_table):
+       * macfns.c (Fx_create_frame, Fx_display_list):
+       * lread.c (close_load_descs):
+       * keyboard.c (read_char_x_menu_prompt):
+       * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
+       * coding.c (code_convert_region_unwind): Test the type of an object
+       rather than just !NILP before extracting data from it.
+
+       * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
+
+       * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
+       (XMISCANY): New macro.
+       (XMISCTYPE): Use it.
+       (struct Lisp_Misc_Any): New type.
+       (union Lisp_Misc): Use it.
+       (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
+       * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
+       (find_symbol_value, set_internal, default_value, Fset_default)
+       (Fmake_variable_buffer_local, Fmake_local_variable)
+       (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
+       (Flocal_variable_if_set_p, Fvariable_binding_locus):
+       The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
+       * alloc.c (allocate_buffer): Set the size and tag.
+       (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
+       Use XMISCANY.
+       (die): Follow the GNU convention for error messages.
+       * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
+       * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
+       tag any more.
+       (set_buffer_internal_1):
+       * frame.c (store_frame_param):
+       * eval.c (specbind):
+       * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
+
+       * doc.c (Fsnarf_documentation): Simplify.
+
+2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
+
+       * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
+       (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
+
+2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
+
+2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
+
+       * eval.c (do_autoload): Don't save autoloads.
+
+       * data.c (Ffset): Save autoload of the function being set.
+
+2007-10-07  John Paul Wallington  <jpw@pobox.com>
+
+       * xfns.c (x_create_tip_frame): Set the `display-type' frame
+       parameter before setting up faces.
+
+2007-10-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * ccl.c (Fregister_code_conversion_map):
+       * keyboard.c (append_tool_bar_item): Reformat last change.
+
+       * lisp.h (eabs): Rename from `abs'.  All callers changed.
+
+2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * buffer.c (add_overlay_mod_hooklist):
+       * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
+       * fontset.c (make_fontset):
+       * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
+       (append_tool_bar_item):
+       * macmenu.c (grow_menu_items):
+       * w32menu.c (grow_menu_items):
+       * xmenu.c (grow_menu_items): Use larger_vector.
+
+2007-10-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
+       selected frame'' on MSDOS).
+
+2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
+
+       * macfns.c (x_create_tip_frame): Set terminal for frame.
+
+2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * frame.c (Qenvironment): Remove.
+       (syms_of_frame) <Qenvironment>: Don't initialize.
+       (Fdelete_frame): Don't treat the `environment' param specially.
+       * frame.h (Qenvironment): Don't declare.
+       * callproc.c (set_initial_environment): Don't set unused frame param.
+
+       * frame.c (Fframe_with_environment): Remove.
+       (syms_of_frame) <Sframe_with_environment>: Don't declare.
+
+       * lisp.h (Fframe_with_environment): Don't declare.
+
+2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
+
+       * indent.c (indent_tabs_mode, last_known_column)
+       (last_known_column_modified): Make static.
+       (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
+
+2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * puresize.h (BASE_PURESIZE): Increase to 1170000.
+
+2007-10-09  Richard Stallman  <rms@gnu.org>
+
+       * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
+       return HANDLED_RETURN.
+
+2007-10-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
+       when there's an unread command event.
+
+       * frame.c (focus_follows_mouse): Move here from frame.el to allow
+       window autoselection act appropriately when leaving selected frame.
+       (syms_of_frame): Initialize focus_follows_mouse.
+       * frame.h (focus_follows_mouse): Extern it.
+       * macterm.c (XTread_socket): When focus_follows_mouse is nil
+       make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
+       * msdos.c (dos_rawgetc): Likewise.
+       * w32term.c (w32_read_socket): Likewise.
+       * xterm.c (handle_one_xevent): Likewise.
+       * xdisp.c (syms_of_xdisp): In doc-string of
+       mouse-autoselect-window mention focus-follows-mouse.
+
+2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (mac_load_query_font): Fix missing return value.
+       [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
+       Add BLOCK_INPUT.
+
+2007-10-08  Richard Stallman  <rms@gnu.org>
+
+       * xdisp.c (get_window_cursor_type): Implement documented behavior
+       for cursor-in-non-selected-windows = t.
+
+2007-10-08  Jason Rumney  <jasonr@gnu.org>
+
+       * w32.c (w32_get_resource): Always close registry keys.
+
+2007-10-08  Jason Rumney  <jasonr@gnu.org>
+
+       * makefile.w32-in (LIBS): Add COMCTL32.
+
+       * w32fns.c (globals_of_w32fns): Init common controls.
+
+2007-10-08  Richard Stallman  <rms@gnu.org>
+
+       * image.c (our_memory_buffer): Rename from omfib_buffer.
+
+2007-10-08  Richard Stallman  <rms@gnu.org>
+
+       * buffer.c (Foverlays_at): Doc fix.
+
+2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fns.c (Fplist_put): Preserve uneven tail data.
+
+2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
+
+       * termhooks.h (enum event_kind): Remove trailing comma.
+
+       * frame.h (enum): Remove trailing comma.
+
+2007-10-08  Dhuvra Krishnamurthy  <dhuvrakm@gmail.com>  (tiny change)
+
+       * w32proc.c (delete_child): Don't terminate threads of zombies.
+
+2007-10-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
+
+       * keyboard.c (syms_of_keyboard): Set up new Lisp variable
+       last-repeatable-command.
+       (init_kboard): Initialize Vlast_repeatable_command.
+       (command_loop_1): Set it to real_this_command unless that was
+       bound to an input event.
+       (mark_kboards): Mark it.
+
+2007-10-08  Richard Stallman  <rms@gnu.org>
+
+       * eval.c (condition-case): Doc fix.
+
+2007-10-08  Masatake YAMATO  <jet@gyve.org>
+
+       * xfaces.c (tty_supports_face_attributes_p): Fix code
+       for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
+       was copied and not edited.
+
+2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Add new `input-decode-map' keymap and use it for terminal
+       escape sequences.
+       * keyboard.h (struct kboard): Add Vinput_decode_map.
+       Remove Vlocal_key_translation_map.
+       * keyboard.c (read_key_sequence): Add support for input-decode-map.
+       (init_kboard): Init input-decode-map.
+       Replace local-key-translation-map back with key-translation-map.
+       (syms_of_keyboard): Declare input-decode-map.
+       Remove local-key-translation-map.  Update docstrings.
+       (mark_kboards): Mark Vinput_decode_map.
+       Don't mark Vlocal_key_translation_map.
+       * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
+       Replace local-key-translation-map back with key-translation-map.
+       * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
+       Bind in input-decode-map rather than function-key-map.
+
+       * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
+       This was made redundant by the previous introduction of XSETPVECTYPE.
+
+2007-10-09  Richard Stallman  <rms@gnu.org>
+
+       * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
+
+2007-09-29  Richard Stallman  <rms@gnu.org>
+
+       * eval.c (internal_condition_case_2, internal_condition_case_1)
+       (internal_condition_case): Reenable abort if x_catching_errors ()
+       to see if that really happens and why.
+
+2007-10-06  Andreas Schwab  <schwab@suse.de>
+
+       * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
+
+2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
+
+       * image.c (syms_of_image) <image-types>: Fix typo in docstring.
+
+2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
+
+2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * window.h (struct window):
+       * window.c (struct save_window_data, struct saved_window):
+       * termhooks.h (struct terminal):
+       * process.h (struct Lisp_Process):
+       * frame.h (struct frame):
+       * buffer.h (struct buffer):
+       * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
+       (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
+       The size field of (pseudo)vectors is now unsigned.
+       (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
+
+       * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
+       Turn `count' into an integer.
+
+       * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
+       (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
+       * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
+       * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
+       (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
+
+       * alloc.c (allocate_pseudovector): New fun.
+       (ALLOCATE_PSEUDOVECTOR): New macro.
+       (allocate_window, allocate_terminal, allocate_frame)
+       (allocate_process): Use it.
+       (mark_vectorlike): New function.
+       (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
+       (mark_terminals): Use it.
+       (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
+       (Fmake_byte_code): Use XSETPVECTYPE.
+
+       * frame.c (Fframe_parameters): Minor simplification.
+
+       * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
+
+       * marker.c (Fmarker_buffer): Make test for odd case into a failure.
+
+       * buffer.c (Fget_buffer_create, init_buffer_once):
+       * lread.c (defsubr):
+       * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
+
+       * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
+       defined differently in the m/*.h files.
+       (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
+       (XSETPVECTYPE): New macro.
+       (XSETPSEUDOVECTOR): Use it.
+
+       * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
+       (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
+
+       * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
+       * lread.c (defvar_per_buffer):
+       * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
+
+       * window.c (candidate_window_p): Only consider as visible frames that
+       are on the same terminal.
+
+       * m/ibms390x.h (MARKBIT): Remove unused macro.
+
+2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
+
+       * lread.c (Fload): Fix typo in docstring.
+
+2007-10-01  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
+
+       * floatfns.c (Fexpt): Manually check for overflows, so that a power
+       of a non-zero value can't yield zero.
+
 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * term.c (term_clear_mouse_face, term_mouse_highlight)
 
 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
 
-       * term.c (DEV_TTY): New macro.  Provide a definition for
-       MS-Windows.
+       * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
        (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
        (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
        (init_tty): Use DEV_TTY instead of "/dev/tty".
        * keyboard.c (restore_kboard_configuration): Only define when
        MULTI_KBOARD defined.
 
-       * makefile.w32-in: Update dependancies from Makefile.in
+       * makefile.w32-in: Update dependancies from Makefile.in.
        (OBJ1): Add terminal.$(O)
 
        * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
 
 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
-       * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
+       * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
 
 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
 
        customizable variable.  Rather explicitly check whether the
        height of the window that shall be splitted is at least as large
        as split_height_threshold.
+       (Fwindow_full_width_p): New defun.
+       (syms_of_window): Defsubr it.
+
+       * window.h: Add EXFUN for Fwindow_full_width_p.
 
 2007-07-14  Jason Rumney  <jasonr@gnu.org>