cleanup in s/darwin.h, define DARWIN_OS and use it instead of DARWIN and/or MAC_OSX...
[bpt/emacs.git] / src / ChangeLog
index 3bf0a6a..b6ef867 100644 (file)
@@ -1,3 +1,301 @@
+2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
+
+       * keyboard.h: Comment an #endif.
+
+       * nsterm.m (EmacsView -converstationIdentifier): Use NSInteger
+       version for GNUstep (handled by conditional typedef in nsterm.m).
+       (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
+       in rgb.txt).
+
+       * process.c (init_process): Use DARWIN_OS, not DARWIN.
+
+       * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
+
+       * m/inter386.h: Change DARWIN to DARWIN_OS.
+
+       * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
+       Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
+       closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
+
+2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
+
+       * nsterm.m (windowDidResize): Remove stopModal call.
+
+2008-08-03  Andreas Schwab  <schwab@suse.de>
+
+       * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
+       (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
+
+2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
+
+       * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
+       Don't use uninitialized pointer variable when using getrlimit.
+
+2008-08-02  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
+
+2008-08-02  Eli Zaretskii  <eliz@gnu.org>
+
+       * alloc.c (NSTATICS): Bump to 0x640.
+
+       * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
+
+       * lisp.h: Add prototype for directory_files_internal.
+
+       * process.c (Fsystem_processes_list, Fsystem_process_attributes):
+       New functions.
+       (syms_of_process): Defsubr them.  Add initializations for various
+       Q* symbols used in procfs_system_process_attributes.
+       (procfs_list_system_processes, procfs_system_process_attributes)
+       [HAVE_PROCFS]: New functions.
+       (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
+       (procfs_get_total_memory): New functions.
+
+2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
+
+       * xfaces.c (Fx_load_color_file): Fix previous change;
+       it is #ifdef WINDOWSNT, not WINDOWS_NT.
+
+2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (xd_read_message): Handle D-Bus error messages.
+
+2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
+
+2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
+
+       * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
+
+       * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
+       define NSApplicationDelegateReplySuccess.
+       (EmacsView -converstationIdentifier): Use long instead of
+       NSInteger for GNUStep, since it doesn't have NSInteger.
+
+       * xmenu.c: Revert last change.
+
+       * keyboard.h: Fix last change.
+
+2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
+
+       * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
+       on Windows.
+
+2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       Warning clearing and clean-up in NS port.
+       * keyboard.h (xmalloc_widget_value, digest_single_submenu):
+       Add prototypes.
+       * nsgui.h (FACE_DEFAULT): Remove, unused.
+       (XGCValues): Change colors to unsigned long.
+       * nsterm.h (EmacsApp): Add declaration of all methods implemented in
+       nsterm.m.
+       (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
+       (ns_list_fonts): Remove, unused.
+       (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
+       * nsfns.m (interpret_services_menu): Use NSMenuItem class.
+       * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
+       (nsfont_draw): Compare face colors to 0, not nil.
+       * nsmenu.m (struct widget_value): Drop unneeded declaration.
+       (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
+       (-addSubmenuWithTitle:): Use NSMenuItem class.
+       (ns_popup_menu): Use NO, not NULL, for enabled setting.
+       * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
+       (ns_clip_to_row): Make gc arg a BOOL.
+       (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
+       ns_clip_to_row() call.
+       (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
+       used). Cast FRAME_FONT assignments.
+       (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
+       (ns_string_to_lispmod): Change arg to const char.
+       (ns_term_init): Use NSMenuItem class.
+       (EmacsApp -openFile:): Move to different section of file.
+       (EmacsApp -application:openFiles:): Don't return a value, call
+       -replyToOpenOrPrint:.
+       (EmacsView -keyDown:): Fix up cast.
+       (EmacsView -converstationIdentifier): Use NSInteger instead of long.
+       (EmacsView -menuDown:): Cast tag in call to
+       find_and_call_menu_selection().
+       (ns_list_fonts): Remove, unused.
+       (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
+       (ns_fontname_to_xlfd): Make static.
+       * w32menu.c (xmalloc_widget_value, digest_single_submenu):
+       Remove prototypes (now in keyboard.h).
+       (next_menubar_widget_id): Remove, unused.
+       * xmenu.c (xmalloc_widget_value, digest_single_submenu):
+       Remove prototypes (now in keyboard.h).
+       * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
+
+2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
+       (floatfns.o): Depend on syssignal.h.
+       (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
+
+       * systty.h: Fix previous change that removed BSD_TERMIOS.
+       Add comments to #ifdefs.
+
+2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * w32fns.c (w32-load-color-file): Remove.
+       (x-open-connection): Use renamed Fx_load_color_file.
+       * xfaces.c (x-load-color-file): Add.
+       * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
+       Emacs.clr.
+       (ns_draw_window_cursor): Change PENDING to TODO or FIXME.
+       (hide_hourglass): BLOCK_INPUT before UNBLOCK.
+
+2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (Fdbus_call_method_asynchronously)
+       (Fdbus_method_error_internal): New defuns.
+       (xd_read_message): Handle also reply messages.
+       (Vdbus_registered_functions_table): Extend docstring.
+
+2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
+
+       * keyboard.c (gobble_input): Fix previous change.
+
+2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * bitmaps/README:
+       * xfns.c:
+       * termcap.c:
+       * term.c:
+       * syswait.h:
+       * systty.h:
+       * systime.h:
+       * syssignal.h:
+       * sysdep.c:
+       * process.h:
+       * process.c:
+       * print.c:
+       * ndir.h:
+       * lread.c:
+       * keyboard.c:
+       * getpagesize.h:
+       * floatfns.c:
+       * fileio.c:
+       * emacs.c:
+       * doc.c:
+       * dispnew.c:
+       * dired.c:
+       * data.c:
+       * callproc.c:
+       * buffer.c:
+       * README:
+       * Makefile.in:
+       * s/template.h:
+       * s/msdos.h:
+       * m/vax.h: Remove VMS support.
+       * s/vms.h:
+       * vlimit.h:
+       * uaf.h:
+       * temacs.opt:
+       * param.h:
+       * ioctl.h: Remove file.
+
+2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * s/ms-w32.h (MULTI_KBOARD): Remove.
+       * xterm.c:
+       * xselect.c:
+       * xfns.c:
+       * window.c:
+       * w32term.c:
+       * w32fns.c:
+       * terminal.c:
+       * termhooks.h:
+       * term.c:
+       * sysdep.c:
+       * keyboard.h:
+       * keyboard.c:
+       * frame.h:
+       * frame.c:
+       * frame.c: Remove references to MULTI_KBOARD, it is now the
+       default.
+       * config.in: Regenerate.
+
+2008-07-30  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.h (struct w32font_info): Use unicode version of textmetrics.
+
+       * w32font.c (w32font_encode_char): Leave as unicode if in range.
+       (w32font_open_internal): Get unicode version of textmetrics.
+       Don't enable or disable glyph indices here.
+       (w32font_open): Disable use of glyph indices.
+
+       * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
+
+2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
+
+       * minibuf.c (Vread_buffer_function): Doc fix.
+
+2008-07-30  John Paul Wallington  <jpw@pobox.com>
+
+       * minibuf.c (read_buffer_completion_ignore_case): New var.
+       (Fread_buffer): Use it.
+
+2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * systty.h (sensemode): Remove empty #if.  Remove reference to
+       BSD_TERMIOS, unused.
+
+       * sysdep.c: Remove reference to DGUX.
+       (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
+
+       * config.in: Regenerate.
+
+2008-07-30  Jason Rumney  <jasonr@gnu.org>
+
+       * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
+
+2008-07-29  Jason Rumney  <jasonr@gnu.org>
+
+       * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
+       is populated.
+       (uniscribe_encode_char): Always use uniscribe.
+       Avoid using context if cache is populated.
+
+2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
+       open menu.
+
+       * gtkutil.c (menu_nav_ended): Remove.
+       (create_menus): Remove signal connect for menu_nav_ended.
+
+2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (redisplay_window): Check return value of
+       compute_window_start_on_continuation_line before forcing a window
+       start.
+
+2008-07-28  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
+
+       * w32term.c (w32_enable_unicode_output, cleartype_active):
+       Remove obsolete display options.
+       (x_draw_glyph_string_background): Don't use old cleartype_active
+       workaround.
+       (w32_initialize): Remove cleartype_active initialization.
+       (syms_of_w32term): Remove w32_enable_unicode_output initialization.
+
+2008-07-28  Andreas Schwab  <schwab@suse.de>
+
+       * lisp.h (init_weak_hash_tables, syms_of_font)
+       (xd_read_queued_messages, syms_of_dbusbind): Declare.
+       (remove_hash_entry): Don't declare.
+       * eval.c (maybe_call_debugger): Make static and move before use.
+       * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
+       * xdisp.c: Include "gtkutil.h" if USE_GTK.
+       * xterm.h (x_set_frame_alpha): Declare.
+
 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
 
        * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
 
 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
 
-        * w32inevt.c: Include dispextern.h.
+       * w32inevt.c: Include dispextern.h.
 
 2008-07-26  Andreas Schwab  <schwab@suse.de>
 
 
 2008-07-25  Jason Rumney  <jasonr@gnu.org>
 
-        * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
-        ScriptItemize. Clean up return value checking. Remove unused
-        variables.
-        (uniscribe_encode_char): Encode non-BMP characters with uniscribe
-        shaping engine.
+       * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
+       ScriptItemize.  Clean up return value checking.  Remove unused
+       variables.
+       (uniscribe_encode_char): Encode non-BMP characters with uniscribe
+       shaping engine.
 
-        * w32font.c (w32font_has_char): Handle the case where we can't
-        determine the script for a character.
+       * w32font.c (w32font_has_char): Handle the case where we can't
+       determine the script for a character.
 
 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
 
 
 2008-07-25  Jason Rumney  <jasonr@gnu.org>
 
-        * w32font.c (w32font_encode_char): Encode characters outside BMP as
-        surrogates before looking up glyph index.
-        (w32font_text_extents): Encode as surrogates if falling back to
-        functions that need UTF-16 wide chars.
+       * w32font.c (w32font_encode_char): Encode characters outside BMP as
+       surrogates before looking up glyph index.
+       (w32font_text_extents): Encode as surrogates if falling back to
+       functions that need UTF-16 wide chars.
 
-        * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
-        BMP as surrogates before looking up glyph index.
+       * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
+       BMP as surrogates before looking up glyph index.
 
 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
 
 
 2008-07-25  Jason Rumney  <jasonr@gnu.org>
 
-        * w32font.c (Fx_select_font): Reverse sense of second arg.
+       * w32font.c (Fx_select_font): Reverse sense of second arg.
 
 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * m/ia64.h (SPECIAL_EMACS_INT):
        * m/amdx86-64.h (SPECIAL_EMACS_INT):
        * s/gnu.h (NLIST_STRUCT):
-       * aix4-2.h (X11R5_INHIBIT_I18N):
+       * s/aix4-2.h (X11R5_INHIBIT_I18N):
        * s/gnu-linux.h (LINUX):
        * s/msdos.h (HAVE_FACES):
        * s/ms-w32.h (HAVE_FACES): Don't define, unused.
 
 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
 
-       * src/fileio.c:
-       * src/sysdep.c
-       * src/systty.h:
-       * src/m/ibmrs6000.h:
-       * src/m/iris4d.h:
-       * src/s/aix4-2.h:
-       * src/s/freebsd.h:
-       * src/s/gnu-linux.h:
-       * src/s/hpux10-20.h:
-       * src/s/hpux11.h:
-       * src/s/netbsd.h:
-       * src/s/sol2-3.h:
-       * src/s/sol2-4.h:
-       * src/s/sol2.h:
-       * src/s/usg5-4.h:
-       * src/s/vms.h: Remove references to unused variables.
+       * fileio.c:
+       * sysdep.c
+       * systty.h:
+       * m/ibmrs6000.h:
+       * m/iris4d.h:
+       * s/aix4-2.h:
+       * s/freebsd.h:
+       * s/gnu-linux.h:
+       * s/hpux10-20.h:
+       * s/hpux11.h:
+       * s/netbsd.h:
+       * s/sol2-3.h:
+       * s/sol2-4.h:
+       * s/sol2.h:
+       * s/usg5-4.h:
+       * s/vms.h: Remove references to unused variables.
 
 2008-07-10  Andreas Schwab  <schwab@suse.de>
 
        * s/uxpds.h:
        * s/uxpv.h: Remove support for obsolete systems.
        * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
-       Remove, insert contents in s/hpux-10.20.h
+       Remove, insert contents in s/hpux-10.20.h.
        * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
-       Remove, insert contents in s/aix-4.2.h
+       Remove, insert contents in s/aix4-2.h.
        * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
-       * s/bsd4-3.h: Rename to ..
+       * s/bsd4-3.h: Rename to ...
        * s/bsd-common.h: ... this.
-       * src/data.c:
-       * src/doc.c:
-       * src/ecrt0.c:
-       * src/emacs.c:
-       * src/fileio.c:
-       * src/floatfns.c:
-       * src/keyboard.c:
-       * src/mem-limits.h:
-       * src/print.c:
-       * src/process.c:
-       * src/sysdep.c:
-       * src/syssignal.h:
-       * src/systty.h:
-       * src/syswait.h:
-       * src/term.c:
-       * src/unexec.c:
-       * src/unexelf.c:
-       * src/unexhp9k800.c:
-       * src/m/hp800.h:
-       * src/m/ibmrs6000.h:
-       * src/m/mips.h:
-       * src/m/vax.h:
-       * src/s/darwin.h:
-       * src/s/freebsd.h:
-       * src/s/gnu.h:
-       * src/s/ms-w32.h:
-       * src/s/msdos.h:
-       * src/s/netbsd.h:
-       * src/s/template.h: Remove references to obsolete variables.
+       * data.c:
+       * doc.c:
+       * ecrt0.c:
+       * emacs.c:
+       * fileio.c:
+       * floatfns.c:
+       * keyboard.c:
+       * mem-limits.h:
+       * print.c:
+       * process.c:
+       * sysdep.c:
+       * syssignal.h:
+       * systty.h:
+       * syswait.h:
+       * term.c:
+       * unexec.c:
+       * unexelf.c:
+       * unexhp9k800.c:
+       * m/hp800.h:
+       * m/ibmrs6000.h:
+       * m/mips.h:
+       * m/vax.h:
+       * s/darwin.h:
+       * s/freebsd.h:
+       * s/gnu.h:
+       * s/ms-w32.h:
+       * s/msdos.h:
+       * s/netbsd.h:
+       * s/template.h: Remove references to obsolete variables.
 
        * Makefile.in: Add dependencies for all unexec files.
        (admindir): Remove unused variable.
 
        * w32font.c (w32font_list, w32font_match): Add logging.
 
-       * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
+       * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
 
 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>