(Fformat): Fix calculation of text property positions
[bpt/emacs.git] / src / ChangeLog
index 9401a93..827abe5 100644 (file)
@@ -1,3 +1,326 @@
+2006-07-13  Kenichi Handa  <handa@m17n.org>
+
+       * editfns.c (Fformat): Fix calculation of text property positions
+       of format string.
+
+2006-07-12  Kim F. Storm  <storm@cua.dk>
+
+       * lisp.h (CHECK_TYPE): New macro for generic type checking.
+       (CAR_SAFE, CDR_SAFE): New macros.
+       (ARRAYP, CHECK_ARRAY): New macros.
+       (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
+       (CHECK_WINDOW_CONFIGURATION): New macro.
+       (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
+       (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
+       (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
+       (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
+       (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
+       (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
+       (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
+       (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
+
+       * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
+       * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
+
+       * callint.c (Fcall_interactively):
+       * casefiddle.c (casify_object):
+       * editfns.c (general_insert_function):
+       * fns.c (Flength, Felt, Ffillarray):
+       * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
+
+       * data.c (wrong_type_argument): Remove loop around Fsignal.
+       (Farrayp, Fsequencep): Use ARRAYP.
+       (Fcar): Use CAR.
+       (Fcar_safe): Use CAR_SAFE.
+       (Fcdr): Use CDR.
+       (Fcdr_safe): Use CDR_SAFE.
+       (Fsetcar, Fsetcdr): Use CHECK_CONS.
+       (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
+       (Faset): Use CHECK_ARRAY.
+
+       * fns.c (Felt): Use CHECK_ARRAY.
+       (concat): Use CHECK_NUMBER.
+       (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
+       (Fmemq): Use CHECK_LIST.
+       (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
+       (assq_no_quit): Use CAR_SAFE.
+       (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
+       Use CHECK_LIST_CONS.
+       (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
+
+       * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
+
+       * casetab.c (check_case_table):
+       * category.c (check_category_table):
+       * marker.c (Fcopy_marker):
+       * syntax.c (check_syntax_table):
+       * xfaces.c (load_pixmap): Use CHECK_TYPE.
+
+       * fns.c (Fcopy_sequence, concat):
+       * fringe.c (Fdefine_fringe_bitmap):
+       * lread.c (check_obarray): Cleanup wrong_type_argument use.
+
+       * keyboard.c (access_keymap_keyremap): Use ARRAYP.
+
+       * keymap.c (Fdefine_key, Flookup_key):
+       * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
+
+       * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
+
+       * search.c (Fset_match_data): Use CHECK_LIST.
+
+       * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
+
+       * window.c (Fwindow_configuration_frame, Fset_window_configuration):
+       (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
+
+2006-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
+
+       * dired.c: Include blockinput.h.
+       (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
+
+       * editfns.c: Include blockinput.h.
+       (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
+       getpwuid/getpwnam.
+
+       * fileio.c: Include blockinput.h.
+       (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
+       around getpwnam.
+       (search_embedded_absfilename): Remove spurious xfree.
+
+2006-07-11  Kim F. Storm  <storm@cua.dk>
+
+       * dispnew.c (sit_for): Reduce number of args from 5 to 3.
+       Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
+       Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
+       Signal error if TIMEOUT is not a number.
+       Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
+       The rework of sit_for args also fixes several incorrect Qt args
+       which should have been 1.
+       (Fredisplay): Pass 1 instead of Qt to swallow_events and
+       detect_input_pending_run_timers.
+
+       * lisp.h (sit_for): Update prototype.
+       (Fredisplay): Add EXFUN.
+
+       * dispextern.h (sit_for): Remove prototype.
+
+       * callint.c (Fcall_interactively):
+       * minibuf.c (temp_echo_area_glyphs):
+       * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
+       * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
+
+2006-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
+
+2006-07-11  Kim F. Storm  <storm@cua.dk>
+
+       * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
+       input is available.  Fix test for redisplay_dont_pause non-nil.
+       Specbind redisplay-dont-pause to t if FORCE non-nil.
+
+2006-07-10  Chong Yidong  <cyd@stupidchicken.com>
+
+       * puresize.h (BASE_PURESIZE): Increment to 1211000.
+
+       * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
+       (Fsit_for): Function deleted.
+
+       * keyboard.c (command_loop_1, Fexecute_extended_command):
+       Call sit_for instead of Fsit_for.
+
+       * minibuf.c (temp_echo_area_glyphs): Likewise.
+
+2006-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * syntax.c (Fforward_comment): Revert the reversion.
+       (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
+
+2006-07-09  John Paul Wallington  <jpw@pobox.com>
+
+       * syntax.c (Fforward_comment): Revert previous change.
+
+2006-07-09  Kim F. Storm  <storm@cua.dk>
+
+       * window.c (Fforce_window_update): Doc fix.
+
+2006-07-08  Stephen Gildea  <gildea@stop.mail-abuse.org>
+
+       * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
+       directory unreadable for better user privacy.
+
+2006-07-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
+
+       * lread.c (read_filtered_event): Remove `register' qualifier because it
+       causes compilation problem with gcc-4.0.2-20051125 on amd64.
+       (readevalloop): Remove unused var `bpos'.
+       Yet another int/Lisp_Object mixup (YAILOM).
+
+2006-07-07  Eli Zaretskii  <eliz@gnu.org>
+
+       * keyboard.c (Fexecute_extended_command): Mention the argument
+       PREFIXARG in the doc string.
+
+2006-07-07  Kim F. Storm  <storm@cua.dk>
+
+       * fringe.c (Fdefine_fringe_bitmap): Doc fix.
+
+2006-07-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
+       clash detection using the base buffer.
+
+       * puresize.h (BASE_PURESIZE): Increment to 1210500.
+
+2006-07-04  Kim F. Storm  <storm@cua.dk>
+
+       * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
+
+2006-07-04  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (Fset_overriding_fontspec_internal): Check if we need
+       to update Voverriding_fontspec_alist.
+
+2006-07-03  Richard Stallman  <rms@gnu.org>
+
+       * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
+
+       * xfaces.c (Fface_attribute_relative_p): Doc fix.
+
+       * textprop.c (Fget_char_property_and_overlay): Doc fix.
+
+       * eval.c (Fdefvaralias): Doc fix.
+
+2006-07-03  Kim F. Storm  <storm@cua.dk>
+
+       * dispnew.c (sit_for): Fix preempt condition.
+
+2006-07-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (read_filtered_event): Treat select-window just like
+       switch-frame.
+
+2006-07-02  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
+       to ever fit the tool-bar,
+       (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
+       (tool_bar_lines_needed): Use unused mode-line row as temp_row.
+       (redisplay_tool_bar): Only clear desired matrix if we actually
+       change the tool-bar window height.  Only try to make the tool-bar
+       window bigger if there is actually room for it.
+
+2006-06-30  Ralf Angeli  <angeli@caeruleus.net>
+
+       * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
+       SPI_GETWORKAREA to find the dimensions of the screen work area,
+       and adjust vertical position of the frame in order to avoid being
+       covered by the task bar.
+
+       * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
+       f->left_pos and SH_SHOW instead of f->top_pos in the call to
+       CreateWindow.  Record the actual position in f->left_pos and
+       f->top_pos.
+
+2006-06-30  John Paul Wallington  <jpw@pobox.com>
+
+       * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
+       Doc fix - default value has changed.
+
+2006-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
+
+       * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
+
+       * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
+
+       * macterm.c (Qeql): Add extern.
+       (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
+       (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
+       (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
+       Change keys of Vmac_atsu_font_table from strings to numbers.
+       (fm_style_to_face_attributes) [USE_ATSUI]: New function.
+       (init_font_name_table) [USE_ATSUI]: Use it.
+       (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
+       (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
+       [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
+       only when saved_ts_script_language_on_focus coincides with
+       Vmac_ts_script_language_on_focus.
+       [USE_MAC_TSM] (mac_tsm_suspend): Save value of
+       Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
+       (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
+       [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
+
+2006-06-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
+       (Ffield_string_no_properties, Ffield_end): Mention
+       args-out-of-range error condition in docstring.
+
+2006-06-27  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
+
+2006-06-25  Kim F. Storm  <storm@cua.dk>
+
+       * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
+       version 2.4 and later.
+
+2006-06-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (Fx_create_frame): Set font parameter directly instead of
+       using x_default_parameter, since x_get_args clears the parm alist.
+
+2006-06-24  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (directory_files_internal) [WINDOWSNT]: Find files
+       case-insensitively.
+
+2006-06-24  Aidan Kehoe  <kehoea@parhasard.net>
+
+       * lread.c (read_escape): When an unknown Unicode code point is
+       encountered as a string or character escape, signal an error.
+
+2006-06-23  Kim F. Storm  <storm@cua.dk>
+
+       * .gdbinit (pitx): Dump iterator stack.
+
+       * xdisp.c (handle_composition_prop): Push iterator on stack.
+       (set_iterator_to_next): Pop iterator at end of composition.
+
+2006-06-23  Martin Rudalics  <rudalics@gmx.at>
+
+       * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
+       itself on DOS_NT platforms, if the old and new names are identical
+       but for the letter-case.
+
+2006-06-21  Kim F. Storm  <storm@cua.dk>
+
+       * dispextern.h (struct it): Add `position' member to iterator stack.
+       Rename `pos' member to `current'.  Rearrange and add comments.
+
+       * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
+       if  we get any overlays.
+       (set_cursor_from_row): Don't clobber `end' if we rescan from
+       start_string.
+       (push_it, pop_it): Save it->position.
+
+2006-06-19  Richard Stallman  <rms@gnu.org>
+
+       * window.c (size_window): New arg FIRST_ONLY.  All callers changed.
+       (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
+       for the case of a top-level window and the following minibuffer.
+       Don't exit because of no `next' when there is a parent.
+       Use the FIRST_ONLY feature when resizing following windows.
+
+       * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
+
 2006-06-17  Kim F. Storm  <storm@cua.dk>
 
        * dispnew.c (update_frame): Check for input pending on entry.