1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-27 19:31:38 +00:00
Commit Graph

54 Commits

Author SHA1 Message Date
Markus Rost
15dab115ed Remove reference to SERVER_HOME_DIR completely. 2002-10-01 00:47:12 +00:00
Stefan Monnier
3ecdcd5905 (main): Always use /tmp and non-qualified hostname. 2002-09-27 22:07:38 +00:00
Stefan Monnier
30be2360f8 Remove SYSV support.
(eval, display): New vars.
(longopts): Add --eval and --display.
(decode_options): Add -e and -d processing.
(print_help_and_exit): Update the usage string.
(main): Add support for --eval and --display.
2002-09-27 18:21:44 +00:00
Stefan Monnier
3cf8c6aa01 (quote_file_name): Quote \n.
(main): Print a final \n when needed.
2002-09-18 01:44:54 +00:00
Pavel Janík
2f8fe2f420 Include <config.h>. 2001-12-29 22:25:06 +00:00
Pavel Janík
e69233c2de Include "config.h", not <../src/config.h>.
(main): Parenthesize assignment when used as truth value to
prevent gcc warnings.
2001-12-19 07:21:17 +00:00
Gerd Moellmann
cb1cdedd97 (main): Cast isdigit() argument to unsigned char.
From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2001-10-09 10:18:30 +00:00
Gerd Moellmann
8b8f50f810 (print_help_and_exit): Fix help message for
+LINE:COLUMN option.

(main): Add support for +LINE:COLUMN command line
argument.
2001-07-17 10:57:25 +00:00
Dave Love
23431241d4 (fail): Don't return a value.
(main): Cast uid values for sprintf.
2001-04-05 18:46:47 +00:00
Gerd Moellmann
de073ce36f (fail, main): Don't use implicit int return type. 2001-04-03 13:37:23 +00:00
Eli Zaretskii
571512dece (main): Remove unused local variable statbfr.
(main) <homedir>: Make its declaration conditional on
SERVER_HOME_DIR, to avoid compiler warnings.
2001-01-02 13:52:48 +00:00
Gerd Moellmann
9f637eea61 (socket_status): New function.
(main): if $LOGNAME or $USER exist and differ from our euid, look
for a socket based on the UID associated with the name.
2000-01-28 15:02:20 +00:00
Gerd Moellmann
97e3214d1d Add option -a EDITOR and environment variable
ALTERNATE_EDITOR.  Exec this editor if we fail to contact Emacs.
2000-01-12 13:38:54 +00:00
Paul Eggert
4ee9629e2b Add support for large files. Merge glibc 2.1.2.
* b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c,
movemail.c, pop.c:
Do not include <stdlib.h>, as <config.h> does this now.

* b2m.c, emacsserver.c, etags.c, profile.c:
Include <config.h> before any system include files.

* emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c,
test-distrib.c:
(read, write, open, close): Do not undef.

* getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix:
(const): Do not define if HAVE_CONFIG_H; that's config.h's job.

* getopt.h: Adopt glibc 2.1.2.
1999-10-19 07:17:20 +00:00
Richard M. Stallman
4852ed0e72 (print_help_and_exit): Mention --version. 1999-08-29 19:30:53 +00:00
Karl Heuer
b4e94f425f (decode_options): Update version output.
(print_help_and_exit): Update bug report address.
1999-08-25 16:19:01 +00:00
Karl Heuer
c5fee54517 (main): Move the dynamic allocation of
system_name outside of the SERVER_HOME_DIR conditional.
1999-08-14 04:08:25 +00:00
Karl Heuer
0343a01795 (main, both versions): Use quote_file_name on cwd. 1999-04-29 20:26:46 +00:00
Richard M. Stallman
5f32a7128b (xmalloc): Fix previous change. 1999-01-25 23:43:20 +00:00
Richard M. Stallman
5497dfdb4b (xmalloc): Declare to return long. 1999-01-25 01:34:34 +00:00
Richard M. Stallman
a2b3f2b55c (main): Eliminate arbitrary limit on length of system_name.
(xmalloc): Define unconditionally.
1999-01-16 21:45:10 +00:00
Richard M. Stallman
5fb29af43c (main): Null-terminate system_name. 1998-10-10 21:20:22 +00:00
Dave Love
79f13bba7d Move inclusion of unistd.h to top, else fails on
Irix6, at least.
1998-04-08 17:31:45 +00:00
Andreas Schwab
7f3bff3e4c Include <stdlib.h> and <unistd.h> if available.
Don't declare geteuid.
(print_help_and_exit): Change return type to void.  Forward
declare it.
1998-04-06 10:13:46 +00:00
Richard M. Stallman
bd25266244 [HAVE_SYSVIPC]: Include errno.h, as in the other case.
(main) [!BSD_SYSTEM]: Fix error message for getcwd failure.
1997-08-27 20:08:59 +00:00
Richard M. Stallman
0c76956f83 [C_ALLOCA] (xmalloc): New function. 1997-07-09 19:20:34 +00:00
Karl Heuer
e397a0172f Replaced all BSD with BSD_SYSTEM. 1996-09-17 02:37:17 +00:00
Richard M. Stallman
749ae7700e (longopts): Change nowait to no-wait.
(print_help_and_exit): Fix option name; upcase metavars.
1996-09-10 02:00:27 +00:00
Richard M. Stallman
f1db6a73ef (quote_file_name): Quote with &, not \.
Quote `-' only at start of file name.  Terminate the value string.
1996-09-02 17:43:32 +00:00
Richard M. Stallman
5212210c8f (quote_file_name): New function.
(main, both versions): Use quote_file_name.
(decode_options): Don't return a value.
(main, both versions): Use optind.
Don't check for -nowait here.
1996-09-02 00:05:56 +00:00
Richard M. Stallman
8f9aaa0a81 (decode_options): New function.
(main, both versions): Call decode_options.
(print_help_and_exit): New function.
(VERSION): New macro
1996-09-01 18:25:21 +00:00
Richard M. Stallman
292d74a338 (both versions): Handle -nowait and --nowait by sending data to the server. 1996-08-31 16:25:21 +00:00
Richard M. Stallman
23a7488dea (main) [HAVE_SOCKETS]: Use two separate stdio
streams, one for sending and one for reading the reply.
1996-07-23 14:18:34 +00:00
Karl Heuer
dc3c30fec0 (main, both definitions): Print a newline for normal termination. 1996-02-21 20:53:01 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Richard M. Stallman
26396b1bda (main): Add argv[0] to an error message. 1995-04-18 20:50:19 +00:00
Karl Heuer
18a2fa9174 (main): Improve error handling. 1995-04-14 02:10:52 +00:00
Richard M. Stallman
1e523e3da8 Test NO_SOCKETS_IN_FILE_SYSTEM. 1995-04-11 01:44:46 +00:00
Richard M. Stallman
7e1251a15e [Berkeley sockets version] (main): Declare getcwd. 1995-04-07 01:01:25 +00:00
Richard M. Stallman
ee6a193c4c Use BSD sockets whenever available, even if HAVE_SYSVIPC.
(main): Use getcwd if not BSD.
1995-03-15 23:31:02 +00:00
Richard M. Stallman
b135a7cf0b [HAVE_SYSVIPC]: Include sys/utsname.h.
(main): If socket/mqueue name is in home dir, add in the host name.
Rename .emacs_server to .emacs-server-....

[!HAVE_SYSVIPC] (main): Fix error message diction.
1994-12-07 07:39:23 +00:00
David J. MacKenzie
340ff9deae Eliminate some -Wall warnings. 1994-10-12 20:21:51 +00:00
Richard M. Stallman
defb80d7ad (main): New local var progname saves argv[0]. 1994-07-27 17:59:03 +00:00
Richard M. Stallman
cd33a5a086 (main): Don't actually modify argv[0]. Modify a copy instead. 1994-07-26 19:56:03 +00:00
Richard M. Stallman
1518a9eb45 (main) [HAVE_SYSVIPC]: Make msgp->mtext longer if necessary.
On HPUX, error if it's more than 512 chars.
1994-03-05 21:42:57 +00:00
Roland McGrath
2771160004 [! HAVE_STRERROR] (strerror): Define the function. 1994-01-08 22:27:30 +00:00
Roland McGrath
92af894ffd Don't declare sys_errlist; declare strerror instead.
(main): Call strerror instead of using sys_errlist.
1994-01-08 21:43:57 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Jim Blandy
4e23f2ba8b * emacsserver.c (main): When we're passing a `struct sockaddr_un'
to bind or accept, cast the pointer, to avoid warnings on systems
	which declare prototypes for this.
	* emacsclient.c (main): Same.
1993-06-09 12:45:26 +00:00
Richard M. Stallman
61a93162c6 entered into RCS 1992-08-22 07:10:23 +00:00