Support building Emacs on MS-Windows using the Posix configury.
[bpt/emacs.git] / src / ChangeLog
index 5ac0f88..e5308e2 100644 (file)
@@ -1,3 +1,198 @@
+2013-05-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c: Include epaths.h.
+       (init_environment): Use cmdproxy.exe without leading directories.
+       Support emacs.exe in src; point SHELL to cmdproxy in ../nt in that
+       case.
+       (gettimeofday): Adjust signature and return value to Posix
+       expectations.
+
+       * unexw32.c (open_output_file): Delete the existing emacs.exe
+       before creating it, to break the hard link to the versioned
+       executable.
+
+       * Makefile.in (EMACS_MANIFEST, CM_OBJ, TEMACS_POST_LINK)
+       (ADDSECTION, EMACS_HEAPSIZE, MINGW_TEMACS_POST_LINK)
+       (FIRSTFILE_OBJ): New variables.
+       (W32_RES): Rename to EMACSRES.  All users changed.
+       (base_obj): Use $(CM_OBJ).
+       (ALLOBJS): Use $(FIRSTFILE_OBJ).
+       (emacs$(EXEEXT)): Depend on $(ADDSECTION).
+       (temacs$(EXEEXT)): Use $(TEMACS_POST_LINK), and move
+       $(W32_RES_LINK) before $(LIBES).
+       (emacs.res): Depend on $(EMACS_MANIFEST).  Put emacs.rc in nt.
+
+2013-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * makefile.w32-in (DOC): Use just "DOC".
+
+       * Makefile.in (bootstrap-clean): DOC-* doesn't exist any more.
+
+       * process.c: Export default filters and sentinels to Elisp.
+       (Qinternal_default_process_sentinel, Qinternal_default_process_filter):
+       New constants.
+       (pset_filter, pset_sentinel, make_process, Fset_process_filter)
+       (Fset_process_sentinel, Fformat_network_address):
+       Default to them instead of nil.
+       (server_accept_connection): Sentinels can't be nil any more.
+       (read_and_dispose_of_process_output): New function, extracted from
+       read_process_output.
+       (read_process_output): Use it; filters can't be nil.
+       (Finternal_default_process_filter): New function, extracted from
+       read_process_output.
+       (exec_sentinel_unwind): Remove function.
+       (exec_sentinel): Don't zilch sentinel while running.
+       (status_notify): Sentinels can't be nil.
+       (Finternal_default_process_sentinel): New function extracted from
+       status_notify.
+       (setup_process_coding_systems): Default filter is not nil any more.
+       (syms_of_process): Export new Elisp functions and initialize
+       new constants.
+       * lisp.h (make_lisp_proc): New function.
+
+2013-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * regex.c (regex_compile) [\=, \>, \<]: Don't forget to set laststart.
+
+2013-05-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
+       unless we know that the window w is a leaf window.
+       Another attempt at solving bug#14062.
+
+2013-05-14  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsfont.m (ns_spec_to_descriptor): Retain and autorelease
+       fdesc (Bug#14375).
+
+2013-05-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * image.c (gif_load): Check that subimages fit (Bug#14345).
+
+2013-05-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lread.c (skip_dyn_eof): New function.
+       (read1): Use it to skip the end of a file in response to #@00.
+
+       * doc.c (get_doc_string): Slightly relax the sanity checking.
+
+2013-05-09  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsfns.m: Include IOGraphicsLib.h if Cocoa.
+       (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
+       (MonitorInfo): New struct.
+       (free_monitors, ns_screen_name, ns_make_monitor_attribute_list)
+       (Fns_display_monitor_attributes_list): New functions.
+       (display-usable-bounds): Remove.
+       (syms_of_nsfns): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes and
+       Qsource.
+
+2013-05-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION.
+       (GTK_CHECK_VERSION): New macro, if not already defined.
+       All uses of GTK_PREREQ, GTK_MAJOR_VERSION, etc.
+       replaced by GTK_CHECK_VERSION.
+
+2013-05-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xterm.h (GTK_PREREQ): New macro.
+       All simple uses of GTK_MAJOR_VERSION and GTK_MINOR_VERSION changed
+       to use this macro instead, for consistency and clarity.
+
+2013-05-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (row_for_charpos_p): New function, with code of
+       cursor_row_p, but accepts an additional argument CHARPOS instead
+       of using a hardcoded PT.
+       (cursor_row_p): Call row_for_charpos_p with 2nd argument PT.
+       (row_containing_pos): Call row_for_charpos_p instead of partially
+       doing the same.  Fixes cursor positioning under longlines-mode
+       when longlines-show-effect includes more than one newline, when
+       moving the cursor vertically up.
+
+2013-05-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in (ACL_H): New macro.
+       ($(BLD)/fileio.$(O)): Update dependencies.
+
+2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295)
+       * Makefile.in (LIB_ACL): New macro.
+       (LIBACL_LIBS): Remove.
+       (LIBES): Use LIB_ACL, not LIBACL_LIBS.
+       * fileio.c: Include <acl.h>.
+       Use HAVE_ACL_SET_FILE rather than HAVE_POSIX_ACL.
+       (ACL_NOT_WELL_SUPPORTED): Remove.  All uses replaced by
+       !acl_errno_valid.
+       (Fcopy_file) [!WINDOWSNT]: Use qcopy_acl instead of rolling
+       it ourselves.
+
+       * unexelf.c: Don't assume ElfW (Half) fits in int.
+       (entry_address, find_section, unexec): Use ptrdiff_t, not int,
+       when dealing with ElfW (Half) values, since they can exceed 2**31
+       on 64-bit OpenBSD hosts.  Problem reported privately by Han Boetes.
+       (entry_address): Omit unused NUM arg.  All uses changed.
+
+2013-05-07  Juri Linkov  <juri@jurta.org>
+
+       * callint.c (Fcall_interactively): Set `visargs[i]' for code 'n'
+       to the string converted from number with `Fnumber_to_string'.
+       (Bug#14254)
+
+2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4.
+       This fixes a problem introduced by my previous change.
+
+2013-05-07  Glenn Morris  <rgm@gnu.org>
+
+       * lread.c (readchar): Don't read from a dead buffer.  (Bug#14280)
+
+2013-05-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c: Move misplaced ifndef USE_GTK from previous checkin.
+
+2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Static checking by GCC 4.8.0.
+       * xfns.c (x_get_net_workarea, struct MonitorInfo, free_monitors)
+       (x_get_monitor_for_frame, x_make_monitor_attribute_list)
+       (x_get_monitor_attributes_fallback)
+       (x_get_monitor_attributes_xinerama)
+       (x_get_monitor_attributes_xrandr, x_get_monitor_attributes):
+       Define only if USE_GTK.
+       (free_monitors): Define only if HAVE_XINERAMA || HAVE_XRANDR.
+       (x_get_monitor_attributes_fallback): Omit unused locals.
+       (x_get_monitor_attributes_xinerama, Fx_display_monitor_attributes_list):
+       Use double, not float, to avoid mixed-mode floating point arithmetic.
+
+2013-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+           Jan Djärv  <jan.h.d@swipnet.se>
+
+       * Makefile.in (XRANDR_LIBS, XRANDR_CFLAGS, XINERAMA_LIBS)
+       (XINERAMA_CFLAGS): New macros.
+       (ALL_CFLAGS, LIBES): Use them.
+
+       * xfns.c: Include <X11/extensions/Xrandr.h> if HAVE_XRANDR, and
+       include <X11/extensions/Xinerama.h> if HAVE_XINERAMA.
+       (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): New variables.
+       (syms_of_xfns): DEFSYM them.
+       (struct MonitorInfo): New struct.
+       (x_get_net_workarea, free_monitors, x_get_monitor_for_frame)
+       (x_make_monitor_attribute_list, x_get_monitor_attributes_fallback)
+       (x_get_monitor_attributes_xrandr, x_get_monitor_attributes)
+       (x_get_monitor_attributes_xinerama): New functions.
+       (Fx_display_monitor_attributes_list): New primitive.
+       (syms_of_xfns): Defsubr it.
+
+       * xterm.h (x_display_info): Add Xatom_net_workarea and
+       Xatom_net_current_desktop.
+
+       * xterm.c (x_term_init): Initialize dpyinfo->Xatom_net_workarea
+       and dpyinfo->Xatom_net_current_desktop.
+
 2013-05-06  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (pos_visible_p): Use the special code for finding the