Fix bug #6796.
[bpt/emacs.git] / src / ChangeLog
index a641336..c1295e6 100644 (file)
@@ -1,3 +1,685 @@
+2010-08-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
+       x_set_tool_bar_position handler, needed to support changes from
+       2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar.  (Bug#6796)
+
+2010-08-16  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsselect.m: include keyboard.h for QPRIMARY, remove its
+       declaration (Bug#6863).
+       (syms_of_nsselect): Don't intern QPRIMARY.
+
+       * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
+
+       * keyboard.h (QPRIMARY): Declare (Bug#6864).
+
+2010-08-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * keyboard.c (command_loop_1): Avoid setting selection twice,
+       since it's done in deactivate-mark as well.
+       (Vselect_active_regions): Change default to t.  Replace `lazy'
+       with non-default value `only', meaning only set PRIMARY for
+       temporarily active regions.
+
+       * insdel.c (prepare_to_modify_buffer): Handle `only' value of
+       select-active-regions.
+
+2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
+       isn't a string.
+
+2010-08-15  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
+
+2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * keyboard.c (parse_tool_bar_item): malloc buf.  Set TOOL_BAR_ITEM_LABEL
+       to empty string if not set to new_lbl (Bug#6855).
+
+2010-08-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * xterm.c (x_draw_stretch_glyph_string):
+       * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
+       the cursor on the right edge of the stretch glyph.
+
+       * xdisp.c (window_box_right_offset, window_box_right): Fix
+       commentary.
+
+       * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
+       direction when point is inside a run of whitespace characters.
+
+       * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
+
+2010-08-14  Jason Rumney  <jasonr@gnu.org>
+
+       * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
+
+2010-08-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
+
+2010-08-13  Jason Rumney  <jasonr@gnu.org>
+
+       * w32menu.c (simple_dialog_show): Use unicode message box if available.
+       (MessageBoxW_Proc): New function typedef.
+       (unicode-message-box): New function pointer.
+       (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
+
+2010-08-13  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * frame.h (Qtool_bar_position): Declare.
+
+       * xfns.c (Fx_create_frame): Call x_default_parameter for
+       Qtool_bar_position.
+
+2010-08-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * unexcoff.c: Remove the parts used when "emacs" is not defined.
+       (report_error, report_error_1): Ditto.
+       (write_segment): Remove "#if 0" unused code.
+       (make_hdr): Remove code that was "#ifndef NO_REMAP" before
+       NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
+       (start_of_text): Remove unused function (was used only if NO_REMAP
+       was NOT defined).
+
+       * msdos.c (IT_set_face): Fix format string to match argument
+       types.
+       (IT_write_glyphs, IT_note_mode_line_highlight)
+       (IT_set_frame_parameters): Remove unused variables.
+       (x_set_menu_bar_lines): Declare set_menu_bar_lines.
+       (IT_set_terminal_modes): Disambiguate expression in if clause.
+       (Fmsdos_remember_default_colors): Return Qnil.
+       (IT_set_frame_parameters): Add parens to disambiguate boolean
+       expression for logging the cursor type to termscript.
+       (keyboard_layout_list, keypad_translate_map)
+       (grey_key_translate_map): Add braces in inner initializers.
+       (dos_rawgetc): Add parens in condition for mouse-3 button-press.
+       (dos_rawgetc): Remove unused label.
+       (XMenuActivate): Add braces to remove ambiguous `else'.
+       (dos_ttraw): Always return a value.
+       (spawnve): Declare.
+       (run_msdos_command): Cast 3rd arg of spawnve to "char **".
+
+       * dosfns.h (x_set_title): Declare.
+
+       * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
+       Remove unused variables.
+
+       * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
+       variables.
+       (init_dosfns): Declare get_lim_data.
+       (system_process_attributes): Declare Fget_internal_run_time.
+
+       * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
+       list to be consistent with menu.h.
+
+       * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
+       warnings due to mixing of "char *" and "const char *".
+
+2010-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Introduce a new comment style "c" flag.
+       * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
+       (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
+       (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
+       (syntax_prefix_flag_p): New function.
+       (Fstring_to_syntax): Understand new "c" flag.
+       (Finternal_describe_syntax_value): Recognize new flag; use the
+       SYNTAX_FLAGS_* macros.
+       (scan_sexps_forward, Fparse_partial_sexp): Change representation of
+       comment style to accomodate the new styles.
+       (back_comment, forw_comment, Fforward_comment, scan_lists)
+       (scan_sexps_forward): Update code to obey the new comment style flag.
+
+       * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
+
+       * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
+
+2010-08-11  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
+       first.
+       (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
+
+       * gtkutil.h (xg_check_special_colors): Declare.
+
+       * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
+       (xg_create_frame_widgets): Connect theme name changes to
+       style_changed_cb.
+
+       * xterm.c (emacs_class): New char[] for EMACS_CLASS.
+       (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
+       (x_term_init): Use char[] display_opt and name_opt instead of
+       string literal. file is const char*.
+
+       * xsmfns.c (NOSPLASH_OPT): Change to char[].
+       (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
+       props.  Free them at the end.
+
+       * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
+
+       * xrdb.c (get_system_app): Make path const and use char *p for
+       non-const char.
+
+       * xmenu.c (Fx_popup_dialog): error_name is const char*.
+       (xmenu_show): error parameter is const char **. pane_string is const
+       char *.
+       (button_names): Is const char *.
+       (xdialog_show): error_name and pane_string is const.
+
+       * process.h (synch_process_death): Is const char*.
+
+       * w32menu.c (w32_menu_show):
+       * nsmenu.m (ns_menu_show): error parameter is const char **.
+
+       * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
+       is const char **.
+
+       * menu.c (Fx_popup_menu): error_name is const.
+
+       * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
+       with unsigned char and XtPointer with void *.
+
+       * gtkutil.h: Replace widget_value with struct _widget_value.
+       (enum button_type, struct _widget_value): Remove and use the one from
+       keyboard.h.
+
+       * gtkutil.c (get_utf8_string): Always return an allocated string.
+       Parameter is const.
+       (create_dialog, xg_create_one_menuitem, create_menus)
+       (xg_item_label_same_p, xg_update_menu_item): Free result from
+       get_utf8_string.
+       (xg_separator_p, xg_item_label_same_p): label is const.
+
+       * font.h (font_open_by_name): Make name const.
+
+       * font.c (font_open_by_name): Make name const.
+
+       * floatfns.c (matherr): Use a const char* variable for x->name.
+
+       * emacs.c (main): Pass char[] to putenv instead of literal.
+
+       * callproc.c (synch_process_death): Make const.
+       (Fcall_process): Make signame const.
+
+       * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
+       (addDisplayItemWithImage): Use const char*.
+
+       * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
+       (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
+
+       * nsfont.m (ns_descriptor_to_entity): Use const char*.
+
+       * keyboard.h (_widget_value): name, value and key are const char*.
+
+       * unexmacosx.c (unexec_error): Use const char *.
+
+2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
+       (font_parse_name, font_open_by_name):
+       * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
+       (font_parse_name, font_open_by_name): Remove const.
+
+2010-08-09  Andreas Schwab  <schwab@linux-m68k.org>
+
+       Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
+       definition.
+
+       * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
+       * m/amdx86-64.h: Likewise.
+       * m/arm.h: Likewise.
+       * m/hp800.h: Likewise.
+       * m/ia64.h: Likewise.
+       * m/ibmrs6000.h: Likewise.
+       * m/ibms390.h: Likewise.
+       * m/intel386.h: Likewise.
+       * m/iris4d.h: Likewise.
+       * m/m68k.h: Likewise.
+       * m/macppc.h: Likewise.
+       * m/mips.h: Likewise.
+       * m/sh3.h: Likewise.
+       * m/sparc.h: Likewise.
+       * m/template.h: Likewise.
+       * m/vax.h: Likewise.
+       * m/xtensa.h: Likewise.
+       * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
+       WORDS_BIG_ENDIAN.
+       * lisp.h: Likewise.
+       * md5.c: Likewise.
+       * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
+
+2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Use const char* instead of char*.
+       Reduce the number of warnings with -Wwrite-strings.
+       * xrdb.c (get_environ_db, get_system_name):
+       * unexelf.c (find_section):
+       * term.c (string_cost, string_cost_one_line, per_line_cost)
+       (get_named_tty, init_tty):
+       * sysdep.c (sys_subshell):
+       * sound.c (sound_perror, sound_warning, vox_open, vox_init)
+       (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
+       * search.c (Freplace_match):
+       * process.c (Fmake_network_process, send_process, init_process):
+       * lread.c (Fload, init_lread):
+       * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
+       * keyboard.c (parse_tool_bar_item, struct event_head):
+       * gtkutil.h (xg_get_font_name):
+       * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
+       (make_widget_for_menu_item, make_menu_item, create_menus)
+       (xg_make_tool_item):
+       * font.c (parse_matrix, font_parse_name):
+       * floatfns.c (rounding_driver, float_error_fn_name):
+       * filelock.c (get_boot_time_1, lock_file_1):
+       * fileio.c (barf_or_query_if_file_exists, check_writable):
+       * editfns.c (get_system_name, get_operating_system_release)
+       (Fencode_time, Fset_time_zone_rule):
+       * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
+       * buffer.c (defvar_per_buffer): Use const.
+
+2010-08-08  Kenichi Handa  <handa@m17n.org>
+
+       * charset.c: Include <stdlib.h>
+       (struct charset_sort_data): New struct.
+       (charset_compare): New function.
+       (Fsort_charsets): New funciton.
+       (syms_of_charset): Declare Fsort_charsets as a Lisp function.
+
+       * coding.c (decode_coding_iso_2022): Fix checking of dimension
+       number in CTEXT extended segment.
+
+2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
+       * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
+
+2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
+       (Fhash_table_size): Fix typos in docstrings.
+       (Fmake_hash_table): Doc fix.
+
+2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * minibuf.c (syms_of_minibuf) <read-buffer-function>:
+       Doc fix (bug#5625).
+
+2010-08-08  Ken Brown  <kbrown@cornell.edu>
+
+       * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
+       the MSDOS definition.
+
+2010-08-08  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Use const char* instead of char*.
+       * xterm.c (x_create_toolkit_scroll_bar):
+       * xfont.c (xfont_list_pattern):
+       * xfns.c (x_default_scroll_bar_color_parameter)
+       (xic_create_fontsetname, x_default_font_parameter)
+       (x_screen_planes):
+       * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
+       (store_mode_line_string, decode_mode_spec, display_string):
+       * menu.c (digest_single_submenu):
+       * keymap.h (initial_define_key, initial_define_lispy_key):
+       * keymap.c (initial_define_key, initial_define_lispy_key):
+       * image.c (image_error, image_keyword):
+       * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
+       * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
+       * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
+       (ftfont_list, ftfont_match):
+       * frame.c (frame_parm_table):
+       * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
+       (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
+       (font_add_log, font_deferred_log):
+       * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
+       (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
+       (font_add_log, font_deferred_log):
+       * emacs.c (argmatch):
+       * dispextern.h (struct it):
+       * coding.c (ENCODE_DESIGNATION):
+       * charset.c (define_charset_internal): Use const.
+
+       * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
+
+       * xrdb.c: Remove include guard.
+       Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
+       Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
+       realloc->xrealloc instead of using #defines.
+
+2010-08-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
+       * editfns.c (Fline_beginning_position, Fline_end_position):
+       State in the doc strings that start and end of line are in the
+       logical order.
+
+       * xdisp.c (display_line): Move the handling of overlay arrow after
+       the call to find_row_edges.  (Bug#6699)
+
+2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * keyboard.c (command_loop_1):
+       * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
+
+2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * insdel.c (prepare_to_modify_buffer): Save active region text to
+       Vsaved_region_selection.
+
+       * xselect.c (QPRIMARY): Move to keyboard.c.
+
+       * keyboard.c (Vselect_active_regions): Move from simple.el.
+       (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
+       (command_loop_1): Set window selection prior to deactivating the mark.
+
+2010-08-07  Juanma Barranquero  <lekktu@gmail.com>
+
+       * alloc.c (lisp_malloc):
+       * buffer.c (set_buffer_internal, set_buffer_internal_1):
+       * charset.h (emacs_mule_charset):
+       * dispextern.h (inhibit_free_realized_faces, redraw_frame)
+       (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
+       (bitch_at_user):
+       * lisp.h (Fcheck_coding_system, Fget_text_property)
+       (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
+       Remove duplicate declarations.
+
+2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * process.c: Simplify include logic.
+
+       * keyboard.h (quit_char): Add declaration.
+       * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
+       (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
+       Add declarations.
+       * sysdep.c:
+       * w32.c: Remove the above declarations.
+
+       Remove extern declarations in .c files, .h files have them.
+       * xterm.c:
+       * xdisp.c:
+       * msdos.c:
+       * image.c:
+       * gtkutil.c:
+       * fileio.c:
+       * eval.c: Remove declarations.
+
+       * frame.c (frame_params): Make const.
+
+       * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
+
+       * emacs.c (emacs_copyright, emacs_version): Make static.
+       (Vinitial_window_system, Vauto_save_list_file_name)
+       (Vinhibit_redisplay): Remove declarations.
+       (main): Remove HAVE_SHM code, unused.  Remove _I386 conditional
+       for AIX.
+
+       Use const for some arrays and functions.
+       * xterm.h (xg_set_icon_from_xpm_data):
+       * xfns.c (xg_set_icon_from_xpm_data):
+       * term.c (fkeys):
+       * keyboard.c (lispy_accent_keys, lispy_function_keys)
+       (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
+       (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
+       (frame.c frame_parms):
+       * emacs-icon.h (gnu_xpm_bits):
+       * callint.c (callint_argfuns): Use const.
+
+2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * sysdep.c: Move include term.h last of includes (Bug#6812).
+
+2010-08-06  Eli Zaretskii  <eliz@gnu.org>
+
+       * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
+
+       * msdos.c (IT_display_cursor): Log cursor position on termscript.
+
+       * .gdbinit (pgx): Display the avoid_cursor_p flag.
+
+2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
+
+2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.h (x_get_focus_frame): Declare.
+
+       * keyboard.h (poll_for_input_1): Unconditionally declare.
+
+       * nsterm.h (x_set_menu_bar_lines): Declare.
+
+       * window.c: Don't include menu.h, it depends on lots of other .h-files.
+
+       * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
+
+       * window.c: Include menu.h.
+
+       * unexmacosx.c (print_region_list, print_regions)
+       (build_region_list, find_emacs_zone_regions)
+       (unexec_regions_merge, read_load_commands, dump_it)
+       (unexec_init_emacs_zone): Convert to ANSI C prototypes.
+
+       * term.c: Check HAVE_SYS_IOCTL_H.
+
+       * sysdep.c: Check HAVE_TERM_H.
+
+       * process.c: Check HAVE_UTIL_H.  Include nsterm.h if HAVE_NS.
+
+       * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
+       (ns_ring_bell, ns_defined_color, hide_hourglass)
+       (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
+       Convert to ANSI C prototypes.
+       (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
+       before code.
+
+       * nsterm.h : Include sysselect.h.
+       (x_sync, x_get_focus_frame, x_set_mouse_position)
+       (x_set_mouse_pixel_position, x_make_frame_visible)
+       (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
+       (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
+       (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
+       (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
+       Declare.
+
+       * nsmenu.m (popup_activated, name_is_separator)
+       (syms_of_nsmenu): Convert to ANSI C prototypes.
+       (runMenuAt): Prototypes and move declarations before code.
+
+       * nsimage.m (ns_load_image): Move NSTRACE after declarations.
+
+       * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
+       prototypes.
+
+       * nsfns.m (have_menus_p, ns_display_info_for_name)
+       (x_set_cursor_type, ns_appkit_version_str)
+       (ns_appkit_version_int, ns_do_applescript)
+       (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
+       (syms_of_nsfns): Convert to ANSI C prototypes.
+
+       * menu.h (x_set_menu_bar_line): Declare.
+       (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
+
+       * lisp.h (fmod_float): Declare.
+
+       * image.c (xpm_scan, xpm_make_color_table_v)
+       (xpm_put_color_table_v, xpm_get_color_table_v)
+       (xpm_make_color_table_h, xpm_put_color_table_h)
+       (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
+       (xpm_load): Convert to ANSI C prototypes.
+
+       * emacs.c: Include nsterm.h if HAVE_NS.
+
+       * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
+
+2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
+       subprocesses, only MSDOS does not define HAVE_SOCKETS.
+       (socket_options): Use const char* for name.
+
+2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
+
+       Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
+
+       * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
+       Don't declare xmalloc_widget_value and digest_single_submenu.
+
+       * w32font.c (Qlatin): Remove declaration.
+
+       * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
+
+       * dired.c (compile_pattern): Restore declaration.
+
+2010-08-05  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove extern declarations in .c files, .h files have them.
+       * data.c:
+       * dired.c:
+       * editfns.c:
+       * filelock.c:
+       * fns.c:
+       * font.c:
+       * fontset.c:
+       * frame.c:
+       * fringe.c:
+       * ftfont.c:
+       * gtkutil.c:
+       * indent.c:
+       * keyboard.c:
+       * keymap.c:
+       * lread.c:
+       * menu.c:
+       * print.c:
+       * search.c:
+       * sound.c:
+       * window.c:
+       * xdisp.c:
+       * xfaces.c:
+       * xfns.c:
+       * xfont.c:
+       * xftfont.c:
+       * xmenu.c:
+       * xterm.c: Remove declarations.
+
+       Cleanup syssignal.h.
+       * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
+       (main_thread): Move down to remove #ifdef.
+       (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
+       Remove conditional definition following unconditional ones.
+
+       * lisp.h: Remove HAVE_SHM code, unused.
+       (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
+       (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
+       (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
+       (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
+       (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
+       (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
+       (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
+       (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
+       (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
+       (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
+       (Qwindow_scroll_functions, Vafter_load_alist)
+       (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
+       (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
+       (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
+       (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
+       (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
+       (Vwindow_system_version, Vx_no_window_manager, initial_argc)
+       (initial_argv, last_nonmenu_event, load_in_progress)
+       (noninteractive_need_newline, scroll_margin): Add declarations.
+
+       * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
+       declarations, menu.h has them.
+       (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
+       (Vinput_method_function, Qinput_method_function)
+       (Qevent_symbol_element_mask, last_event_timestamp):
+       * dispextern.h (Voverflow_newline_into_fringe):
+       * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
+       (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
+       (syms_of_w32font, syms_of_nsfont):
+       * fontset.h (find_font_encoding, Qlatin):
+       * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
+       (Vtool_bar_mode, set_frame_menubar):
+       * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
+       * xterm.h (Qx_gtk_map_stock):
+       * keymap.h (meta_prefix_char): Add declarations.
+
+       * term.c: Remove dead code.
+
+       Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
+       * term.c (dissociate_if_controlling_tty): Use USG5 instead of
+       USG.  This is equivalent to defined (USG) && !defined (BSD_PGRPS),
+       which is what was there before BSD_PGRPS was removed.
+
+2010-08-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
+
+       * unexcoff.c: Renamed from unexec.c.
+
+2010-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
+
+2010-08-03  Johan Bockgård  <bojohan@gnu.org>
+
+       * data.c (Flocal_variable_p): Handle variable aliases correctly.
+       (Bug#6744)
+
+2010-08-02  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
+       to TRUE if depth of screen is < 16.
+
+       * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
+       USE_GTK_TOOLTIP.
+       (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
+       (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
+       (xg_create_frame_widgets): Surround tooltip-related code with ifdef
+       USE_GTK_TOOLTIP.
+       (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
+
+       * xterm.h (USE_GTK_TOOLTIP): New define.
+       (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
+
+       * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
+       to Control-D (Bug#6771).
+
+2010-08-02  Juanma Barranquero  <lekktu@gmail.com>
+
+       * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
+       Wording by Drew Adams <drew.adams@oracle.com>.
+
+2010-08-01  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.h (struct x_output): Add ttip_widget, ttip_window and
+       ttip_lbl.
+
+       * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
+       calling gtk_widget_queue_draw.
+       (x_free_frame_resources): Call xg_free_frame_widgets.
+
+       * xfns.c (x_gtk_use_system_tooltips): New variable.
+       (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
+       new gtkutil tooltip functions to show the tooltip.
+       (Fx_hide_tip): Call xg_hide_tooltip.
+       (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
+
+       * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
+       (xg_show_tooltip, xg_hide_tooltip): Declare.
+
+       * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
+       (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
+       New functions.
+       (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
+       text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
+       Remove code that is commented out.
+
 2010-08-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
        * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
 
        * xterm.h (struct x_output): Add toolbar_top_height,
-       toolbar_bottom_height, toolbar_left_width, toolbar_right_width.  Remove
-       toolbar_height.
-       if USE_GTK: Add hbox_widget and toolbar_in_hbox.
+       toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
+       Remove toolbar_height.
+       If USE_GTK: Add hbox_widget and toolbar_in_hbox.
        (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
        (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
        (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
        * xfns.c (x_set_tool_bar_position): New function.
        (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
        (x_frame_parm_handlers): Add x_set_tool_bar_position.
-       (syms_of_xfns): if USE_GTK, provide move-toolbar.
+       (syms_of_xfns): If USE_GTK, provide move-toolbar.
 
        * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
        and FRAME_TOOLBAR_LEFT_WIDTH.
        size correctly.  Remove hardcoded 4, instead use handlebox size -
        toolbar size.
        (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
-       size correctly.  Use handlebox size + toolbar size as additional
-       size.
+       size correctly.  Use handlebox size + toolbar size as additional size.
        (xg_pack_tool_bar): POS is a new parameter.
        Set orientation of tool bar based on pos.
        Only make handlebox_widget if NULL.
        Check if tool bar goes to vbox or hbox depending on pos.
        (xg_update_tool_bar_sizes): New function.
-       (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
+       (update_frame_tool_bar): Remove old_req, new_req.  Do not get tool bar
        height, call xg_update_tool_bar_sizes instead.
        (free_frame_tool_bar): Remove from hbox or vbox depending on
        toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
 
        * xfaces.c (Qmouse_face): Remove declaration.
        (face_color_gray_p, tty_defined_color, defined_color)
-       (face_color_gray_p, face_color_supported_p). Add const.
+       (face_color_gray_p, face_color_supported_p): Add const.
 
        * xdisp.c (do_mouse_tracking): Remove declaration.
        (add_to_log): Use const.
        (syms_of_xsettings): Initialize current_font.
        defsubr Sfont_get_system_normal_font.
 
-       * xsettings.h (Ffont_get_system_normal_font,
-       xsettings_get_system_normal_font): Declare.
+       * xsettings.h (Ffont_get_system_normal_font)
+       (xsettings_get_system_normal_font): Declare.
 
        * xfns.c (extern xlwmenu_default_font): Remove.
        (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
        (store_symval_forwarding): Take into account the fact that Ints can
        now have more than one tag.
        * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
-       buffer_slot_type_mismatch):
+       (buffer_slot_type_mismatch):
        * xfaces.c (face_attr_equal_p):
        * print.c (print_object):
        * alloc.c (mark_maybe_object, mark_object, survives_gc_p):