aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/emacsclient.c
Commit message (Collapse)AuthorAgeFilesLines
* (quote_file_name): Pass COPY thru %s to output it.Richard M. Stallman2004-07-171-1/+1
|
* Throughout, replace 0 destined for `exit' arg with `EXIT_SUCCESS'.Thien-Thi Nguyen2004-05-081-14/+13
| | | | | Likewise, replace 1 with `EXIT_FAILURE'. (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
* (decode_options): Fix handling of alternate editor.Stefan Monnier2004-02-051-2/+2
|
* (main): Don't use the hostname in the socket name.Stefan Monnier2004-01-271-31/+14
| | | | Look for relative socket names in the /tmp dir rather than in cwd.
* (main): Restore errno from saved_errno,Richard M. Stallman2004-01-241-0/+4
| | | | so the error message comes from socket_status.
* (main): Stop if socket name too long.Stefan Monnier2004-01-201-6/+20
| | | | | Only try su-fallback if the socket name was not explicit. Check socket name length in su-fallback case as well.
* (main): Save errno from socket_status.Andreas Schwab2004-01-081-2/+5
|
* (main): Fix socket name when using another user.Andreas Schwab2004-01-041-1/+1
|
* Comment change.Richard M. Stallman2003-10-131-3/+2
|
* (quote_file_name): Print the result instead ofEli Zaretskii2003-09-281-18/+44
| | | | | | returning it. Fix the return type accordingly. (main): Under --eval, don't fail if left with additional arguments after decoding options. Quote file names.
* Comment change.Richard M. Stallman2003-09-191-1/+1
|
* (socket_name): New variable.Richard M. Stallman2003-09-121-2/+23
| | | | | | | (longopts, decode_options, print_help_and_exit): Handle --socket-name argument. (main): Use socket_name.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (main): Fix having macros in a printf statement.Juanma Barranquero2003-07-281-4/+4
|
* (main): Use new safe location for socket.Stefan Monnier2003-04-121-1/+1
|
* (print_help_and_exit): Print to stdout. Exit successfully. Added some blankJuanma Barranquero2003-03-121-8/+19
| | | | | | | lines for readability. (decode_options): Don't call print_help_and_exit in default case. Print version information to stdout. (main): Don't call print_help_and_exit.
* (main): Tell user how to start server within Emacs if socket could notStephen Eglen2002-12-021-1/+2
| | | | be found.
* (main): Test HAVE_GETCWD rather than BSD_SYSTEM.Richard M. Stallman2002-12-021-6/+6
|
* Remove reference to SERVER_HOME_DIR completely.Markus Rost2002-10-011-3/+0
|
* (main): Always use /tmp and non-qualified hostname.Stefan Monnier2002-09-271-11/+6
|
* Remove SYSV support.Stefan Monnier2002-09-271-198/+52
| | | | | | | | (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.
* (quote_file_name): Quote \n.Stefan Monnier2002-09-181-10/+22
| | | | (main): Print a final \n when needed.
* Include <config.h>.Pavel Janík2001-12-291-1/+1
|
* Include "config.h", not <../src/config.h>.Pavel Janík2001-12-191-15/+17
| | | | | (main): Parenthesize assignment when used as truth value to prevent gcc warnings.
* (main): Cast isdigit() argument to unsigned char.Gerd Moellmann2001-10-091-1/+1
| | | | From Hallvard B Furuseth <[email protected]>.
* (print_help_and_exit): Fix help message forGerd Moellmann2001-07-171-3/+5
| | | | | | | +LINE:COLUMN option. (main): Add support for +LINE:COLUMN command line argument.
* (fail): Don't return a value.Dave Love2001-04-051-2/+3
| | | | (main): Cast uid values for sprintf.
* (fail, main): Don't use implicit int return type.Gerd Moellmann2001-04-031-1/+4
|
* (main): Remove unused local variable statbfr.Eli Zaretskii2001-01-021-2/+4
| | | | | (main) <homedir>: Make its declaration conditional on SERVER_HOME_DIR, to avoid compiler warnings.
* (socket_status): New function.Gerd Moellmann2000-01-281-15/+76
| | | | | (main): if $LOGNAME or $USER exist and differ from our euid, look for a socket based on the UID associated with the name.
* Add option -a EDITOR and environment variableGerd Moellmann2000-01-121-15/+50
| | | | ALTERNATE_EDITOR. Exec this editor if we fail to contact Emacs.
* Add support for large files. Merge glibc 2.1.2.Paul Eggert1999-10-191-8/+1
| | | | | | | | | | | | | | | | | | * 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.
* (print_help_and_exit): Mention --version.Richard M. Stallman1999-08-291-0/+3
|
* (decode_options): Update version output.Karl Heuer1999-08-251-2/+2
| | | | (print_help_and_exit): Update bug report address.
* (main): Move the dynamic allocation ofKarl Heuer1999-08-141-3/+6
| | | | system_name outside of the SERVER_HOME_DIR conditional.
* (main, both versions): Use quote_file_name on cwd.Karl Heuer1999-04-291-4/+5
|
* (xmalloc): Fix previous change.Richard M. Stallman1999-01-251-1/+1
|
* (xmalloc): Declare to return long.Richard M. Stallman1999-01-251-1/+1
|
* (main): Eliminate arbitrary limit on length of system_name.Richard M. Stallman1999-01-161-6/+17
| | | | (xmalloc): Define unconditionally.
* (main): Null-terminate system_name.Richard M. Stallman1998-10-101-0/+2
|
* Move inclusion of unistd.h to top, else fails onDave Love1998-04-081-3/+3
| | | | Irix6, at least.
* Include <stdlib.h> and <unistd.h> if available.Andreas Schwab1998-04-061-1/+9
| | | | | | Don't declare geteuid. (print_help_and_exit): Change return type to void. Forward declare it.
* [HAVE_SYSVIPC]: Include errno.h, as in the other case.Richard M. Stallman1997-08-271-1/+14
| | | | (main) [!BSD_SYSTEM]: Fix error message for getcwd failure.
* [C_ALLOCA] (xmalloc): New function.Richard M. Stallman1997-07-091-0/+17
|
* Replaced all BSD with BSD_SYSTEM.Karl Heuer1996-09-171-2/+2
|
* (longopts): Change nowait to no-wait.Richard M. Stallman1996-09-101-3/+3
| | | | (print_help_and_exit): Fix option name; upcase metavars.
* (quote_file_name): Quote with &, not \.Richard M. Stallman1996-09-021-5/+6
| | | | Quote `-' only at start of file name. Terminate the value string.
* (quote_file_name): New function.Richard M. Stallman1996-09-021-41/+58
| | | | | | | (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.
* (decode_options): New function.Richard M. Stallman1996-09-011-16/+98
| | | | | | (main, both versions): Call decode_options. (print_help_and_exit): New function. (VERSION): New macro
* (both versions): Handle -nowait and --nowait by sending data to the server.Richard M. Stallman1996-08-311-4/+33
|