diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 255ed8d442a..7883cf3b085 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-10-13 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * emacsclient.c (longopts, print_help_and_exit): Add -nw. | ||
| 4 | (decode_options): Use getopt_long_only. | ||
| 5 | |||
| 1 | 2008-09-30 Eli Zaretskii <eliz@gnu.org> | 6 | 2008-09-30 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove ccl.elc and | 8 | * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove ccl.elc and |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 93e36683f46..d4a7ad3d095 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -156,6 +156,7 @@ struct option longopts[] = | |||
| 156 | { "help", no_argument, NULL, 'H' }, | 156 | { "help", no_argument, NULL, 'H' }, |
| 157 | { "version", no_argument, NULL, 'V' }, | 157 | { "version", no_argument, NULL, 'V' }, |
| 158 | { "tty", no_argument, NULL, 't' }, | 158 | { "tty", no_argument, NULL, 't' }, |
| 159 | { "nw", no_argument, NULL, 't' }, | ||
| 159 | { "create-frame", no_argument, NULL, 'c' }, | 160 | { "create-frame", no_argument, NULL, 'c' }, |
| 160 | { "alternate-editor", required_argument, NULL, 'a' }, | 161 | { "alternate-editor", required_argument, NULL, 'a' }, |
| 161 | #ifndef NO_SOCKETS_IN_FILE_SYSTEM | 162 | #ifndef NO_SOCKETS_IN_FILE_SYSTEM |
| @@ -474,7 +475,7 @@ decode_options (argc, argv) | |||
| 474 | 475 | ||
| 475 | while (1) | 476 | while (1) |
| 476 | { | 477 | { |
| 477 | int opt = getopt_long (argc, argv, | 478 | int opt = getopt_long_only (argc, argv, |
| 478 | #ifndef NO_SOCKETS_IN_FILE_SYSTEM | 479 | #ifndef NO_SOCKETS_IN_FILE_SYSTEM |
| 479 | "VHnea:s:f:d:tc", | 480 | "VHnea:s:f:d:tc", |
| 480 | #else | 481 | #else |
| @@ -601,7 +602,7 @@ Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.\n\ | |||
| 601 | The following OPTIONS are accepted:\n\ | 602 | The following OPTIONS are accepted:\n\ |
| 602 | -V, --version Just print version info and return\n\ | 603 | -V, --version Just print version info and return\n\ |
| 603 | -H, --help Print this usage information message\n\ | 604 | -H, --help Print this usage information message\n\ |
| 604 | -t, --tty Open a new Emacs frame on the current terminal\n\ | 605 | -nw, -t, --tty Open a new Emacs frame on the current terminal\n\ |
| 605 | -c, --create-frame Create a new frame instead of trying to\n\ | 606 | -c, --create-frame Create a new frame instead of trying to\n\ |
| 606 | use the current Emacs frame\n\ | 607 | use the current Emacs frame\n\ |
| 607 | -e, --eval Evaluate the FILE arguments as ELisp expressions\n\ | 608 | -e, --eval Evaluate the FILE arguments as ELisp expressions\n\ |