1. 07 Jan, 2008 1 commit
  2. 26 Oct, 2007 1 commit
    • Juanma Barranquero's avatar
      Add a wrapper for getenv so it also checks the registry on Windows. · 70cd9104
      Juanma Barranquero authored
      Suggestion and algorithm by Eli Zaretskii.
      Code partially based on w32_get_resource and init_environment (w32.c).
      (xmalloc): New function by Károly Lőrentey (backported from the trunk).
      (quote_file_name): Use it.
      (egetenv): New wrapper for getenv.
      (get_current_dir_name, decode_options, get_server_config, set_local_socket,
      set_socket, main): Use egetenv, not getenv.
      (w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
      70cd9104
  3. 25 Oct, 2007 1 commit
  4. 27 Sep, 2007 1 commit
  5. 25 Jul, 2007 1 commit
  6. 16 Feb, 2007 1 commit
  7. 21 Jan, 2007 1 commit
  8. 18 Dec, 2006 1 commit
  9. 15 Dec, 2006 3 commits
  10. 30 Nov, 2006 2 commits
  11. 25 Nov, 2006 1 commit
  12. 24 Nov, 2006 2 commits
  13. 23 Nov, 2006 1 commit
  14. 22 Nov, 2006 1 commit
    • Juanma Barranquero's avatar
      Include <stdarg.h>. · 42073bfb
      Juanma Barranquero authored
      [WINDOWSNT]: Include <windows.h>.
      (w32_check_console_app): New function.
      (message): New function.
      (decode_options, print_help_and_exit, fail, main, initialize_sockets,
      get_server_config, set_tcp_socket, set_local_socket, set_socket):
      Use message().
      42073bfb
  15. 13 Nov, 2006 2 commits
  16. 10 Nov, 2006 1 commit
  17. 08 Nov, 2006 1 commit
  18. 07 Nov, 2006 2 commits
  19. 06 Nov, 2006 1 commit
    • Juanma Barranquero's avatar
      (longopts) [! NO_SOCKETS_IN_FILE_SYSTEM]: Don't show option --socket-name. · b03d27bd
      Juanma Barranquero authored
      (decode_options): Don't get EMACS_SERVER_FILE here, it could override command
      line options.
      (decode_options) [! NO_SOCKETS_IN_FILE_SYSTEM]: Don't parse "-s" option.
      (fail): Don't check for missing arguments, it is now done in set_socket.
      (file_name_absolute_p): New function (loosely based on the one in fileio.c).
      (initialize_sockets): Don't check for duplicate loading of Winsock.
      (get_server_config): Only try relative paths in the default directory locations.
      (set_tcp_socket): Don't call INITIALIZE().  Warn when connecting to a remote
      server.
      (set_socket): Call INITIALIZE().  Search explicit command-line arguments, then
      environment variable EMACS_SERVER_FILE, then implicit socket paths, before
      trying the alternate editor.
      (main): Use file_name_absolute_p.
      b03d27bd
  20. 03 Nov, 2006 1 commit
  21. 02 Nov, 2006 1 commit
    • Juanma Barranquero's avatar
      [WINDOWSNT]: Define HAVE_INET_SOCKETS. · 1e7823d0
      Juanma Barranquero authored
      [!WINDOWSNT]: Include <netinet/in.h> if available.
      [HAVE_SOCKETS]: Also require HAVE_INET_SOCKETS.
      (IOCTL, IOCTL_BOOL_ARG): Remove.
      (set_tcp_socket): Don't set the socket in blocking mode.  Remove c_arg.
      1e7823d0
  22. 01 Nov, 2006 1 commit
  23. 31 Oct, 2006 4 commits
    • Juanma Barranquero's avatar
      [WINDOWSNT]: Include <malloc.h> and <stdlib.h>. · 411b80a5
      Juanma Barranquero authored
      (close_winsock): Declare as __cdecl.
      411b80a5
    • Juanma Barranquero's avatar
      [!WINDOWSNT]: Include <fcntl.h> if available. · 95d0feaa
      Juanma Barranquero authored
      (set_tcp_socket): Prefer O_NONBLOCK, then O_NDELAY, then FIONBIO to set the
      socket in non-blocking mode.
      95d0feaa
    • Juanma Barranquero's avatar
      Fixes to emacsclient.c for GNU/Linux. · e35fc962
      Juanma Barranquero authored
      [!WINDOWSNT] <top level>: Include <netinet/in.h> and <sys/ioctl.h>.
      (INVALID_SOCKET): Define.
      (initialize_sockets): Put #endif at the right place.
      (set_local_socket): Use progname, not argv[0].
      e35fc962
    • Juanma Barranquero's avatar
      Add support for TCP sockets. · aa0b6932
      Juanma Barranquero authored
      (SEND_STRING, SEND_QUOTED, HSOCKET, CLOSE_SOCKET, IOCTL, INITIALIZE): New
      macros.
      (IOCTL_BOOL_ARG): New typedef.
      (server_file): New global variable.
      (longopts): New option --server-file.
      (decode_options): Process new option --server-file and environment variable
      EMACS_SERVER_FILE.
      (print_help_and_exit): Document new option.
      (fail): If no connection available and no alternate editor, suggest using
      options to make them explicit.
      (AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): New constants.
      (send_buffer, sblen): New variables.
      (send_to_emacs): New function to buffer output and send it with send().
      (quote_file_name): Use SEND_STRING.
      (close_winsock, initialize_sockets): New functions to load and unload Winsock.
      (get_server_config, set_tcp_socket): New functions to create and set up TCP
      sockets.
      (set_local_socket): New function to create and set up Unix socket (code moved
      from previous implementation).
      (set_socket): New function to chose between TCP and Unix sockets.
      (main): Use SEND_STRING and SEND_QUOTED.  Most code moved to set_local_socket.
      Use set_socket.  Get answers from server.el with recv(), not file stream
      functions.
      aa0b6932
  24. 18 Jul, 2006 1 commit
    • Dan Nicolaescu's avatar
      * ebrowse.c (usage, version): Mark as NO_RETURN. · 2381d38d
      Dan Nicolaescu authored
      * emacsclient.c (print_help_and_exit): Likewise.
      
      * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
      
      * textprop.c (text_read_only): Likewise.
      
      * lread.c (end_of_file_error): Likewise.
      
      * lisp.h (circular_list_error, memory_full, buffer_memory_full):
      Likewise.
      
      * eval.c (unwind_to_catch): Likewise.
      
      * buffer.h (buffer_slot_type_mismatch): Likewise.
      2381d38d
  25. 06 Feb, 2006 1 commit
  26. 07 Aug, 2005 1 commit
  27. 04 Jul, 2005 1 commit
  28. 18 Mar, 2005 1 commit
  29. 17 Jul, 2004 1 commit
  30. 08 May, 2004 1 commit
  31. 05 Feb, 2004 1 commit