1. 15 Aug, 2012 1 commit
  2. 01 Jun, 2012 1 commit
  3. 29 May, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #11405 with MSVC build of emacsclientw. · 06523364
      Eli Zaretskii authored
       lib-src/makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
       instead of a literal -mwindows, which is not supported by MSVC.
       nt/nmake.defs (MWINDOWS): Define as "-subsystem:windows -entry:mainCRTStartup".
       Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.
       nt/gmake.defs (MWINDOWS): Define as "-mwindows".
      06523364
  4. 02 May, 2012 3 commits
  5. 15 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Move "emacsclient -t -n" handling from emacsclient.c to server.el. · 9a864fa2
      Chong Yidong authored
      Fix its buggy logic for the Windows case (regression from 23.4).
      
      * lib-src/emacsclient.c (decode_options): Move -t -n corner case handling
      into server.el.
      
      * lisp/server.el (server-process-filter): Handle corner case where both
      tty and nowait options are present.
      
      Fixes: debbugs:11102
      9a864fa2
  6. 12 Apr, 2012 1 commit
  7. 11 Mar, 2012 3 commits
    • Andreas Schwab's avatar
      Define -print-nonl client command · e29ab36b
      Andreas Schwab authored
      * lib-src/emacsclient.c (main): Handle -print-nonl command.
      
      * lisp/server.el (server-msg-size): New constant.
      (server-reply-print): New function.
      (server-eval-and-print): Use it.
      (server-eval-at): Use server-quote-arg and server-unquote-arg.
      Handle -print-nonl.
      e29ab36b
    • Andreas Schwab's avatar
      2b84f674
    • Andreas Schwab's avatar
      Don't access freed memory in emacsclient · 6b0c8984
      Andreas Schwab authored
      * emacsclient.c (socket_name): Add const.
      (get_server_config): Add parameter config_file, use it instead of
      global server_file.
      (set_tcp_socket): Add parameter local_server_file, pass it down to
      get_server_config.
      (set_local_socket): Add parameter local_socket_name, use it
      instead of global socket_name.
      (set_socket): Adjust calls to set_local_socket and set_tcp_socket.
      Don't clobber global server_file or socket_name.
      (main): No longer reset server_file or socket_name.
      6b0c8984
  8. 19 Jan, 2012 1 commit
  9. 11 Jan, 2012 1 commit
  10. 10 Jan, 2012 1 commit
    • Glenn Morris's avatar
      Update short copyright year to 2012 (do not merge to trunk) · 959272ec
      Glenn Morris authored
      * etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
      * etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
      * etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
      * etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
      * etc/refcards/fr-survival.tex, etc/refcards/orgcard.tex:
      * etc/refcards/pl-refcard.tex, etc/refcards/pt-br-refcard.tex:
      * etc/refcards/refcard.tex, etc/refcards/ru-refcard.tex:
      * etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex:
      * etc/refcards/sk-survival.tex, etc/refcards/survival.tex:
      * etc/refcards/vipcard.tex, etc/refcards/viperCard.tex:
      * lib-src/ebrowse.c (version) <emacs_copyright>:
      * lib-src/etags.c (print_version) <emacs_copyright>:
      * lib-src/rcs2log (Copyright):
      * lisp/version.el (emacs-copyright):
      * nextstep/Cocoa/Emacs.base/Contents/Info.plist:
      * nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:
      * nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:
      Update short copyright year to 2012.
      959272ec
  11. 05 Jan, 2012 2 commits
    • Glenn Morris's avatar
      acaf905b
    • Glenn Morris's avatar
      Update short copyright year to 2012. · 1c6e5a32
      Glenn Morris authored
      * etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
      * etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
      * etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
      * etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
      * etc/refcards/fr-survival.tex, etc/refcards/orgcard.tex:
      * etc/refcards/pl-refcard.tex, etc/refcards/pt-br-refcard.tex:
      * etc/refcards/refcard.tex, etc/refcards/ru-refcard.tex:
      * etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex:
      * etc/refcards/sk-survival.tex, etc/refcards/survival.tex:
      * etc/refcards/vipcard.tex, etc/refcards/viperCard.tex:
      * lib-src/ebrowse.c (version) <emacs_copyright>:
      * lib-src/etags.c (print_version) <emacs_copyright>:
      * lib-src/rcs2log (Copyright): Update short copyright year to 2012.
      * nextstep/Cocoa/Emacs.base/Contents/Info.plist:
      * nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:
      * nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:
      * src/emacs.c (emacs_copyright): Update short copyright year to 2012.
      1c6e5a32
  12. 25 Dec, 2011 1 commit
  13. 12 Dec, 2011 1 commit
  14. 04 Dec, 2011 1 commit
  15. 30 Nov, 2011 1 commit
  16. 27 Nov, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix MS-Windows build with MSVC compiler. · 8c9afb46
      Eli Zaretskii authored
      Parts of the changes by Fabrice Popineau  <fabrice.popineau@supelec.fr>.
      
       lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).
       lib-src/emacsclient.c (main) <environ>: Remove declaration, already
       pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows.
       nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs.
       (UINT64_MAX) [_WIN64]: Fix definition.
       (uintmax_t, intmax_t): Fix definitions.
       nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide
       correct definitions.
       nt/config.nt (HAVE_DECL_STRTOLL): Define.
       (va_copy) [_WIN64]: Provide a better definition.
       src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define.
       (snprintf) [_MSC_VER]: Redirect to _snprintf.
       (strtoll) [_MSC_VER]: Redirect to _strtoi64.
       (malloc, free, realloc, calloc): Redirect to e_* only when
       compiling Emacs.
       src/lisp.h (GCTYPEBITS): Move before first use.
       (ALIGN_GCTYPEBITS) [_MSC_VER]: Define.
       (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in
       this macro definition.
       (tzname): Redirect to _tzname for all values of _MSC_VER.
      
      Fixes: debbugs:9960
      8c9afb46
  17. 26 Nov, 2011 1 commit
  18. 24 Nov, 2011 1 commit
  19. 20 Nov, 2011 1 commit
  20. 17 Nov, 2011 1 commit
  21. 16 Nov, 2011 2 commits
  22. 14 Nov, 2011 1 commit
  23. 27 Oct, 2011 1 commit
  24. 07 Sep, 2011 2 commits
  25. 29 Aug, 2011 1 commit
  26. 28 Aug, 2011 4 commits
    • Paul Eggert's avatar
      * update-game-score.c: Include <limits.h> · 0c6d656d
      Paul Eggert authored
      (get_user_id): Do not assume uid fits in 'int'.  Simplify.
      0c6d656d
    • Paul Eggert's avatar
      * movemail.c (main): Do not use sprintf when its result might not fit · 644a0faa
      Paul Eggert authored
      in 'int'.  Instead, put the possibly-long file name into the
      output of pfatal_with_name.
      644a0faa
    • Paul Eggert's avatar
      * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int, · 9250f758
      Paul Eggert authored
      to avoid potential buffer overflow issues on typical 64-bit hosts.
      (whatlen_max): New static var.
      (main): Avoid buffer overflow if subsidiary command length is
      greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
      result might not fit in 'int'.
      9250f758
    • Paul Eggert's avatar
      Integer and memory overflow issues. · 17107bb6
      Paul Eggert authored
      * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to
      avoid potential buffer overflow issues on typical 64-bit hosts.
      Return void *, not long *.
      (get_current_dir_name): Report a failure, instead of looping
      forever, if buffer size calculation overflows.  Treat malloc
      failures like realloc failures, as that has better behavior and is
      more consistent.  Do not check whether xmalloc returns NULL, as
      that's not possible.
      (message): Do not arbitrarily truncate message to 2048 bytes when
      sending it to stderr; use vfprintf instead.
      (get_server_config, set_local_socket)
      (start_daemon_and_retry_set_socket): Do not alloca
      arbitrarily-large buffers; that's not safe.
      (get_server_config, set_local_socket): Do not use sprintf when its
      result might not fit in 'int'.
      (set_local_socket): Do not assume uid fits in 'int'.
      17107bb6
  27. 25 Jul, 2011 1 commit
  28. 24 Jul, 2011 1 commit
    • Paul Eggert's avatar
      Merge from gnulib, using build-aux to remove clutter. · 24e0f6b1
      Paul Eggert authored
      * m4/largefile.m4: New file, so that Emacs does not mess up when
      accessing files with large inode numbers in MacOS X 10.5 and later.
      * m4/nocrash.m4: New file, to avoid triggering background debugger
      and/or create core dumps during 'configure'.
      * build-aux/move-if-change: Renamed from move-if-change.
      * build-aux/snippet/arg-nonnull.h: Renamed from arg-nonnull.h.
      * build-aux/snippet/c++defs.h: Renamed from c++defs.h.
      * build-aux/snippet/warn-on-use.h: Renamed from warn-on-use.h.
      * build-aux/snippet/_Noreturn.h: New file, for draft C1X _Noreturn.
      * .bzrignore: The autogenerated files compile, config.guess,
      config.sub, depcomp, install-sh, and missing are now in build-aux.
      * Makefile.in (epaths-force, sync-from-gnulib):
      move-if-change is now in build-aux.
      (GNULIB_TOOL_FLAGS): Avoid threadlib; this is now a prerequisite
      of gnulib's pthread_sigmask module, but Emacs doesn't need it.
      (mkdir): install-sh is now in build-aux.
      * config.bat: c++defs.h is now in build-aux/snippets.
      * configure.in: Specify AC_CONFIG_AUX_DIR with build-aux (the
      usual parameter).
      * lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
      * lib/makefile.w32-in (ARG_NONNULL_H): arg-nonnull.h moved
      to build-aux/snippet.
      * lib/pthread_sigmask.c, lib/stdlib.in.h, m4/extensions.m4:
      * m4/getopt.m4, m4/gnulib-common.m4, m4/pthread_sigmask.m4:
      Merge from gnuilib.  This fixes porting bugs on Cygwin, Irix, and
      Solaris, enables MacOS extensions, and enables nocrash during
      'configure'.
      * make-dist: Adjust to new build-aux and build-aux/snippit dirs.
      * admin/notes/copyright: The files compile, config.guess, config.sub,
      depcomp, install-sh, missing, and move-if-change are now in the
      new build-aux subdirectory.  The files arg-nonnull.h, c++defs.h,
      and warn-on-use.h are now in build-aux/snippets.  New file
      build-aux/snippets/_Noreturn.h.
      * leim/Makefile.in (install): install-sh is now in build-aux.
      * lib-src/Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved
      to build-aux.
      * msdos/sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Adjust to snippet moves
      from top level to build-aux/snippet.
      * src/Makefile.in (gl-stamp): move-if-change is now in build-aux.
      24e0f6b1
  29. 09 Jul, 2011 1 commit
  30. 07 Jul, 2011 1 commit