+2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keymap.c: Remove all NS-specific code.
+ (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
+ (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
+ where_is_preferred_modifier, return a different value depending on how
+ preferred is the binding.
+ (where_is_internal): Adjust accordingly.
+ (Fwhere_is_internal): Refresh where_is_preferred_modifier.
+ Adjust to new preferred_sequence_p.
+ (syms_of_keymap): Declare `where-is-preferred-modifier'.
+ * keyboard.c (parse_solitary_modifier): Not static any more.
+ * keyboard.h (parse_solitary_modifier): Declare.
+
+2008-07-16 Andreas Schwab <schwab@suse.de>
+
+ * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
+ of easymenu.
+
+2008-07-16 Chong Yidong <cyd@stupidchicken.com>
+
+ * xdisp.c (move_it_in_display_line): Account for word wrap, so
+ that we don't move off the line.
+
+2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keyboard.c (Qsuper): Remove.
+ (parse_menu_item): Don't call where_is_internal specially for NS.
+
+2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * s/gnu-linux.h: Remove boilerplate comments.
+
+ * m/alpha.h (__ELF__): Consolidate conditions.
+
+ * m/m68k.h (linux): Use GNU_LINUX instead.
+ Remove boilerplate comments.
+
+ * m/intel386.h: Undo reactoring from previous change.
+ (LIB_STANDARD): All systems that define USG define LIB_STANDARD
+ too, remove dead code.
+ (linux): Use GNU_LINUX instead.
+
+2008-07-16 Jason Rumney <jasonr@gnu.org>
+
+ * w32gui.h: Repeat 26 June changes lost by last change.
+
+2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * systty.h: Remove code for Aix on 386, unsupported platform.
+
+ * s/ms-w32.h: Remove boilerplate comments.
+ (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
+
+ * s/gnu-linux.h (TERM): Remove support.
+ (HAVE_SYSVIPC): Remove, unused.
+ (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
+ for this system.
+
+ * process.c: Remove support for IRIS, unused.
+ Remove support for TERM, not relevant anymore.
+
+ * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
+ used with the definition.
+
+ * s/aix4-2.h (static): Do not undef.
+
+ * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
+ only used on Aix.
+ (HAVE_SYSVIPC): Remove, unused.
+
+ * m/hp800.h (CANNOT_DUMP): Do not undef.
+
+ * m/alpha.h: Fix comment.
+
+ * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
+ (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
+ used by this configuration.
+ * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
+ * unexec.c: Remove code depending on HPUX and
+ USG_SHARED_LIBRARIES, not used with this file. Remove code
+ depending on IRIS, unused. Remove if 0-ed code.
+
+ * s/template.h: Remove comments about static.
+
+ * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
+ Remove if 0-ed code.
+ (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
+ were the same as the default.
+ * s/vms.h (BAUD_CONVERT): Remove, same as the default.
+ Remove boilerplate comments.
+ * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
+ (HAVE_SYSVIPC): Remove, unused.
+ (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
+
+ * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
+ Remove boilerplate comments.
+ * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
+ Remove boilerplate comments.
+ * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
+ Remove boilerplate comments.
+ * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
+
+ * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
+ USG systems which do not use DATA_SEG_BITS.
+ Refactor code. Remove boilerplate comments.
+
+ * m/ibms390.h:
+ * m/m68k.h:
+ * s/bsd-common.h:
+ * s/cygwin.h:
+ * s/darwin.h:
+ * s/freebsd.h:
+ * s/gnu.h:
+ * s/msdos.h: Remove boilerplate comments.
+
+ * m/iris4d.h: Remove boilerplate comments and code for systems that
+ do not use this file.
+ (IRIS_4D): Remove, unused.
+
+ * m/mips.h: Remove boilerplate comments and code for systems that
+ do not use this file.
+ (SIGN_EXTEND_CHAR):
+ * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
+ * unexmips.c: Remove file, unused.
+
+ * editfns.c (Fuser_full_name): Replace the only use of
+ USER_FULL_NAME with its value.
+ * config.in: Regenerate.
+
+2008-07-16 David Reitter <david.reitter@gmail.com>
+
+ * Makefile.in: add ns-win, ns-carbon-compat, easy-mmode and
+ easy-menu to SOME_MACHINE_LISP for the new NeXTstep port
+
+2008-07-16 Glenn Morris <rgm@gnu.org>
+
+ * emacs.c (system-type): Doc fix.
+
+2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
+ If the cache doesn't work, let's fix it, rather than work around it.
+
+2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * Makefile.in: Correct additions for nsfont.o in last commit.
+ * nsfont.m: New file (forgot last commit).
+
+2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ Changes and additions for NeXTstep windowing system (Cocoa and
+ GNUstep) support.
+
+ * Makefile.in
+ * config.in: Support defines and build commands for NS port.
+ * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
+ (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
+ * callproc.c (set_initial_environment): Initialize
+ Vprocess_environment under CANNOT_DUMP (fixes crash when
+ batch-compiling for bootstrap, due to Chris Hall).
+ * dispextern.h: Include nsgui.h and add needed typedefs under NS
+ windowing.
+ (struct face): Add synth_ital field.
+ * dispnew.c: Include nsterm.h when compiling under NS windowing.
+ (init_display): Initialize Vinitial_window_system to "ns" when so
+ compiled.
+ * emacs.c: Include GSConfig.h when compiling under GNUstep.
+ (display_arg): Use under NS.
+ (main): Under NS, allocate autorelease pool and handle command line
+ args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
+ (standard_args): Add NS-specific args.
+ (shut_down_emacs): Shut down NS terminal if compiled under NS.
+ * font.c (DEFAULT_ENCODING): New variable.
+ (font_find_for_lface): Use it.
+ (syms_of_font): Load syms_of_nsfont under NS.
+ * font.h: Declare nsfont_driver when compiled under NS.
+ * fontset.c: When compiling under NS, include nsterm.h.
+ (fontset_from_font): Autoconstruct fontset under NS.
+ * frame.c (various): Under NS, include nsterm.h, add Qns window system
+ symbol, document and use it.
+ (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
+ patch to fix crash due to different init order, due to Chris Hall and
+ Yamamoto Mitsuharu.
+ (do_switch_frame): When for_deletion under Cocoa, add
+ Fraise_frame(Qnil).
+ (x_set_frame_parameters): Ensure font attribute changes are picked up.
+ (x_get_arg): Allow "yes" and "no" as boolean values.
+ (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
+ Qright under Cocoa.
+ (focus-follows-mouse): Default to 0 under NS.
+ * frame.h (enum output_method): Add output_ns.
+ (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
+ (FRAME_EXTERNAL_MENU_BAR): Use under NS.
+ (FRAME_WINDOW_P): NS-specific definition.
+ * fringe.c (max_used_fringe_bitmap): Make public.
+ * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
+ (getloadavg): Use NeXT code under descendant OS's.
+ * image.c (includes and header section, x_create_bitmap_from_data)
+ (x_create_bitmap_from_file, free_bitmap_record, image_background)
+ (image_background_transparent, x_clear_image_1)
+ (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
+ (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
+ (x_to_xcolors, x_from_xcolors, x_disable_image)
+ (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
+ other GUIs, including XPM support using code originally written for
+ Carbon GUI.
+ (png_load, jpeg_load, tiff_load, gif_load): Add implementations
+ using NS API.
+ (image_ascent): Use font metrics macros instead of direct struct field
+ access.
+ * keyboard.c (includes): Add nsterm.h when compiling under NS.
+ (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
+ Also, handle NS as GTK for menu bar purposes.
+ (make_lispy_event): Handle NS as other GUI windowing systems, and as X
+ toolkit where they differ.
+ (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
+ use cachelist, still needed under NS.
+ * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
+ (struct widget_value): Define it here for menu.c.
+ * keymap.c (includes): Include modifier internals.
+ (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
+ NS.
+ (where_is_internal, Fwhere_is_internal): When compiled under NS, add
+ support for preferring sequences using certain modifiers, specified by
+ the FIRSTONLY argument.
+ * lisp.h (hash_remove): Rename to avoid name clash when compiling
+ under NS GNUstep implementation.
+ (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
+ * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
+ * menu.c: Include nsterm.h under NS.
+ (single_menu_item, parse_single_submenu, xmalloc_widget_value)
+ (free_menubar_widget_tree_value, update_submenu_strings)
+ (find_and_call_menu_selection): Treat NS as X and NT.
+ (find_and_return_menu_selection): New function, used for popup menus.
+ * nsgui.h
+ * nsterm.h
+ * nsfns.m
+ * nsimage.m
+ * nsmenu.m
+ * nsselect.m
+ * nsterm.m: New files.
+ * process.c (wait_reading_process_output): Under NS, call ns_select()
+ instead of plain select().
+ * syntax.c (char_quoted): Under NS, avoid a crash when called near
+ beginning of buffer.
+ * sysselect.h (init_process): Rename when compiling under Cocoa to
+ avoid name conflict.
+ * termhooks.h (display_info): Add ns_display_info to union.
+ * terminal.c (Fterminal_live_p): Add ns to terminal types.
+ * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
+ COCOA environment.
+ * unexnext.c: Update to work with mach API on Mac OS X, and to use new
+ unexec() signature. (Note, this will dump, but the resulting file
+ crashes; unexosx is used instead; keeping around for reference and
+ possible aid in getting dump working under GNUstep.)
+ * w32gui.h (button_type, widget_value): Remove definitions (now in
+ keyboard.h).
+ * window.c: Include nsterm.h when compiling under NS.
+ * xdisp.c (includes): Include nsterm.h when compiling under NS.
+ (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
+ other GUI windowing systems.
+ (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
+ GTK.
+ (x_consider_frame_title): Under NS, set icon type and frame
+ modified-state indicator; use ns_set_name_as_filename() when using
+ formatted title.
+ (update_window_cursor): Make public when compiling under NS.
+ (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
+ (hourglass_atimer, Vhourglass_delay
+ * xfaces.c (header section, init_frame_faces, clear_font_table)
+ (defined_color, unload_color, x_face_list_fonts)
+ (prepare_face_for_display): Add NS support parallel to other GUIs.
+ Emulate GCs like other non-X GUIs.
+ (split_font_name): Don't lowercase font name under NS.
+ (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
+ under NS.
+ * s/darwin.h: Add support for compilation under NS.
+
+2008-07-15 Jason Rumney <jasonr@gnu.org>
+
+ * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
+ (w32_show_hourglass): Rename from show_hourglass.
+ (w32_hide_hourglass): Rename from hide_hourglass.
+ (DEFAULT_HOURGLASS_DELAY): Revert from last change.
+ (Vhourglass_delay): Declare extern.
+ (hourglass_started): Remove.
+
+ * xdisp.c (Vhourglass_delay): Remove static.
+ (hourglass_started, start_hourglass, cancel_hourglass):
+ Don't include these versions on WINDOWSNT.
+
+2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
+ variables (formerly in xfns.c).
+ (show_hourglass, hide_hourglass): New prototypes (same).
+ * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
+ (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
+ in xfns.c).
+ (syms_of_xdisp): Declare/initialize display-hourglass,
+ hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
+ (hourglass_started, start_hourglass, cancel_hourglass): New functions,
+ formerly in xfns.c.
+ * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
+ (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
+ (start_hourglass, cancel_hourglass): Remove.
+ (show_hourglass, hide_hourglass): Remove prototypes and static
+ modifiers.
+ (syms_of_xfns): Remove display-hourglass, hourglass-delay,
+ hourglass_atimer, hourglass_shown_p declaration/initialization.
+ * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
+ (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
+ (start_hourglass, cancel_hourglass): Remove.
+ (show_hourglass, hide_hourglass): Remove prototypes and static
+ modifiers.
+ (syms_of_macfns): Remove display-hourglass, hourglass-delay,
+ hourglass_atimer, hourglass_shown_p declaration/initialization.
+ * w32fns.c (display_hourglass_p, Vhourglass_delay)
+ (DEFAULT_HOURGLASS_DELAY): Remove.
+ (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
+ hourglass_shown_p declaration/initialization.
+
2008-07-14 Jason Rumney <jasonr@gnu.org>
- * w32fns.c (w32_get_arg): Remove wrapper function.
- (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
- directly.
- (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
+ * w32fns.c (w32_get_arg): Remove wrapper function.
+ (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
+ directly.
+ (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
2008-07-14 Kenichi Handa <handa@m17n.org>