1. 02 Sep, 2012 1 commit
  2. 01 Sep, 2012 1 commit
    • Daniel Colascione's avatar
      Refactor window-system configuration · 17a2cbbd
      Daniel Colascione authored
      This change streamlines the window system selection code in
      configure.in and moves many common function declarations from
      window-specific headers to frame.h.  It introduces a new TERM_HEADER
      macro in config.h: we set this macro to the right header to use for
      the window system for which we're compiling Emacs and have source
      files include it indirectly.  This way, we don't have to teach every
      file about every window system.
      17a2cbbd
  3. 24 Aug, 2012 1 commit
  4. 22 Aug, 2012 1 commit
  5. 17 Aug, 2012 1 commit
  6. 15 Aug, 2012 2 commits
  7. 14 Aug, 2012 1 commit
  8. 10 Aug, 2012 1 commit
    • Glenn Morris's avatar
      Move DIRECTORY_SEP from lisp.h to config.h · 9374581a
      Glenn Morris authored
      * configure.ac (DIRECTORY_SEP): Move here from src/lisp.h.
      
      * src/lisp.h (DIRECTORY_SEP): Let configure set it.
      
      * nt/config.nt (DIRECTORY_SEP): Move here from src/lisp.h.
      
      * lib-src/movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
      * lib-src/make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
      * lib-src/emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
      Remove (they are in config.h now).
      9374581a
  9. 07 Aug, 2012 1 commit
  10. 06 Aug, 2012 1 commit
    • Glenn Morris's avatar
      Remove GNU_LIBRARY_PENDING_OUTPUT_COUNT · 1c6f11f4
      Glenn Morris authored
      * configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
      (PENDING_OUTPUT_COUNT): Absorb GNU_LIBRARY_PENDING_OUTPUT_COUNT.
      (DISPNEW_NEEDS_STDIO_EXT): New define.
      
      * src/dispnew.c (GNU_LIBRARY_PENDING_OUTPUT_COUNT, PENDING_OUTPUT_COUNT):
      Let configure handle it.
      (stdio_ext.h) [DISPNEW_NEEDS_STDIO_EXT]: Include it.
      
      * nt/config.nt (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
      (PENDING_OUTPUT_COUNT): Define it as dispnew.c used to.
      
      * admin/CPP-DEFINES (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
      1c6f11f4
  11. 04 Aug, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #11959 with startup warnings on MS-Windows about ../site-lisp. · 76151e2c
      Eli Zaretskii authored
       src/w32.c (init_environment): Change the default values of many
       environment variables in dflt_envvars[] to NULL, to avoid pushing
       them into environment when they were not already defined.  Remove
       the code that deletes site-lisp subdirectories from the default
       value of EMACSLOADPATH, as it is no longer needed.
       (check_windows_init_file): Now external, not static.  Use
       Vload_path as is, without adding anything, as this function is now
       called when Vload_path is already set up.
       src/w32.h (check_windows_init_file): Add prototype.
       src/emacs.c (init_cmdargs) [WINDOWSNT]: When running from the build
       directory, ignore the /*/i386/ tail in Vinvocation_directory, for
       compatibility with Posix platforms.
       (main): Move the call to check_windows_init_file to here from
       w32.c.
       (decode_env_path) [WINDOWSNT]: Expand the %emacs_dir%/ prefix, if
       any, in the DEFALT argument into the root of the Emacs build or
       installation tree, as appropriate.
       src/callproc.c (init_callproc_1): Call decode_env_path instead of
       doing its equivalent by hand.
       (init_callproc): Replace DOS_NT condition with MSDOS, thus letting
       the code that sets Vexec_path run on MS-Windows.
       src/lread.c (init_lread): Add comments to #ifdef's.
      
       nt/paths.h (PATH_LOADSEARCH, PATH_SITELOADSEARCH, PATH_EXEC)
       (PATH_DATA, PATH_DOC): Replace dummy directory names with
       directories relative to %emacs_dir%.
       (PATH_EXEC): Add lib-src/oo-spd/i386 and lib-src/oo/i386, to cater
       to the use case of running un-installed Emacs.
      76151e2c
  12. 03 Aug, 2012 2 commits
    • Juanma Barranquero's avatar
      * nt/config.nt: Sync with autogen/config.in. · 3fbc4b54
      Juanma Barranquero authored
      (DOS_NT, MSDOS): New macros.
      (WRETCODE, wait3): Remove.
      
      * nt/inc/ms-w32.h (DOS_NT): Remove; defined in config.nt.
      
      * lib-src/makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT,
      they are always defined in config.h.
      3fbc4b54
    • Eli Zaretskii's avatar
      Support symlinks on latest versions of MS-Windows. · 6dad7178
      Eli Zaretskii authored
       src/w32.c: Include winioctl.h and aclapi.h.
       (is_symlink, chase_symlinks, enable_privilege, restore_privilege)
       (revert_to_self): Forward declarations of static functions.
       <static BOOL g_b_init_get_security_info>:
       <g_b_init_create_symbolic_link>: New static flags.
       (globals_of_w32): Initialize them to zero.
       (GetSecurityInfo_Proc, CreateSymbolicLink_Proc): New typedefs.
       (map_w32_filename): Improve commentary.  Simplify switch.
       (SYMBOLIC_LINK_FLAG_DIRECTORY): Define if not defined in system
       headers (most versions of MinGW w32api don't).
       (get_security_info, create_symbolic_link)
       (get_file_security_desc_by_handle, is_symlink, chase_symlinks):
       New functions.
       (sys_access, sys_chmod): Call 'chase_symlinks' to resolve symlinks
       in the argument file name.
       (sys_access): Call unc_volume_file_attributes only if
       GetFileAttributes fails with network-related error codes.
       (sys_rename): Diagnose renaming of a symlink when the user doesn't
       have the required privileges.
       (get_file_security_desc_by_name): Renamed from
       get_file_security_desc.
       (stat_worker): New function, with most of the guts of 'stat', and
       with addition of handling of symlinks and support for 'lstat'.  If
       possible, get file's attributes and security information by
       handle, not by name.  Produce S_IFLNK bit for symlinks, when
       called from 'lstat'.
       (stat, lstat): New functions, call 'stat_worker'.
       (symlink, readlink, careadlinkat): Rewritten to create and resolve
       symlinks when the underlying filesystem supports them.
      
       lib/src/ntlib.c (lstat): New function, calls 'stat'.
      
       nt/inc/sys/stat.h (S_IFLNK): Define.
       (S_ISLNK): A non-trivial definition.
       (lstat): Prototype instead of a macro that redirects to 'stat'.
      
       lisp/files.el (file-truename): Don't skip symlink-chasing part on
       windows-nt.  Incorporate the resolution of 8+3 short aliases on
       Windows into the loop that recursively chases symlinks.  Compare
       directory and its parent case-insensitively on MS-Windows and
       MS-DOS.
      
       etc/NEWS: Announce the symlink support on MS-Windows.
      6dad7178
  13. 02 Aug, 2012 2 commits
    • Paul Eggert's avatar
      Use C99-style 'extern inline' if available. · f162bcc3
      Paul Eggert authored
      * lib-src/profile.c (SYSTIME_INLINE): Define.
      * nt/config.nt: Sync with autogen/config.in.
      (_GL_INLINE, _GL_EXTERN_INLINE, _GL_INLINE_HEADER_BEGIN)
      (_GL_INLINE_HEADER_END): New macros.
      * src/buffer.h (BUFFER_INLINE):
      * src/category.h (CATEGORY_INLINE):
      * src/character.h (CHARACTER_INLINE):
      * src/charset.h (CHARSET_INLINE):
      * src/composite.h (COMPOSITE_INLINE):
      * src/dispextern.h (DISPEXTERN_INLINE):
      * src/lisp.h (LISP_INLINE):
      * src/systime.h (SYSTIME_INLINE):
      New macro, replacing 'static inline' in this header.
      * src/buffer.h, src/category.h, src/character.h, src/charset.h:
      * src/composite.h, src/dispextern.h, lisp.h, systime.h:
      Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
      * src/alloc.c (LISP_INLINE):
      * src/buffer.c (BUFFER_INLINE):
      * src/category.c (CATEGORY_INLINE):
      * src/character.c (CHARACTER_INLINE):
      * src/charset.c (CHARSET_INLINE):
      * src/composite.c (COMPOSITE_INLINE):
      * src/dispnew.c (DISPEXTERN_INLINE):
      * src/sysdep.c (SYSTIME_INLINE):
      Define to EXTERN_INLINE, so that the corresponding functions
      are compiled into code.
      * src/conf_post.h (INLINE, EXTERN_INLINE, INLINE_HEADER_BEGIN)
      (INLINE_HEADER_END): New macros.
      * src/lisp.h (PSEUDOVECTOR_FLAG): Now a macro as well as a constant,
      since it's used in non-static inline functions now.
      f162bcc3
    • Glenn Morris's avatar
      Move NT-specific include file to the NT include directory · 837b365b
      Glenn Morris authored
      * nt/inc/ms-w32.h: Move here from ../src/s.
      * nt/config.nt (config_opsysfile): Change to <ms-w32.h>.
      
      * s/ms-w32.h: Move to ../nt/inc.
      * src/makefile.w32-in (TAGS, TAGS-gmake, MS_W32_H):
      Update for new ms-w32.h location.
      
      * lib-src/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
      
      * lib/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
      
      * lisp/emacs-lisp/authors.el (authors-renamed-files-alist): Add ms-w32.h.
      837b365b
  14. 01 Aug, 2012 2 commits
    • Juanma Barranquero's avatar
      Sync Windows port with autogen/config.in changes. · c90acc54
      Juanma Barranquero authored
      * nt/config.nt: Sync with autogen/config.in.
      (DEVICE_SEP, FLOAT_CHECK_DOMAIN, HAVE_INVERSE_HYPERBOLIC)
      (INTERNAL_TERMINAL, IS_ANY_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP):
      New macros.
      
      * src/s/ms-w32.h (DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
      Remove; moved to nt/config.nt.
      c90acc54
    • Juanma Barranquero's avatar
      Adapt Windows port to recent changes in autogen/config.in. · 552a99b4
      Juanma Barranquero authored
      * lib-src/makefile.w32-in (CONFIG_H): Update dependencies.
      (CONF_POST_H): New macro.
      
      * lib/makefile.w32-in (CONFIG_H): Update dependencies.
      (CONF_POST_H): New macro.
      
      * nt/config.nt: Sync with autogen/config.in.
      Remove code moved to conf_post.h and include <conf_post.h>
      (NULL_DEVICE, SEPCHAR, SIGNAL_H_AHB, TIOCSIGSEND, USER_FULL_NAME)
      (USG5_4, WRETCODE, _longjmp, _setjmp, wait3): New macros.
      
      * src/makefile.w32-in (CONFIG_H): Update dependencies.
      (CONF_POST_H): New macro.
      
      * src/s/ms-w32.h (SEPCHAR, NULL_DEVICE): Remove; moved to nt/config.nt.
      552a99b4
  15. 29 Jul, 2012 3 commits
  16. 28 Jul, 2012 1 commit
    • Paul Eggert's avatar
      Use Gnulib stdalign and environ modules (Bug#9772, Bug#9960). · e32a5799
      Paul Eggert authored
      * .bzrignore: Add lib/stdalign.h.
      * config.bat: Do not set NO_DECL_ALIGN; no longer needed.
      Copy lib/stdalign.in.h to lib/stdalign.in-h as needed.
      * configure.ac (HAVE_ATTRIBUTE_ALIGNED): Remove the code that
      fiddles with this, as gnulib now does this for us.
      * admin/merge-gnulib: Add environ, stdalign.
      * m4/environ.m4: New file, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stdalign.in.h, m4/stdalign.m4: New files, from gnulib.
      * sed2v2.inp (HAVE_ATTRIBUTE_ALIGNED): Remove edit.
      * sedlibmk.inp (STDALIGN_H, @GL_GENERATE_STDALIGN_H_TRUE@)
      (GL_GENERATE_STDALIGN_H_FALSE): New edits.
      * nt/config.nt (HAVE_ATTRIBUTE_ALIGNED): Remove.
      * src/alloc.c (XMALLOC_BASE_ALIGNMENT, GC_POINTER_ALIGNMENT, pure_alloc):
      Simplify by using alignof.
      (pure_alloc) [! USE_LSB_TAG]: Don't over-align EMACS_INT values.
      * src/lisp.h: Include <stdalign.h>.
      (GCALIGNMENT): New macro and constant.
      (DECL_ALIGN): Remove.  All uses replaced by alignas (GCALIGNMENT).
      (USE_LSB_TAG): ifdef on alignas, not on DECL_ALIGN.
      (stdalign): New macro, if not already defined.
      e32a5799
  17. 14 Jul, 2012 2 commits
  18. 13 Jul, 2012 1 commit
    • Juanma Barranquero's avatar
      * nt/config.nt: Sync with autogen/config.in. · ef099b57
      Juanma Barranquero authored
      (BROKEN_FIONREAD, BROKEN_GET_CURRENT_DIR_NAME)
      (BROKEN_PTY_READ_AFTER_EAGAIN, BROKEN_SIGAIO, BROKEN_SIGPOLL)
      (BROKEN_SIGPTY, BSD4_2, BSD_SYSTEM, BSD_SYSTEM_AHB, CYGWIN, DARWIN_OS)
      (FIRST_PTY_LETTER, GNU_LINUX, G_SLICE_ALWAYS_MALLOC, HAVE_PTYS)
      (HAVE_SOCKETS, HPUX, INTERRUPT_INPUT, IRIX6_5, NARROWPROTO, NO_ABORT)
      (NO_EDITRES, NSIG_MINIMUM, PREFER_VSUSP, PTY_ITERATION
      (PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF, RUN_TIME_REMAP)
      (SETPGRP_RELEASES_CTTY, SOLARIS2, TAB3, TABDLY, ULIMIT_BREAK_VALUE)
      (UNIX98_PTYS, USG, USG5, XOS_NEEDS_TIME_H, _AIX): New macros.
      (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT):
      Set in src/s/ms-w32.h, not here.
      
      * src/s/ms-w32.h (FIRST_PTY_LETTER, HAVE_SOCKETS): Move to nt/config.nt.
      (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT):
      Set here, not in nt/config.nt.
      ef099b57
  19. 11 Jul, 2012 1 commit
  20. 10 Jul, 2012 1 commit
  21. 09 Jul, 2012 2 commits
  22. 08 Jul, 2012 1 commit
  23. 07 Jul, 2012 2 commits
  24. 06 Jul, 2012 1 commit
  25. 04 Jul, 2012 2 commits
    • Juanma Barranquero's avatar
      * nt/configure.bat (enablechecking): Enable checks through src/config.h. · 0566bc95
      Juanma Barranquero authored
      * nt/gmake.defs (DEBUG_CFLAGS): Add -fno-crossjumping.
      (CHECKING_CFLAGS): Remove.
      (CFLAGS, ESC_CFLAGS): Do not include $(CHECKING_CFLAGS).
      
      * nt/nmake.defs (CHECKING_CFLAGS): Remove.
      (CFLAGS, ESC_CFLAGS): Do not include $(CHECKING_CFLAGS).
      0566bc95
    • Juanma Barranquero's avatar
      Remove obsolete configuration options (Windows port). · 95f61aa2
      Juanma Barranquero authored
      * admin/CPP-DEFINES (LISP_FLOAT_TYPE): Remove, obsolete.
      
      * nt/config.nt (LISP_FLOAT_TYPE, HAVE_XFREE386, USE_TEXT_PROPERTIES)
      (GSSAPI, HAVE_LIBINTL, HAVE_LIBGSSAPI_KRB5, HAVE_LIBGSSAPI)
      (HAVE_GSSAPI_H, HAVE_LIBXBD, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET)
      (HAVE_MEMCMP): Remove, obsolete.
      
      * src/s/ms-w32.h (LISP_FLOAT_TYPE, HAVE_MEMCMP, HAVE_MEMCPY)
      (HAVE_MEMMOVE, HAVE_MEMSET): Don't set, obsolete.
      95f61aa2
  26. 30 Jun, 2012 1 commit
    • Glenn Morris's avatar
      Make --no-site-lisp work for --enable-locallisppath elements · ca26824c
      Glenn Morris authored
      without "site-lisp" in the name.
      Ref http://debbugs.gnu.org/10208#25, point iii).
      
      * configure.in (standardlisppath): New output variable.
      (lisppath): Use standardlisppath.
      * Makefile.in (standardlisppath): New, set by configure.
      (epaths-force): Use standardlisppath and locallisppath rather than lisppath.
      
      * src/epaths.in (PATH_SITELOADSEARCH): New.
      * src/lread.c (init_lread): Use PATH_SITELOADSEARCH.
      
      * nt/paths.h (PATH_SITELOADSEARCH): New.
      
      Fixes: debbugs:11658
      ca26824c
  27. 28 Jun, 2012 1 commit
  28. 24 Jun, 2012 3 commits
    • Eli Zaretskii's avatar
      nt/config.nt (_Noreturn): Don't reference __SUNPRO_C. · 5e0881dd
      Eli Zaretskii authored
      Fixes: debbugs:11750
      5e0881dd
    • Paul Eggert's avatar
      Switch from NO_RETURN to C11's _Noreturn. · 845ca893
      Paul Eggert authored
      Fixes: debbugs:11750
      845ca893
    • Eli Zaretskii's avatar
      Improve port of struct timespec to MS-Windows. · 696056c2
      Eli Zaretskii authored
       lib/makefile.w32-in ($(BLD)/dtotimespec.$(O)):
       ($(BLD)/timespec-add.$(O)):
       ($(BLD)/timespec-sub.$(O)): Don't depend on
       $(EMACS_ROOT)/nt/inc/sys/time.h.
       lib/stat-time.h:
       lib/timespec.h:
       lib/utimens.h: Revert last change.
       src/makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h.
       (SYSTIME_H): Add nt/inc/sys/time.h.
       src/systime.h [WINDOWSNT]: Include sys/time.h.
       src/s/ms-w32.h (struct timespec): Definition moved from
       nt/inc/sys/time.h.  Suggested by Paul Eggert <eggert@cs.ucla.edu>.
       nt/inc/sys/time.h (struct timespec): Don't define it here, it is
       now defined in src/s/ms-w32.h.
      
      Fixes: debbugs:9000
      696056c2