Dan Nicolaescu
2381d38d0a
* ebrowse.c (usage, version): Mark as NO_RETURN.
...
* 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.
2006-07-18 16:33:45 +00:00
Thien-Thi Nguyen
273dc16aaf
Update years in copyright notice; nfc.
2006-02-06 11:28:28 +00:00
Thien-Thi Nguyen
92b47a4a99
Update years in copyright notice; nfc.
2005-08-07 10:56:27 +00:00
Lute Kamstra
364c38d3af
Update FSF's address.
2005-07-04 15:47:28 +00:00
Jan Djärv
5b9562c3df
* emacsclient.c: Avoid expansion of getcwd when defined as a macro.
2005-03-18 20:44:50 +00:00
Richard M. Stallman
cf0fad845a
(quote_file_name): Pass COPY thru %s to output it.
2004-07-17 14:27:24 +00:00
Thien-Thi Nguyen
65396510c3
Throughout, replace 0 destined for exit' arg with
EXIT_SUCCESS'.
...
Likewise, replace 1 with `EXIT_FAILURE'.
(main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
2004-05-08 15:26:33 +00:00
Stefan Monnier
b6b6d6d201
(decode_options): Fix handling of alternate editor.
2004-02-05 00:02:04 +00:00
Stefan Monnier
0734b0d08d
(main): Don't use the hostname in the socket name.
...
Look for relative socket names in the /tmp dir rather than in cwd.
2004-01-27 23:07:13 +00:00
Richard M. Stallman
293f9f2a99
(main): Restore errno from saved_errno,
...
so the error message comes from socket_status.
2004-01-24 21:57:57 +00:00
Stefan Monnier
5c9659d3f6
(main): Stop if socket name too long.
...
Only try su-fallback if the socket name was not explicit.
Check socket name length in su-fallback case as well.
2004-01-20 23:25:33 +00:00
Andreas Schwab
152b6e830f
(main): Save errno from socket_status.
2004-01-08 12:20:43 +00:00
Andreas Schwab
e822882420
(main): Fix socket name when using another user.
2004-01-04 16:42:06 +00:00
Richard M. Stallman
a4cf2096d7
Comment change.
2003-10-13 19:41:26 +00:00
Eli Zaretskii
872093579a
(quote_file_name): Print the result instead of
...
returning it. Fix the return type accordingly.
(main): Under --eval, don't fail if left with additional
arguments after decoding options. Quote file names.
2003-09-28 08:24:56 +00:00
Richard M. Stallman
3db926beda
Comment change.
2003-09-19 14:27:47 +00:00
Richard M. Stallman
254107e497
(socket_name): New variable.
...
(longopts, decode_options, print_help_and_exit):
Handle --socket-name argument.
(main): Use socket_name.
2003-09-12 00:48:03 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Juanma Barranquero
bb5618fe38
(main): Fix having macros in a printf statement.
2003-07-28 22:10:30 +00:00
Stefan Monnier
caa4df2b5d
(main): Use new safe location for socket.
2003-04-12 19:03:08 +00:00
Juanma Barranquero
20c396e841
(print_help_and_exit): Print to stdout. Exit successfully. Added some blank
...
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.
2003-03-12 21:36:29 +00:00
Stephen Eglen
45adde3246
(main): Tell user how to start server within Emacs if socket could not
...
be found.
2002-12-02 20:57:42 +00:00
Richard M. Stallman
38732dbaa3
(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
2002-12-02 16:14:35 +00:00
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