* image.c (syms_of_image): Don't access XSYMBOL's internals directly.
[bpt/emacs.git] / src / ChangeLog
index 40c0cb2..26aab0d 100644 (file)
@@ -1,3 +1,334 @@
+2011-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
+
+2011-01-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE.  (Bug#7848)
+
+2011-01-15  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (inhibit_point_swap): New variable.
+       (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
+       point this time.
+       (Fset_window_configuration): Set inhibit_point_swap to 1 instead
+       of setting selected_window to nil (Bug#7728).
+
+2011-01-12  Chong Yidong  <cyd@stupidchicken.com>
+
+       * config.in (TERMINFO): New definition.
+
+       * s/netbsd.h: Use it to choose between terminfo and termcap
+       (Bug#7642).
+
+2011-01-03  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
+
+       * nsfns.m (ns_set_name_iconic): Remove.
+       (ns_get_screen): Don't assign integer to f.
+       (ns_set_name_internal): New function (Bug#7517).
+       (Vicon_title_format): Extern declare.
+       (ns_set_name): Call ns_set_name_internal.
+       (x_explicitly_set_name): Remove call to ns_set_name_iconic.
+       (x_implicitly_set_name): Ditto.
+       (x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
+       (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
+       Always use buffer name for title and buffer filename only for
+       RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
+
+2011-01-03  Eli Zaretskii  <eliz@gnu.org>
+
+       * image.c (png_jmpbuf): Remove definition.
+       (my_png_error, png_load): Don't use png_jmpbuf.
+
+2010-12-31  Eli Zaretskii  <eliz@gnu.org>
+
+       * image.c <Qlibpng_version>: New variable.
+       (syms_of_image): Intern and staticpro it.  Set its value to the
+       version of PNG library we were compiled with.
+       (my_png_error, png_load): Avoid GCC warnings about direct access
+       to png_ptr->jmpbuf.  (Bug#7716)
+       (png_jmpbuf): New macro.
+       (my_png_error, png_load): Use it instead of #ifdef'ing according
+       to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
+
+2010-12-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * .gdbinit (xgetptr): Fix the union+lsb case.
+       (xbacktrace): Fix the union case.
+
+2010-12-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
+       different from selected-window's.
+
+2010-12-25  Eli Zaretskii  <eliz@gnu.org>
+
+       * keyboard.c (parse_menu_item): Prepend "  " to the key sequence
+       equivalent of a menu item when the key sequence is given by the
+       `:keys' attribute.  (Bug#7662)
+
+       * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
+       the basic faces are supported.
+
+2010-12-24  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
+
+2010-12-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (Fformat_mode_line): Fix last change.
+
+2010-12-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
+       faces (Bug#7587).
+
+2010-12-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * fileio.c (Fexpand_file_name): One more doc fix.
+
+2010-12-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * fileio.c (Fexpand_file_name): Doc fix.  (Bug#7617)
+
+2010-12-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (Fx_show_tip): Call try_window with last argument
+       TRY_WINDOW_IGNORE_FONTS_CHANGE.  Delete the TODO ifdef: problem
+       solved.  Round up the tip height to an integral multiple of the
+       frame's line height.  Add FRAME_COLUMN_WIDTH to the tip width.
+       (Bug#7398)
+
+       * xdisp.c (string_pos_nchars_ahead, c_string_pos)
+       (face_before_or_after_it_pos, next_element_from_string)
+       (next_element_from_c_string, produce_stretch_glyph): Remove unused
+       calculations of maximum string length before calling
+       string_char_and_length and STRING_CHAR_AND_LENGTH.
+       (string_char_and_length): Update commentary: MAXLEN is no longer
+       needed.
+
+2010-12-10  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
+       as (Qsave_session arg).
+
+       * xsmfns.c (smc_interact_CB): Set arg to Qnil.
+       (smc_die_CB): Make an event with arg Qt.
+       (Fhandle_save_session): If event has Qt as argument,
+       call Fkill_emacs (Bug#7552).
+
+2010-12-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
+
+2010-12-06  Chong Yidong  <cyd@stupidchicken.com>
+
+       * dispextern.h (struct it): New member overlay_strings_charpos.
+
+       * xdisp.c (next_overlay_string, load_overlay_strings): Record the
+       charpos where we computed n_overlay_strings.
+       (next_overlay_string): Load overlay strings at recorded position,
+       which may not be the same as the iterator's charpos (Bug#7016).
+
+2010-12-05  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
+       with cursor color and draw a rectangle around the image (Bug#7412).
+
+2010-12-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (try_scrolling): Avoid infloop if the first line is
+       obscured due to a vscroll (Bug#7537).
+
+2010-12-02  Jan Djärv  <jhd@zeplinf.localdomain>
+
+       * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
+
+       * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
+       Use FRAME_TOOLBAR_HEIGHT.
+       (x_set_offset): Handle XNegative and YNegative in
+       f->size_hint_flags (Bug#7510).
+
+2010-11-25  Kenichi Handa  <handa@m17n.org>
+
+       * charset.c (emacs_mule_charset): Make it an array of charset ID;
+       i.e. integer.
+       (Fdefine_charset_internal): Adjusted for the above change.
+       (init_charset_once): Likewise.
+
+       * charset.h (emacs_mule_charset): Adjust the prototype.  Delete
+       duplicated extern.
+
+       * coding.c (emacs_mule_char): Adjust for the change of
+       emacs_mule_charset.
+
+       * lread.c (read_emacs_mule_char): Adjust for the change of
+       emacs_mule_charset.
+
+2010-11-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
+       of w32api >= 3.15.  (Bug#6989)  (Bug#7452)
+
+2010-11-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * alloc.c (mark_terminals): Ensure that the image cache is marked
+       even if the terminal object was marked earlier (Bug#6301).
+
+2010-11-21  Chong Yidong  <cyd@stupidchicken.com>
+
+       * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
+
+2010-11-20  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (menubar_map_cb): New function (Bug#7425).
+       (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
+       Use 23 as menubar height if 0. (Bug#7425).
+
+2010-11-14  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
+
+       * config.in (HAVE_G_TYPE_INIT): New symbol.
+
+2010-11-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * lread.c (Fload): Mention `load-in-progress' and
+       `load-file-name'.  (Bug#7346)
+
+2010-11-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
+       (kbd_buffer_store_event_hold, kbd_buffer_get_event)
+       (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
+       subprocesses.  Use buffer_free only ifdef subprocesses.
+
+       * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
+       the subprocesses version, not in the non-subprocesses one.
+
+       * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
+
+       * xfns.c (x_real_positions): Fix declaration-after-statement
+       problem.
+
+2010-11-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (free_image): Don't garbage the frame here, since this
+       function can be called while redisplaying (Bug#7210).
+       (uncache_image): Garbage the frame here (Bug#6426).
+
+2010-11-04  Chong Yidong  <cyd@stupidchicken.com>
+
+       * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
+       Windows.
+
+2010-11-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * process.c (Fmake_network_process): Don't call turn_on_atimers around
+       `connect' (Bug#5723).
+
+2010-11-04  Helmut Eller  <eller.helmut@gmail.com>
+
+       * process.c (Fmake_network_process): Call `select' for interrupted
+       `connect' rather than creating new socket (Bug#5173).
+
+2010-11-04  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
+       Don't sheck SPEC if it is nil.
+       (font_list_entities): Call font_delete_unmatched if
+       Vface_ignored_fonts is non-nil.
+
+2010-11-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
+       (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
+
+       * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
+       Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
+       set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
+       TRY_WINDOW_CHECK_MARGINS.
+
+       * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
+       TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
+
+2010-11-04  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
+       parent is the root window.  Check this after traversing window tree.
+
+       * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
+
+       * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
+
+       * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
+       before traversing window tree (Bug#5721).
+
+2010-11-03  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (CRT_DIR): New variable, set by configure.
+       * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
+       Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)
+
+2010-11-01  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * process.c (kbd_is_on_hold): New variable.
+       (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
+       New functions.
+       (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
+       select on empty input mask.
+       (init_process): Initialize kbd_is_on_hold to 0.
+
+       * process.h (hold_keyboard_input, unhold_keyboard_input)
+       (kbd_on_hold_p): Declare.
+
+       * keyboard.c (input_available_signal): Declare.
+       (kbd_buffer_nr_stored): New function.
+       (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
+       more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
+       (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
+       returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
+       (tty_read_avail_input): If input is on hold, return.
+       Don't read more that free slots in kbd_buffer (Bug#6571).
+
+2010-10-31  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xterm.c (x_connection_closed): Print informative error message
+       when aborting on GTK.  This requires using shut_down_emacs
+       directly instead of Fkill_emacs.
+
+2010-10-25  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (Fdbus_call_method_asynchronously)
+       (Fdbus_register_signal, Fdbus_register_method): Check, whether
+       `dbus-registered-objects-table' is initialized.
+
+2010-10-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xterm.c (x_connection_closed): Kill Emacs unconditionally.
+
+2010-10-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
+
+       * dispnew.c (syms_of_display) <initial-window-system, window-system>:
+       Deprecate use as a boolean flag.
+
+2010-10-18  Ken Brown  <kbrown@cornell.edu>
+
+       * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
+
+2010-10-15  Kenichi Handa  <handa@m17n.org>
+
+       Fix incorrect font metrics when the same font is opened with
+       different pixelsizes.
+
+       * xftfont.c: Include composite.h.
+       (xftfont_shape): New function.
+       (syms_of_xftfont): Set xftfont_driver.shape.
+
 2010-10-13  Damyan Pepper  <damyanp@gmail.com>
 
        Fix handling of font properties on Windows (bug#6303).
@@ -22252,7 +22583,7 @@ See ChangeLog.10 for earlier changes.
 ;; add-log-time-zone-rule: t
 ;; End:
 
-    Copyright (C) 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+    Copyright (C) 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
 
   This file is part of GNU Emacs.