(free_bitmap_record): Renamed from Free_Bitmap_Record.
[bpt/emacs.git] / src / ChangeLog
index 1c303f8..541432e 100644 (file)
@@ -1,5 +1,242 @@
+2007-10-09  Richard Stallman  <rms@gnu.org>
+
+       * image.c (free_bitmap_record): Renamed 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)
+       (tty_write_glyphs_with_face): Only define is HAVE_GPM.
+
+       * print.c (safe_debug_print): Use XHASH.
+
+       * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
+       Lisp elements such as tags.
+       (XHASH): New macro.
+       (EQ): Use it.
+       (SREF, SSET, STRING_COPYIN): Use SDATA.
+       (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
+
+       * alloc.c (mark_terminal): Remove left-over declaration.
+       (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
+       (allocate_vectorlike): Remove type argument.  Adjust callers.
+       (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
+       Only handle the one remaining MEM_TYPE_VECTORLIKE.
+
+       * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
+       to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
+       (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
+       (lisp_align_free, make_interval, allocate_string, allocate_string_data)
+       (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
+       Use them.
+
+       * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
+       Don't let signal handlers run when a GC is freed but not yet NULL'ed.
+       (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
+
+2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
+       loaded by default.
+
+2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * term.c (Fgpm_mouse_start): Don't signal an error if already activated
+       on this tty.
+       (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
+
+       * term.c (mouse_face_window): Rename from Qmouse_face_window.
+       Update all users.
+       (handle_one_term_event): Use Gpm_DrawPointer.
+       (Fgpm_mouse_start): Rename from Fterm_open_connection.
+       Signal errors instead of returning nil.  Always return nil.
+       (Fgpm_mouse_stop): Rename from Fterm_close_connection.
+       Make it a noop if gpm-mouse was not activated.
+       (syms_of_term): Update names.
+
+2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
+       (init_sys_modes): Check that gpm_tty is the current tty.
+
+       * alloc.c (allocate_terminal): Set the vector size to only count the
+       lisp fields.  Initialize those to nil.
+       (mark_object): Don't treat terminals specially.
+       (mark_terminal): Remove.
+       (mark_terminals): Use mark_object instead.
+
+       * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
+       the GC to the beginning.
+
+       * indent.h:
+       * indent.c: Use EMACS_INT for ints coming from Elisp data.
+
+       * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
+
+2007-09-25  Jason Rumney  <jasonr@gnu.org>
+
+       * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
+
+       * w32console.c (create_w32cons_output): Remove.
+
+       * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
+
+       * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
+       (reset_sys_modes): Use reset_terminal_modes_hook.
+
+2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * eval.c (do_autoload): Don't output any message.
+
+2007-09-24  Juri Linkov  <juri@jurta.org>
+
+       * emacs.c (standard_args): Change priority of "--no-splash"
+       from 40 to 3.  Add "--no-desktop" with the same priority.
+
+2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * alloc.c (gc_sweep): Check cons cell mark bits word by word
+       and optimize the case where they are all 1.
+
+2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
+
+       * lisp.h (abs): Define if not defined.
+       * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
+       Don't define `abs', since it's defined in lisp.h.
+
+2007-09-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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".
+       [WINDOWSNT]: No need to protect from NAME arg being null.
+
+2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
+       up the tty state.
+
+2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
+       (gpm_tty): Change its type.
+       * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
+       (gpm_tty): Change its type and initialize it.
+       (Fterm_open_connection): Check the frame is indeed a tty.
+       Use the new gpm_tty.
+       (Fterm_close_connection): Use the new gpm_tty.
+       * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
+       * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
+
+2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
+
+       * w32term.c (x_draw_glyph_string): Use strike_through_color, not
+       underline_color, to draw strike-through.
+
 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * lisp.h (allocate_terminal): Declare.
+
+       * window.c (candidate_window_p): Consider frames that are being placed
+       by the user as somewhere between visible and iconified.
+       (window_loop): Prefer windows on the current frame.
+       (Fselect_window): Move the use of select-frame to the beginning so we
+       can just delegate all the work (it'll call us back anyway).
+
+       * frame.c (Qdisplay_environment_variable):
+       * frame.h (Qdisplay_environment_variable): Delete.
+
+       * .gdbinit (xbacktrace): Print the arg's address rather than the value
+       of the first arg, since that value may be a union.
+
        * callproc.c (child_setup, getenv_internal): Use the frame's `display'
        parameter rather than Qdisplay_environment_variable.  If all else
        fails, look for DISPLAY in initial-environment.
@@ -7,6 +244,7 @@
 2007-09-21  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in (emacstool): Remove target.
+       (lisp, shortlisp): Remove termdev.elc.
 
 2007-09-21  Markus Triska  <markus.triska@gmx.at>
 
 
        * window.c (Fshrink_window): Reflow docstring.
 
+2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
+
+       * Version 22.1 released.
+
+2007-06-01  Richard Stallman  <rms@gnu.org>
+
+       * xfns.c (x_encode_text): Add GCPRO.
+
+2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * xfns.c (x_set_name_internal): Save encoded name before
+       x_encode_text in case string data is relocated.
+
+2007-05-31  Richard Stallman  <rms@gnu.org>
+
+       * buffer.c (syms_of_buffer): Doc fix.
+
+2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
+
+       * sysdep.c (init_sys_modes): Add rather than replace with
+       O_NONBLOCK.
+
+       * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
+       term_mouse_moveto.
+
+       * termhooks.h (term_mouse_moveto): New extern.
+
+       * term.c (mouse_face_window): Rename...
+       (Qmouse_face_window): ...to this.
+       (term_show_mouse_face, term_clear_mouse_face)
+       (term_mouse_highlight): Use Qmouse_face_window.
+       (term_mouse_moveto): New function.
+       (term_mouse_position): Make it work.
+       (syms_of_term): Uncomment assignment to mouse_position_hook.
+       Staticpro Qmouse_face_window.
+
+2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
+       around current_column call.
+
+2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * xfaces.c (syms_of_xfaces): Delete stray semicolon.
+       * xdisp.c (next_element_from_buffer):
+       * window.c (delete_window):
+       * term.c (term_mouse_highlight):
+       * msdos.c (getdefdir):
+       * macterm.c (mac_create_bitmap_from_bitmap_data)
+       (init_font_name_table):
+       * fns.c (Fsxhash):
+       * data.c (Fmake_local_variable):
+       * ccl.c (ccl_driver): Likewise.
+
+2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
+       Call mac_wakeup_from_rne on window size change.
+
+2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (uncache_image): Fix typo.
+
+2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
+
+       * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
+
+2007-05-22  Richard Stallman  <rms@gnu.org>
+
+       * xterm.c (x_connection_closed): Remove NO_RETURN.
+
+2007-05-22  Martin Rudalics  <rudalics@gmx.at>
+
+       * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
+
+2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (uncache_image): New function.
+       (Fimage_refresh): New function.
+
+2007-05-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
+
+2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
+
+       * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
+       * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
+
+2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
+
+       * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
+       conditional on [HAVE_GPM_H].
+
+2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * syntax.c (skip_chars): Update syntax-table only after we checked that
+       the new location is valid.
+
+2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
+       mac_get_window_bounds.
+
+2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
+
+       * Makefile.in (LIBGPM): Allow it to be set from configure.
+       If set then link Emacs with it.
+
+       * config.in: Regenerate.
+
+       * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
+       New externs.
+
+       * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
+       Include gpm.h.
+       (handle_one_term_event, term_gpm): New externs.
+
+       * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
+       and allow it to be interrupted by SIGIO.
+
+       * process.c (gpm_wait_mask, max_gpm_desc): New variables.
+       (wait_reading_process_output): Wait on gpm_fd too.
+       (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
+       (add_gpm_wait_descriptor_called_flag): New variable.
+       (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
+
+       * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
+       (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
+       (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
+       Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
+       (make_lispy_event): Add case GPM_CLICK_EVENT.
+       (read_avail_input): Handle mouse input.
+
+       * term.c (write_glyphs_with_face): New function.
+       [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
+       (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
+       (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
+       (mouse_face_face_id, term_gpm, pos_x, pos_y)
+       (last_mouse_x, last_mouse_y): New variables.
+       (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
+       (term_mouse_highlight, term_mouse_movement, term_mouse_position)
+       (term_mouse_click, handle_one_term_event, Fterm_open_connection)
+       (Fterm_close_connection): New functions.
+       (term_init): Initialise mouse_face_window.
+
+2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (redisplay_window): If first window line is a
+       continuation line, recompute the new window start instead of
+       recentering.
+
+2007-05-18  Glenn Morris  <rgm@gnu.org>
+
+       * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
+       Suggested by Alfred M. Szmidt <ams@gnu.org>.
+
+2007-05-17  Glenn Morris  <rgm@gnu.org>
+
+       * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
+
+2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
+       dead key repeat and up events.
+
+2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (pbm_load): Check image size for monochrome pbm.
+
+2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xterm.c (XTread_socket): Revert last change.
+
+2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.c (pbm_load): Correctly check image size for greyscale pbm.
+
+       * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
+
+2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
+       mixup (YAILOM).
+
+2007-05-07  Andreas Schwab  <schwab@suse.de>
+
+       * keymap.c (Flookup_key): Fix typo in last change.
+
+2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
+       mapping for unibyte strings.
+
+2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
+       (Fx_popup_dialog) [MAC_OSX]: Likewise.
+
+2007-04-29  Richard Stallman  <rms@gnu.org>
+
+       * insdel.c (replace_range): For undo, record insertion first.
+
+2007-04-29  Andreas Schwab  <schwab@suse.de>
+
+       * lisp.h (VECSIZE): Use OFFSETOF.
+
+2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * xdisp.c (try_window_reusing_current_matrix): Fix number of
+       disabled lines.
+
+2007-04-28  Richard Stallman  <rms@gnu.org>
+
+       * lread.c (read_escape): In a string, \s is always space.
+
+2007-04-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
+
+       * gtkutil.c (xg_update_menubar, create_menus): Create empty
+       submenu for menu bar items.
+
 See ChangeLog.10 for earlier changes.
 
 ;; Local Variables: