aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorDan Nicolaescu2008-10-13 02:32:51 +0000
committerDan Nicolaescu2008-10-13 02:32:51 +0000
commitdc1cd5f755dc04067d7b18eb8b647df876a2ad17 (patch)
tree19ddef4c90d5a4cddcf6d427b3a0896f73efa494 /lib-src
parent5870cb7682e7b70471d86b1b0b5724aa0fe18d74 (diff)
downloademacs-dc1cd5f755dc04067d7b18eb8b647df876a2ad17.tar.gz
emacs-dc1cd5f755dc04067d7b18eb8b647df876a2ad17.zip
(longopts, print_help_and_exit): Add -nw.
(decode_options): Use getopt_long_only.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/emacsclient.c5
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 @@
12008-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
12008-09-30 Eli Zaretskii <eliz@gnu.org> 62008-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\
601The following OPTIONS are accepted:\n\ 602The 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\