Remove leftover table unibyte_to_multibyte_table.
[bpt/emacs.git] / src / ChangeLog
index bf112e0..06adb2d 100644 (file)
@@ -1,3 +1,481 @@
+2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Remove leftover table unibyte_to_multibyte_table.
+       * character.c (unibyte_to_multibyte_table): Remove.
+       (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
+       * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
+       * character.h (UNIBYTE_TO_CHAR): New macro.
+       (MAKE_CHAR_MULTIBYTE): Use it.
+       (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
+       * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
+       (message_dolog, set_message_1):
+       * search.c (Freplace_match):
+       * editfns.c (Fcompare_buffer_substrings):
+       * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
+       (concat):
+       * insdel.c (copy_text, count_size_as_multibyte):
+       Use ASCII_CHAR_P and BYTE8_TO_CHAR.
+       * term.c (produce_glyphs):
+       * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
+       * regex.c (RE_CHAR_TO_MULTIBYTE):
+       * cmds.c (internal_self_insert):
+       * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
+
+
+       * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
+
+2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * puresize.h (BASE_PURESIZE): Increase to 1310000.
+
+2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
+
+       * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
+
+2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
+       still needed under Tiger.
+
+       * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
+
+       * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
+       __Apple__.
+
+       * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
+
+2009-10-15  Kenichi Handa  <handa@m17n.org>
+
+       * print.c (print_object): Escape a symbol like "2E10" too.
+
+2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       Cleanups and changes for 64-bit compile under Snow Leopard.
+       Based on suggestions by Erik Charlebois.
+
+       * nsfns.m (xw-color-values): Use CGFloat where appropriate.
+
+       * nsfont.m (ns_char_width): Replace deprecated call.
+       (ns_findfonts, nsfont_list_family): Use long format in printf, and
+       cast argument.
+       (nsfont_open): Use ns_char_width() everywhere.
+       (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where
+       appropriate.
+
+       * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
+
+       * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
+       where appropriate.
+
+       * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
+       where appropriate.
+       (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
+       Use stringWithUTF8String.
+       (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
+
+       * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
+       Add formal protocol mention to inheritance.
+       [NS_HAVE_NSINTEGER]: Drop conditional and contents.
+
+       * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
+       Fix printf format.
+       (ns_query_color): Use CGFloat where appropriate.
+       (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
+       (EmacsScroller-mouseDown:) Use long format in printf, and cast
+       argument.
+
+       * config.in (NS_HAVE_NSINTEGER): Drop.
+
+       * dbusbind.c (dbus-method-return-internal)
+       (dbus-method-error-internal): Use long format in printf, and cast
+       argument.
+
+       * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
+       in printf, and cast argument.
+
+       * process.c (list_processes_1): Use long format in printf, and
+       cast argument.
+
+2009-10-11  Glenn Morris  <rgm@gnu.org>
+
+       * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
+
+2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
+       menu bar with a small width so it doesn't enlarge the frame.
+
+2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * fontset.c (Fset_fontset_font): Fix typos in error messages.
+
+2009-10-06  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
+       SOME_MACHINE_LISP (this enters indirectly via DOC).
+
+2009-10-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
+
+2009-10-04  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
+       Doc fix.
+
+2009-10-03  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
+
+2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
+
+       * lisp.h (Qdelete_directory_internal): Removed, because it is not
+       used anymore outside fileio.c.
+
+       * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
+
+2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
+
+       * lisp.h (Qdelete_directory_internal):
+       Declare, instead of Qdelete_directory.
+
+       * w32fns.c (Fsystem_move_file_to_trash): Use it.
+
+2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * eval.c (Fcalled_interactively_p): Add `kind' argument.
+
+2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
+
+       * fileio.c (Fdelete_directory_internal): Rename from
+       Fdelete_directory.  It is not a command anymore.  It has no file
+       name handler.
+
+2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xdisp.c (get_next_display_element): Use an enum in last change.
+
+2009-09-28  Kenichi Handa  <handa@m17n.org>
+
+       * xdisp.c (get_next_display_element): Pay attention to
+       unibyte_display_via_language_environment in handling
+       Vnobreak_char_display.
+
+2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.h (ns_app_name): New extern variable.
+
+       * nsterm.m (ns_app_name): New variable.
+       (ns_term_init): Set and use it.
+       (ns_term_shutdown): Use it.
+
+       * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
+       (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
+
+       * nsfns.m (ns_set_name_iconic, ns_set_name)
+       (ns_set_name_as_filename, x-create-frame, ns-get-resource)
+       (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
+
+       * menu.c (find_and_return_menu_selection) [HAVE_NS]:
+       Remove double-casting in client_data comparison.
+
+2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * keyboard.c (make_lispy_event): Remember last wheel direction.
+       (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
+
+2009-09-26  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
+       internal.elc.  Add term/pc-win.elc.
+       (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
+       term/x-win.elc.
+       (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
+       term/w32-win.elc.
+       (NS_SUPPORT): New.
+       (lisp): Add NS_SUPPORT.
+       (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
+
+2009-09-25  David Reitter  <david.reitter@gmail.com>
+
+       * nsmenu.m (EmacsMenu-clear): Recognize application menu
+       on Mac OS X 10.6+ (bug#4513).
+
+2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
+
+       * frame.c (xrdb_get_resource): Return nil for empty string resources;
+       some parts of Emacs code (like font selection) don't grok them.  See
+       http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
+
+2009-09-24  Andreas Schwab  <schwab@redhat.com>
+
+       * coding.c (decode_coding_iso_2022): Fix operator precedence.
+
+2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
+
+       * dired.c (Fdirectory_files): Fix typo in docstring.
+
+2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.m (EV_TIMESTAMP, x_set_window_size)
+       (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
+       (EmacsScroller-setPosition:portion:whole:): Remove -display call
+       under GNUstep.
+       (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
+
+       * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
+       glyph advancement.
+
+2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
+       (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
+
+       * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
+       deleted (bug #4492).
+
+       * nsfont.m (Vns_reg_to_script): New lisp variable.
+       (syms_of_nsfont): Declare it.
+       (ns_registry_to_script): New function.
+       (ns_get_req_script): Call it.
+       (ns_findfonts): Don't give up on non-unicode registry.
+
+       * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
+
+2009-09-20  Tom Tromey  <tromey@redhat.com>
+
+       * eval.c (find_handler_clause): Make stack-trace-on-error work in
+       batch mode (bug#4228).
+
+2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
+
+       * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
+       carefully.  (Bug #4339)
+
+2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
+
+2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * emacs.c (inhibit_x_resources): Update doc string for NS.
+       (main) [HAVE_NS]: Don't process --no-init-file option.  Remove
+       legacy code for -NXHost.  Fix error printf in daemon case.
+
+       * nsterm.h (ns_no_defaults): Remove.
+
+       * nsterm.m (ns_no_defaults): Remove.
+       (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
+       (ns_use_qd_smoothing): Remove legacy variable.
+       (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
+       don't update the NSWindow itself.
+       (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
+       state detection and store user rect ourselves.  (Bug #3581)
+
+       * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
+       ns_use_qd_smoothing.
+
+       * nsfns.m (x_get_string_resource): Ape just-previous changes to other
+       platform versions.  Drop support for emacs-20-style face specs.
+       (x-close-connection): Drop PSFlush() under OS X.
+       (x-focus-frame): Activate the app first.  (Bug #4180)
+
+2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
+
+       * emacs.c (inhibit_x_resources): New variable.
+       (main) [HAVE_NS]: Don't process --quick command line option.
+       (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
+
+       * lisp.h (inhibit_x_resources): Declare it extern.
+
+       * w32reg.c (x_get_string_resource):
+       * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
+
+2009-09-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
+       lisp/term/internal.elc.
+
+2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * frame.c (x_get_resource_string): Re-add for non-toolkit builds
+       (bug#4461).
+
+2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * puresize.h (BASE_PURESIZE): Increase to 1290000.
+
+       * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
+       (OBJECTS_MACHINE): Remove, unused.
+
+2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * frame.c (x_get_resource_string): Remove unused.
+
+2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_new_font): Call change_frame_size before calling
+       x_set_window_size, in case frame size won't change.
+
+       * frame.c (x_set_font): Remove dead code.
+
+2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (Fload): Also run do-after-load-evaluation while dumping.
+
+2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (Fload): Don't output a message after loading an obsolete
+       package any more (done in Lisp now).
+
+2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
+
+       * fns.c (syms_of_fns): Doc fix (Bug#4227).
+
+2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (Fwhere_is_internal): Use nconc2.
+
+2009-09-11  Alan Mackenzie  <acm@muc.de>
+
+       * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
+       batch mode.
+
+2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * xdisp.c (display_mode_element): Detect cycles.
+
+2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (where_is_internal): Don't erroneously return nil right after
+       filling the cache.
+       (where_is_internal_1): Fix up typo.
+
+2009-09-11  Glenn Morris  <rgm@gnu.org>
+
+       * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
+       share a common doc-string.
+
+2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (get_keymap): Return the actual keymap symbol rather than
+       t for autoloaded keymaps when autoloading is not allowed (bug#4393).
+
+       * keymap.c (QCadvertised_binding): New constant.
+       (syms_of_keymap): Initialize it.
+       (Fwhere_is_internal): Try and use bindings from :advertised-binding
+       if applicable.
+
+2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
+       (parse_menu_item): Streamline since bindings are recomputed all the
+       time anyway.  Don't bother checking Vdefine_key_rebound_commands any
+       more and don't support lmenu's menu-alias any more either.
+
+       * keymap.c (where_is_internal_data): Make noindirect a boolean.
+       (where_is_internal): Strip it down to only traverse the keymaps.
+       Move the cache handling from Fwhere_is_internal to here.
+       (Fwhere_is_internal): Move the handling of remapping and the choice of
+       the best binding from where_is_internal to here.
+       Unify the cached/noncached paths, so remapping is also handled
+       correctly when the cache is used, and so the cache can be used to
+       speed up remap-handling when applicable.
+       Give preference to non-remapped bindings.
+       * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
+       non-remapped bindings.
+       * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
+       command remapping.
+
+       * xdisp.c (display_mode_element): Move list length limit from 50 to
+       5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
+
+2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsfont.m (ns_get_family): Don't force first letter to uppercase.
+
+2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (where_is_internal): Filter out shadowed remappings.
+       Assume that where_is_internal returns unshadowed bindings to simplify
+       the code and get rid of the gotos.  Use ASIZE.
+
+2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_focus_changed): If we get a focusout and pointer
+       is invisible, make it visible.
+
+       * xterm.h: Remove condition for declaration of
+       x_*_window_to_frame.
+
+2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * dispnew.c (Fsend_string_to_terminal): Make it work again on the
+       initial terminal as well.
+
+2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.h: Rename x_non_menubar_window_to_frame to
+       x_menubar_window_to_frame.
+
+       * xterm.c: Remove declarations also in xterm.h
+       (XTmouse_position): Do not return valid positions
+       for clicks in the menubar and the toolbar for Gtk+.
+
+       * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
+       if the widget for the event has the same top level as a frame,
+       return the frame.
+       (x_menubar_window_to_frame): Detect menu bar even with Gtk+
+       internal windows, bug #4122.
+       (x_non_menubar_window_to_frame): Remove.
+
+2009-09-02  Glenn Morris  <rgm@gnu.org>
+
+       * buffer.c (default-major-mode): Move most of the doc from here...
+       (major-mode): ... to here.
+
+2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
+
+       * process.c (wait_reading_process_output): Keep the descriptor
+       when pty is used by a non-child process, e.g., in I/O buffer of
+       GDB this allows inferior to be restarted.
+
+2009-08-29  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (redisplay_internal): Remove redundant test and collapse
+       both branches into one.
+
+2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
+       (main): Use enable-multibyte-characters rather than
+       default-enable-multibyte-characters.  Output a warning message when
+       running a unibyte session.
+
+2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
+       LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
+       (copy_data_segment): Also copy __program_vars section.
+       (copy_dyld_info) [LC_DYLD_INFO]: New function.
+       (dump_it) [LC_DYLD_INFO]: Use it.
+
+       * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
+
+2009-08-28  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
+       $(SRC)/buildobj.h.
+       (buildobj.h): Renamed from $(SRC)/buildobj.h.
+       (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
+       $(SRC)/buildobj.h.
+       (clean): Add buildobj.h.
+
+2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * print.c (print_object): Set escapeflag to 1 when printing
+       hashtable keys and values.
+
 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * lread.c (read_integer): Use doubles (and potentially return a float
        character.
 
        * cmds.c (Fself_insert_command): Avoid unnecessay
-       unibyte->multibyte conversion.
+       unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
 
 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>