1. 06 Jan, 2016 1 commit
    • Glenn Morris's avatar
      Build tweaks related to tags files. · c6d3c60f
      Glenn Morris authored
      * lib-src/Makefile.in (tagsfiles): New variable.
      (TAGS): Also depend on the source files.  Use our own etags program.
      * lisp/Makefile.in (ETAGS): Add EXEEXT.
      (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
      Remove.
      (tagsfiles): New, replacing lisptagsfiles1 etc.
      Remove irrelevant source files here rather than in the TAGS rule.
      (${ETAGS}): New rule.
      (TAGS): Also depend on the etags executable.
      * lwlib/Makefile.in (EXEEXT): New, set by configure.
      (ETAGS): Add EXEEXT.
      (${ETAGS}): New rule.
      (ctagsfiles): Use "wildcard".
      (TAGS): Also depend on the etags executable.
      * nt/Makefile.in (ETAGS, tagsfiles): New variables.
      (${ETAGS}): New rule.
      (TAGS): Fix dependencies.
      * oldXMenu/Makefile.in (EXEEXT): New, set by configure.
      (ETAGS): New variable, replacing $TAGS.  Use our own etags program.
      Remove "-t" argument.
      (${ETAGS}): New rule.
      (tagsfiles): New variable.
      (TAGS): New rule, with proper dependencies.
      * src/Makefile.in (ETAGS): Add EXEEXT.  Add a build rule.
      (ctagsfiles1, ctagsfiles2): Use "wildcard".
      (ctagsfiles3): Remove.
      (TAGS): Depend on etags.
      (../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
      directories decide if updates are needed.
      c6d3c60f
  2. 24 Oct, 2015 6 commits
    • Juanma Barranquero's avatar
      addpm.c: Silence some warnings. · b6c6629e
      Juanma Barranquero authored
      * nt/addpm.c (DdeCommand): Cast pData argument of DdeClientTransaction
      to LPBYTE.
      (add_registry): Pass NULL to optional lpClass argument of
      RegCreateKeyEx, not an empty string.
      b6c6629e
    • Juanma Barranquero's avatar
      addpm.c: Do not add obsolete GTK libraries to the path. · 87a30649
      Juanma Barranquero authored
      * nt/addpm.c (REG_GTK, REG_RUNEMACS_PATH): Delete.
      (add_registry): Remove variables `size' and `gtk_key'.
      Do not add the GTK DLL directory to the library search path; it is
      confusing behavior (in particular, the same Emacs version with and
      without invoking addpm will use a different path), and the GTK image
      libraries are obsolete anyway.
      87a30649
    • Juanma Barranquero's avatar
      addpm.c: Replace existing entries, but do not create new ones · cbbea701
      Juanma Barranquero authored
      * nt/addpm.c (add_registry): If the Emacs registry key exists, replace
      existing values from previous versions, but do not add new ones; the
      key could exist for other reasons unrelated to old Emacsen, like X-style
      resources, or to set some environment variables like HOME or LANG, and
      in that case we don't want to populate it with obsolete values.
      cbbea701
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      addpm.c: Don't pass REG_OPTION_NON_VOLATILE to RegOpenKeyEx · 8a48f16d
      Juanma Barranquero authored
      * nt/addpm.c (add_registry): Pass 0 to ulOptions argument of
      RegOpenKeyEx, not REG_OPTION_NON_VOLATILE.  This doesn't change
      current behavior because REG_OPTION_NON_VOLATILE is defined to
      be 0L anyway, but that option is actually documented only for
      RegCreateKeyEx.
      8a48f16d
    • NicolasPetton's avatar
      Update the new icon · ab10d882
      NicolasPetton authored
      Move the E slightly to the right in the circle.
      
      * etc/images/icons/hicolor/128x128/apps/emacs.png:
      * etc/images/icons/hicolor/16x16/apps/emacs.png:
      * etc/images/icons/hicolor/24x24/apps/emacs.png:
      * etc/images/icons/hicolor/32x32/apps/emacs.png:
      * etc/images/icons/hicolor/48x48/apps/emacs.png:
      * etc/images/icons/hicolor/scalable/apps/emacs.svg:
      * nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns:
      * nt/icons/emacs.ico: New icom update.
      ab10d882
  3. 23 Oct, 2015 1 commit
  4. 12 Oct, 2015 1 commit
  5. 04 Oct, 2015 1 commit
  6. 02 Oct, 2015 2 commits
  7. 01 Oct, 2015 1 commit
  8. 29 Sep, 2015 2 commits
  9. 27 Sep, 2015 1 commit
  10. 25 Sep, 2015 2 commits
  11. 15 Aug, 2015 2 commits
  12. 08 Aug, 2015 1 commit
    • Eli Zaretskii's avatar
      Support recovery from C stack overflow on MS-Windows · 7afa4f30
      Eli Zaretskii authored
      * src/w32fns.c (w32_reset_stack_overflow_guard)
      (stack_overflow_handler): New functions for handling C stack
      overflow exceptions.
      (my_exception_handler): Handle EXCEPTION_STACK_OVERFLOW exceptions
      specially, and zero out except_addr if we do.
      (globals_of_w32fns): Initialize dwMainThreadId in non-interactive
      mode.
      * src/sysdep.c [HAVE_STACK_OVERFLOW_HANDLING]: Add !WINDOWSNT to
      the condition, as HAVE_STACK_OVERFLOW_HANDLING is now defined for
      the MinGW build, but the code guarded by that is for Posix hosts.
      * src/keyboard.c (command_loop) [WINDOWSNT]: Call
      w32_reset_stack_overflow_guard.
      
      * nt/inc/ms-w32.h (sigjmp_buf): New typedef.
      (sigsetjmp): New macro.
      (w32_reset_stack_overflow_guard): Declare the prototype.
      
      * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Set to 1 for MinGW.
      7afa4f30
  13. 27 Jul, 2015 1 commit
    • Eli Zaretskii's avatar
      MS-Windows follow-up for recent TZ-related changes · 70096743
      Eli Zaretskii authored
      * nt/mingw-cfg.site (ac_cv_header_pthread_h)
      (gl_cv_sys_struct_timespec_in_pthread_h): Force to "no", to avoid
      picking up 'struct timespec' from pthread.h, if it is installed on
      the user's system.  We want either the definitions from MinGW
      system headers, if available, or the Gnulib replacements if not.
      
      * nt/inc/ms-w32.h <struct timespec>: Don't define, as we now use
      lib/time.h.
      
      * lib/time.in.h: Don't let __need_* symbols affect what happens on
      MinGW.  These symbols are defined by MinGW system headers, but we
      don't want that to affect whether Gnulib portions of the header
      are or aren't used.
      70096743
  14. 26 Jul, 2015 1 commit
    • Paul Eggert's avatar
      New optional ZONE arg for format-time-string etc. · af32fa95
      Paul Eggert authored
      This simplifies time conversions in other time zones.
      It also prevents display-time-world tampering with TZ (Bug#21020).
      * admin/admin.el (add-release-logs):
      Use improved add-log-time-format API.
      * admin/merge-gnulib (GNULIB_MODULES): Add time_rz, timegm.
      (GNULIB_TOOL_FLAGS): Avoid flexmember, setenv, unsetenv.
      * configure.ac (tzalloc): Remove test for this, since
      Emacs no longer uses HAVE_TZALLOC directly.
      * doc/lispref/os.texi (Time of Day, Time Conversion)
      (Time Parsing):
      * etc/NEWS: Document the new behavior.
      Merge from gnulib, incorporating:
      2015-07-25 strftime: fix newly-introduced bug on Solaris
      2015-07-23 fprintftime, strftime: use timezone_t args
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/strftime.c, lib/strftime.h, lib/time.in.h, m4/sys_time_h.m4:
      * m4/time_h.m4:
      Update from gnulib.
      * lib/time_rz.c, lib/timegm.c, m4/time_rz.m4, m4/timegm.m4:
      New files from gnulib.
      * lisp/time-stamp.el (time-stamp-string):
      * lisp/time.el (display-time-world-list)
      (display-time-world-display):
      Use new API, with time zone arg.
      * lisp/time.el (display-time-world-display):
      Fix race when current-time advances while we're running.
      * lisp/vc/add-log.el (add-log-iso8601-time-zone)
      (add-log-iso8601-time-string): Accept optional time zone arg.
      * lisp/vc/add-log.el (add-change-log-entry):
      * lisp/vc/log-edit.el (log-edit-changelog-ours-p): Use new arg.
      * nt/gnulib.mk: Propagate lib/gnulib.mk changes here.
      Add rules for the time module, since they're now needed
      for tzalloc etc.
      * src/conf_post.h (getenv_TZ, setenv_TZ): New macros.
      (emacs_getenv_TZ, emacs_setenv_TZ): New decls.
      * src/editfns.c: Include errno.h.
      (set_time_zone_rule): Omit unnecessary forward decl.
      (initial_tz): Remove, replacing with ...
      (local_tz, wall_clock_tz, utc_tz): New static vars and constants.
      (tzeqlen): New constant; prefer it to (sizeof "TZ=" - 1).
      (emacs_localtime_rz, emacs_mktime_z, xtzalloc, xtzfree)
      (tzlookup): New static functions.
      (init_editfns): New arg DUMPING.  All uses changed.
      (init_editfns): Omit most initialization if dumping, not if
      !initialized.  Initialize wall_clock_tz and local_tz.
      (emacs_nmemftime, format_time_string): Time zone argument can now
      be any time zone, not just a boolean for UTC or local time.  All
      callers changed.
      (Fformat_time_string, Fencode_time, Fcurrent_time_string)
      (Fcurrent_time_zone): New optional arg ZONE.
      (Fdecode_time, Fset_time_zone_rule): ZONE arg can now also take
      the same form as with the other new additions.
      (decode_time_zone): Remove; no longer needed.
      (tzvalbuf): Now file-scope.
      (emacs_getenv_TZ, emacs_setenv_TZ): New functions.
      (syms_of_editfns): Define Qwall.
      * src/editfns.c (mktime_z) [!HAVE_TZALLOC]:
      * src/systime.h (mktime_z, timezone_t, tzalloc, tzfree)
      [!HAVE_TZALLOC]:
      Remove; now supplied by gnulib.
      * src/emacs.c (main):
      * src/lisp.h (init_editfns): Adjust to init_editfns API change.
      af32fa95
  15. 08 Jul, 2015 2 commits
  16. 13 Jun, 2015 2 commits
  17. 07 Jun, 2015 1 commit
  18. 30 May, 2015 1 commit
    • Vitaly Takmazov's avatar
      Declare Emacs on MS-Windows to be DPI-aware · 71f1139c
      Vitaly Takmazov authored
      * nt/emacs-x86.manifest (asmv3:windowsSettings): Add dpiAware.
      * nt/emacs-x64.manifest (asmv3:windowsSettings): Add dpiAware.
      This avoids Windows entering compatibility mode for Emacs,
      which causes fonts to look less nice.
      
      Copyright-paperwork-exempt: yes
      71f1139c
  19. 28 May, 2015 3 commits
    • Eli Zaretskii's avatar
      Fix last commit · 5d75612f
      Eli Zaretskii authored
      * nt/gnulib.mk (libgnu_a_SOURCES): Add get-permissions.c back.
      (gnulib module qcopy-acl): Add back, as it is harmless.  This
      minimizes differences wrt lib/gnulib.mk.
      5d75612f
    • Eli Zaretskii's avatar
      Fix the MS-Windows build as followup to gnulib update · 10831473
      Eli Zaretskii authored
      * nt/gnulib.mk (libgnu_a_SOURCES): Remove get-permissions.c and
      set-permissions.c, as they don't compile on MinGW.
      (gnulib module qcopy-acl): Remove, as it needs set-permissions.c.
      10831473
    • Paul Eggert's avatar
      Merge from gnulib · 6c52e9b9
      Paul Eggert authored
      This incorporates:
      2015-05-27 qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
      2015-05-27 file-has-acl: Split feature tests again (Bug#20667)
      2015-05-27 string: fix build failure on BSD/OSX with FORTIFY_SOURCE
      2015-05-26 stdio: limit __gnu_printf__ witness to gcc 4.4+
      2015-05-26 inttypes: force correct mingw PRIdMAX even without <stdio.h>
      2015-05-26 stdio: fix probe on mingw under gcc 5.1
      * admin/merge-gnulib (GNULIB_MODULES):
      Replace qacl with qcopy-acl, since we don't need the rest of qacl.
      * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
      * lib/inttypes.in.h, lib/qcopy-acl.c, lib/qset-acl.c:
      * lib/string.in.h, m4/acl.m4, m4/stdio_h.m4:
      Get latest versions from gnulib.
      * lib/get-permissions.c, lib/set-permissions.c: New files.
      * lib/gnulib.mk, m4/gnulib-comp.m4:
      Regenerate.
      * nt/gnulib.mk: Merge lib/gnulib.mk changes by hand.
      6c52e9b9
  20. 25 Apr, 2015 1 commit
  21. 11 Apr, 2015 1 commit
  22. 07 Apr, 2015 1 commit
    • Paul Eggert's avatar
      Rename ChangeLogs for gitlog-to-changelog · dd1404cc
      Paul Eggert authored
      This patch was implemented via the following shell commands:
      find * -name ChangeLog |
      sed 's,.*,git mv & &.1,
      s, lisp/ChangeLog\.1$, lisp/ChangeLog.17,
      s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09,
      s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3,
      s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2,
      s, src/ChangeLog\.1$, src/ChangeLog.13,' |
      sh
      git commit -am"[this commit message]"
      dd1404cc
  23. 05 Apr, 2015 1 commit
  24. 27 Mar, 2015 3 commits
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Support non-blocking connect on MS-Windows (Bug#20207) · d133cf83
      Eli Zaretskii authored
       Based on ideas from Kim F. Storm <storm@cua.dk>, see
       http://lists.gnu.org/archive/html/emacs-devel/2006-12/msg00873.html.
      
       src/w32proc.c (reader_thread): If the FILE_CONNECT flag is set, call
       '_sys_wait_connect'.  If it returns STATUS_CONNECT_FAILED, exit
       the thread with code 2.
       (sys_select): Support 'wfds' in addition to 'rfds'.  If a
       descriptor in 'wfds' has its bit set, but the corresponding
       fd_info member doesn't have its FILE_CONNECT flag set, ignore the
       descriptor.  Otherwise, acknowledge a successful non-blocking
       connect by resetting the FILE_CONNECT flag and setting cp->status
       to STATUS_READ_ACKNOWLEDGED.
       src/w32.h (STATUS_CONNECT_FAILED): New enumeration value.
       (struct _child_process): New member 'errcode'.
       (FILE_CONNECT): New flag.
       (_sys_wait_connect): Add prototype.
       src/w32.c (pfn_WSAEnumNetworkEvents): New function pointer.
       (init_winsock): Load WSAEnumNetworkEvents from winsock DLL.
       (set_errno): Map WSAEWOULDBLOCK and WSAENOTCONN.
       (sys_connect): Support non-blocking 'connect' calls by setting the
       FILE_CONNECT flag in the fd_info member and returning EINPROGRESS.
       (_sys_read_ahead): Add debug message if this function is called
       for a descriptor that waits for a non-blocking connect to complete.
       (_sys_wait_connect): New function.
       (sys_read): Support STATUS_CONNECT_FAILED.  Return the error code
       recorded by _sys_wait_connect when the non-blocking connect
       failed.  Don't call WSAGetLastError before a call to set_errno had
       a chance to use its value, since WSAGetLastError clears the last
       error.
      
       nt/inc/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Don't define.
      d133cf83
    • NicolasPetton's avatar
      8478885d
  25. 09 Mar, 2015 1 commit