*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
index 40d2ed1..342a76d 100644 (file)
@@ -1,3 +1,477 @@
+2005-11-20  Nick Roberts  <nickrob@snap.net.nz>
+
+       * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
+       this type is recognised when debugging.
+
+2005-11-19  Andreas Schwab  <schwab@suse.de>
+
+       * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
+       Lisp_Cons and Lisp_Float.
+
+2005-11-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
+       New variable.
+       [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New
+       function.
+       (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
+       [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
+       font size is smaller than or equal to cg_text_anti_aliasing_threshold.
+
+2005-11-17  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (x_create_bitmap_from_xpm_data): Free attributes on
+       fail.
+
+       * xfaces.c (Qignore_defface): New variable.
+       (syms_of_xfaces): Provide `:ignore-defface'.
+       (IGNORE_DEFFACE_P): New macro.
+       (check_lface_attrs, lface_fully_specified_p)
+       (Finternal_set_lisp_face_attribute)
+       (Fface_attribute_relative_p, Fmerge_face_attribute): Handle
+       Qignore_defface as a possible value.
+       (merge_face_vectors): The merged face is `unspecified' if the
+       mergee specifies `:ignore-defface'.
+
+2005-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (readevalloop): Add missing GCPROs.
+
+2005-11-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (xg_set_icon_from_xpm_data): New function.
+
+       * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
+       (gnu_xbm_bits): Rename from gnu_bits (xbm version).
+
+       * xterm.c (x_bitmap_icon): Use the xpm if available.
+
+       * image.c (x_create_bitmap_from_xpm_data): New function.
+       (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
+
+2005-11-15  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
+
+2005-11-16  Nick Roberts  <nickrob@snap.net.nz>
+
+       * .gdbinit: Make SIGTSTP work like SIGINT normally does.
+
+2005-11-15  Andreas Schwab  <schwab@suse.de>
+
+       * lisp.h (struct Lisp_Cons): Make cdr a union.
+       (XCDR_AS_LVALUE): Adjust.
+       (struct Lisp_Float): Make data a union.
+       (XFLOAT_DATA): Adjust.
+
+       * alloc.c (free_float): Make free list chaining aliasing-safe.
+       (make_float): Likewise.
+       (free_cons): Likewise.
+       (Fcons): Likewise.
+       (check_cons_list): Likewise.
+       (Fmake_symbol): Likewise.
+       (allocate_misc): Likewise.
+       (free_misc): Likewise.
+       (gc_sweep): Likewise.
+
+2005-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c (HASHKEY_QUERY_CACHE): New define.
+       (xrm_create_database, xrm_q_put_resource): Empty query cache.
+       (xrm_get_resource): Use query cache.
+
+       * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
+       inhibit_window_system is set.
+
+2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macgui.h (USE_CG_TEXT_DRAWING): New define.
+       (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
+       and cg_glyphs.
+
+       * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
+       (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
+       (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
+       cg_glyphs in struct MacFontStruct if synthesized bold or italic is
+       not used and font substitution never occurs for ASCII and Latin-1
+       characters.
+       (XLoadQueryFont): Maximum and minimum metrics are now those among
+       ASCII characters.
+       (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
+       height adjustments for Courier, Helvetica, and Times.
+
+       * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
+
+2005-11-11  David Reitter <david.reitter@gmail.com>
+
+       * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
+       macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
+       Vmac_control_modifier / mac-control-modifier,
+       Vmac_option_modifier / mac-option-modifier,
+       Vmac_command_modifier / mac-command-modifier.
+       (mac_to_emacs_modifiers): Use the new style modifier
+       variables.  Return UInt32 (modifiers are longs now.)
+       (backtranslate_modified_keycode): New function (refactoring).
+       (XTread_socket): Use new modifier variables and refactored function.
+       (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
+       no dedicated meta key.  Not in use anyway.)
+       (convert_fn_keycode): Map Fn-keys to their original keycode
+       using a table (english keyboard only).
+
+2005-11-11  Kim F. Storm  <storm@cua.dk>
+
+       * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
+       Add post hook to "backtrace" to always dump lisp call stack to
+       increase chance of people sending it to us when reporting bugs.
+
+       * doc.c (Fsubstitute_command_keys): Doc fix.
+
+       * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
+
+       * xdisp.c (handle_stop): Skip overlay string handling if
+       ignore_overlay_strings_at_pos_p is set.
+       (set_iterator_to_next): At end of display vector, set
+       ignore_overlay_strings_at_pos_p if dpvec came from an overlay
+       string, so we skip those overlay strings at current pos.
+
+2005-11-10  Lars Hansen <larsh@soem.dk>
+
+       * fileio.c (file-regular-p): Doc fix.
+
+2005-11-10  Kim F. Storm  <storm@cua.dk>
+
+       * alloc.c (valid_lisp_object_p): New function to validate that
+       an object is really a valid Lisp_Object.
+
+       * lisp.h (valid_lisp_object_p): Add prototype.
+
+       * print.c (safe_debug_print): New function to be called from gdb
+       to print Lisp objects; use valid_lisp_object_p to avoid crashing
+       if user tries to print something which is not a Lisp object.
+
+       * .gdbinit (pp, pp1): Use safe_debug_print.
+       (pv, pv1): New commands to print value of a lisp variable.
+
+2005-11-10  Nick Roberts  <nickrob@snap.net.nz>
+
+       * .gdbinit (pp1): New user-defined function.
+
+2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
+
+       * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
+       related variables for dumped executable.
+
+       * unexmacosx.c (unexec_write_zero): New function.
+       (copy_data_segment): Clear uninitialized local variables in
+       statically linked libraries.
+
+       * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
+
+2005-11-09  Juri Linkov  <juri@jurta.org>
+
+       * keymap.c (shadow_lookup): If Flookup_key returns a number,
+       call it again with a sub-key-sequence, and if its return value
+       is non-nil (sub-key is bound), return nil.
+
+2005-11-08  Kim F. Storm  <storm@cua.dk>
+
+       * process.c (Fsignal_process): Recognize signal names with and
+       without SIG prefix, e.g. SIGHUP and HUP.
+
+       * search.c (search_buffer): No need to initialize base_pat.
+
+2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * window.c (Fget_lru_window, Fget_largest_window, window_loop):
+       Don't abuse the `mini' arg.  Use the `obj' arg instead.
+
+2005-11-04  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (show_mouse_face): Clear mouse face to eol.
+
+2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
+       font-lock.elc and jit-lock.elc.
+
+2005-11-03  Richard M. Stallman  <rms@gnu.org>
+
+       * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
+       (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
+       (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
+
+       * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
+
+       * alloc.c (refill_memory_reserve): Move decl out of conditionals.
+
+2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * window.c (Fdisplay_buffer): Fix last change to not use
+       a dedicated window.
+
+2005-11-01  Kim F. Storm  <storm@cua.dk>
+
+       * fringe.c (update_window_fringes): Undo 2005-10-27 change.
+       Instead, rotate the bottom angle bitmap 180 degrees to indicate
+       that the bottom row does not end in a newline.
+
+2005-11-01  Andreas Schwab  <schwab@suse.de>
+
+       * unexelf.c (unexec): Handle .plt section in BSS segment.
+
+2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
+
+       * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
+       determine whether to consider dedicated windows as well.
+       (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
+       (Fdisplay_buffer): Do consider dedicated windows in those cases where
+       we will split the window rather than reuse it.
+       Don't try to use windows on other displays.
+
+2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * puresize.h (BASE_PURESIZE): Increment to 1170000.
+
+2005-10-31  Romain Francoise  <romain@orebokech.com>
+
+       * macfns.c: Update copyright year.
+       * m/gould.h: Likewise.
+
+2005-10-30  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (display_line): Restore it->current_x and call
+       extend_face_to_end_of_line when last glyph doesn't fit on line.
+       (set_glyph_string_background_width): Remove specific tests  here
+       to see if face background should extend to end of line.  Simplify.
+
+2005-10-30  Richard M. Stallman  <rms@gnu.org>
+
+       * alloc.c (BYTES_USED): Use uordblks, not arena.
+       (bytes_used_when_reconsidered): New variable.
+       (emacs_blocked_free): Set that.
+
+2005-10-29  Chong Yidong  <cyd@stupidchicken.com>
+
+       * alloc.c (emacs_blocked_free): Fix typo.
+
+2005-10-29  Richard M. Stallman  <rms@gnu.org>
+
+       * data.c (Fmake_variable_frame_local): Doc fix.
+
+       * xdisp.c (handle_fontified_prop): Do nothing if memory full.
+       (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
+       controls whether to save and restore mode_line_proptrans_alist.
+       Callers changed.
+       (unwind_format_mode_line): Work with that feature.
+       (redisplay_internal): Don't call prepare_menu_bars if memory full.
+       (move_elt_to_front): New function.
+       (display_mode_element): Use move_elt_to_front.
+       Don't bother munging text props on a null string.
+       Delete obsolete elts from mode_line_proptrans_alist.
+       (decode_mode_spec): Test Vmemory_full, not spare_memory.
+       (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
+
+       * lisp.h (memory_full_cons_threshold): Declare.
+       (internal_lisp_condition_case): Declare.
+
+       * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
+       (Fmemory_full_p): Function deleted.
+       (syms_of_alloc): Don't defsubr it.
+       (memory_full_cons_threshold): New variable.
+       (spare_memory): Now a vector of 7 elts.
+       (buffer_memory_full): Don't set Vmemory_full here.
+       (xfree): Don't try to refill here.
+       (emacs_blocked_free): Record BYTES_USED in local var.
+       (memory_full): Now free all the slots in spare_memory.
+       (refill_memory_reserve): Allocate each slot in spare_memory.
+       (init_alloc_once): Call refill_memory_reserve.
+
+       * keyboard.c (command_loop_1): Don't set Vmemory_full here.
+
+       * eval.c (internal_lisp_condition_case): New function.
+       (Fcondition_case): Use internal_lisp_condition_case.
+       (Feval): Test Vmemory_full and memory_full_cons_threshold.
+       (Ffuncall): Likewise.
+
+       * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
+
+2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * syntax.c (Fparse_partial_sexp): Fix docstring.
+
+2005-10-28  Romain Francoise  <romain@orebokech.com>
+
+       * puresize.h (BASE_PURESIZE): Increment to 1130000.
+
+2005-10-28  Richard M. Stallman  <rms@gnu.org>
+
+       * xfns.c (syms_of_xfns): Provide `x' as feature.
+
+       * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
+
+       * editfns.c (Fformat): Don't include string padding
+       between info[n].start and info[n].end.
+
+       * alloc.c (spare_memory): No longer static.
+       (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
+
+       * puresize.h (BASE_PURESIZE): Increment to 1120000.
+
+2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * data.c (Fmake_variable_frame_local): Add clarification to docstring.
+
+       * fringe.c (update_window_fringes): Handle case where buffer ends
+       with a newline.
+
+2005-10-27  Kenichi Handa  <handa@m17n.org>
+
+       * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
+
+2005-10-24  Kenichi Handa  <handa@m17n.org>
+
+       * charset.h (charset_mule_unicode_0100_24ff)
+       (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
+       Extern them.
+
+       * charset.c (charset_mule_unicode_0100_24ff)
+       (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
+       New variables.
+       (Fsetup_special_charsets): Initialize them.
+
+       * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
+       supported Unicode characters.
+
+2005-10-25  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (w32_to_x_font): Avoid forcing font widths.
+
+2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * image.c [MAC_OS] (image_load_qt_1): Check image size.
+       Use GraphicsImportGetImageDescription instead of
+       GraphicsImportGetNaturalBounds.
+       [MAC_OSX] (image_load_quartz2d): Check image size.
+       [MAC_OS] (xpm_load_image): Likewise.
+
+       * macterm.c (last_mouse_glyph_frame): New var.
+       (note_mouse_movement): Say mouse moved if current frame differs
+       from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
+       (XTmouse_position): Set last_mouse_glyph_frame.
+       (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
+       (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
+       Use EndianU16_BtoN.
+       (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
+       (x_per_char_metric, XLoadQueryFont)
+       [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
+       glyph bounds.
+       (mac_to_x_fontname, mac_do_list_fonts)
+       (mac_initialize_display_info): Change screen resolutions to 72dpi.
+
+2005-10-25  Masatake YAMATO  <jet@gyve.org>
+
+       * minibuf.c (Fdisplay_completion_list): Small doc fix.
+
+2005-10-24  Kim F. Storm  <storm@cua.dk>
+
+       * xterm.c: Undo 2005-10-23 change.
+       (last_mouse_glyph_frame): New var.
+       (note_mouse_movement): Say mouse moved if current frame differs
+       from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
+       (XTmouse_position): Set last_mouse_glyph_frame.
+       (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
+       last_mouse_glyph] on mouse up/down event.
+
+       * editfns.c (Fcompare_buffer_substrings): Fix last change.
+
+2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
+
+2005-10-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.c (note_mouse_movement): Always call note_mouse_highlight
+       so tool tips don't interfere with press on tool bar button.
+
+2005-10-23  Richard M. Stallman  <rms@gnu.org>
+
+       * casetab.c (Fset_case_table): Doc fix.
+
+       * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
+       (readevalloop): Compute ENTIRE properly.
+       (syms_of_lread) <load-history>: Doc fix.
+
+2005-10-21  Richard M. Stallman  <rms@gnu.org>
+
+       * lread.c (Fload): Simplify gcpro structure.
+       Gcpro FOUND as well as FILE, but not EFOUND.
+       Unless preloading, record FOUND instead of FILE in Vload_history.
+       Rename repeat local FILE to MSG_FILE.
+       (syms_of_lread) <load-history>: Doc fix.
+
+2005-10-21  Kenichi Handa  <handa@m17n.org>
+
+       * search.c (boyer_moore): Add parens to fix and/or precedence bug.
+
+2005-10-20  Kim F. Storm  <storm@cua.dk>
+
+       * buffer.c (clone_per_buffer_values): Remove unused var tem.
+       (init_buffer): Remove unused vars dotstat, pwdstat.
+
+       * ccl.c (check_ccl_update): Remove unused var vp.
+
+       * fileio.c (auto_save_error): Call SAFE_FREE.
+
+       * fns.c (Fchar_table_range): Remove unused var i.
+
+       * minibuf.c (display_completion_list_1): New wrapper function
+       for Fdisplay_completion_list.
+       (Fminibuffer_completion_help): Use it.
+
+       * term.c (encode_terminal_code): Remove unused var src_start.
+
+       * window.c (Fwindow_tree): Remove unused var alist.
+
+       * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
+
+2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)
+
+       * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
+
+2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)
+
+       * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
+
+2005-10-20  Andreas Schwab  <schwab@suse.de>
+
+       * minibuf.c (Fdisplay_completion_list): Doc fix.
+
+2005-10-19  Kim F. Storm  <storm@cua.dk>
+
+       * image.c (check_image_size): Handle integer Vmax_image_size value
+       directly as max pixel value.  Use default frame size for null frame.
+       (syms_of_image) <max-image-size>: Describe integer value.
+
+2005-10-19  Romain Francoise  <romain@orebokech.com>
+
+       * emacs.c (main): Update copyright year.
+
+2005-10-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (Vmax_image_size): New variable.
+       (check_image_size): New function.
+       (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
+       (gif_load, gs_load): Use it.
+       (lookup_image): Try loading again if previous load failed.
+       (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
+       to display in, NULL if none.
+       (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
+       argument.
+
 2005-10-18  Richard M. Stallman  <rms@gnu.org>
 
        * search.c (Fstring_match): Doc fix.
 2005-10-16  Masatake YAMATO  <jet@gyve.org>
 
        * minibuf.c (Fdisplay_completion_list): Add new optional
-       argument COMMON_SUBSTRING. Bind `completion-common-substring' 
+       argument COMMON_SUBSTRING.  Bind `completion-common-substring'
        to the optional argument during running `completion-setup-hook'.
 
 2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>