aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-01-12 15:50:33 +0000
committerEli Zaretskii2008-01-12 15:50:33 +0000
commit0ebec7d35c363197865d0d4ba7fdfb9eda221b3b (patch)
tree127618b0577ab4c110e46454f3242fbc6579f155
parentbb9f794856ee92c7e86d840996074df905f7515b (diff)
downloademacs-0ebec7d35c363197865d0d4ba7fdfb9eda221b3b.tar.gz
emacs-0ebec7d35c363197865d0d4ba7fdfb9eda221b3b.zip
(decode_options) [WINDOWSNT]: Don't use the value of DISPLAY in the
environment. Don't support -d. (print_help_and_exit) [WINDOWSNT]: Don't show the --display option. (longopts) [WINDOWSNT]: Remove --display.
-rw-r--r--lib-src/ChangeLog7
-rw-r--r--lib-src/emacsclient.c12
2 files changed, 17 insertions, 2 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index c7c6d3076cc..07d73545468 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,10 @@
12008-01-12 Eli Zaretskii <eliz@gnu.org>
2
3 * emacsclient.c (decode_options) [WINDOWSNT]: Don't use the value
4 of DISPLAY in the environment. Don't support -d.
5 (print_help_and_exit) [WINDOWSNT]: Don't show the --display option.
6 (longopts) [WINDOWSNT]: Remove --display.
7
12008-01-10 Chong Yidong <cyd@stupidchicken.com> 82008-01-10 Chong Yidong <cyd@stupidchicken.com>
2 9
3 * pop.c (pop_stat, pop_last): Check validity of string-to-integer 10 * pop.c (pop_stat, pop_last): Check validity of string-to-integer
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 4fcd3398bd2..568b6c18119 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -170,7 +170,9 @@ struct option longopts[] =
170 { "socket-name", required_argument, NULL, 's' }, 170 { "socket-name", required_argument, NULL, 's' },
171#endif 171#endif
172 { "server-file", required_argument, NULL, 'f' }, 172 { "server-file", required_argument, NULL, 'f' },
173#ifndef WINDOWSNT
173 { "display", required_argument, NULL, 'd' }, 174 { "display", required_argument, NULL, 'd' },
175#endif
174 { 0, 0, 0, 0 } 176 { 0, 0, 0, 0 }
175}; 177};
176 178
@@ -477,9 +479,11 @@ decode_options (argc, argv)
477 char **argv; 479 char **argv;
478{ 480{
479 alternate_editor = egetenv ("ALTERNATE_EDITOR"); 481 alternate_editor = egetenv ("ALTERNATE_EDITOR");
482#ifndef WINDOWSNT
480 display = egetenv ("DISPLAY"); 483 display = egetenv ("DISPLAY");
481 if (display && strlen (display) == 0) 484 if (display && strlen (display) == 0)
482 display = NULL; 485 display = NULL;
486#endif
483 487
484 while (1) 488 while (1)
485 { 489 {
@@ -515,9 +519,11 @@ decode_options (argc, argv)
515 server_file = optarg; 519 server_file = optarg;
516 break; 520 break;
517 521
522#ifndef WINDOWSNT
518 case 'd': 523 case 'd':
519 display = optarg; 524 display = optarg;
520 break; 525 break;
526#endif
521 527
522 case 'n': 528 case 'n':
523 nowait = 1; 529 nowait = 1;
@@ -594,8 +600,10 @@ The following OPTIONS are accepted:\n\
594-c, --create-frame Create a new frame instead of trying to\n\ 600-c, --create-frame Create a new frame instead of trying to\n\
595 use the current Emacs frame\n\ 601 use the current Emacs frame\n\
596-e, --eval Evaluate the FILE arguments as ELisp expressions\n\ 602-e, --eval Evaluate the FILE arguments as ELisp expressions\n\
597-n, --no-wait Don't wait for the server to return\n\ 603-n, --no-wait Don't wait for the server to return\n"
598-d, --display=DISPLAY Visit the file in the given display\n" 604#ifndef WINDOWSNT
605"-d, --display=DISPLAY Visit the file in the given display\n"
606#endif
599#ifndef NO_SOCKETS_IN_FILE_SYSTEM 607#ifndef NO_SOCKETS_IN_FILE_SYSTEM
600"-s, --socket-name=FILENAME\n\ 608"-s, --socket-name=FILENAME\n\
601 Set filename of the UNIX socket for communication\n" 609 Set filename of the UNIX socket for communication\n"