aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorJoakim Verona2013-07-14 11:04:49 +0200
committerJoakim Verona2013-07-14 11:04:49 +0200
commit0bb9bb0841d89fff09820a57369df4cb01b16b43 (patch)
tree832bf9fa8415eef0ce464d22b3ee1300cfa90bb1 /lib-src/emacsclient.c
parent3718127221fbbc31f8ebd027ab7c95403dbe9118 (diff)
parent3af1c8684ed6e48fbc21481d129e9aa164752c6e (diff)
downloademacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.tar.gz
emacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.zip
Merge branch 'trunk' into xwidget
Conflicts: src/xdisp.c
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r--lib-src/emacsclient.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 898e8d69b07..74ccfa26259 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -630,7 +630,7 @@ print_help_and_exit (void)
630 Please try to preserve them; otherwise the output is very hard to read 630 Please try to preserve them; otherwise the output is very hard to read
631 when using emacsclientw. */ 631 when using emacsclientw. */
632 message (FALSE, 632 message (FALSE,
633 "Usage: %s [OPTIONS] FILE...\n\ 633 "Usage: %s [OPTIONS] FILE...\n%s%s%s", progname, "\
634Tell the Emacs server to visit the specified files.\n\ 634Tell the Emacs server to visit the specified files.\n\
635Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.\n\ 635Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.\n\
636\n\ 636\n\
@@ -640,6 +640,7 @@ The following OPTIONS are accepted:\n\
640-nw, -t, --tty Open a new Emacs frame on the current terminal\n\ 640-nw, -t, --tty Open a new Emacs frame on the current terminal\n\
641-c, --create-frame Create a new frame instead of trying to\n\ 641-c, --create-frame Create a new frame instead of trying to\n\
642 use the current Emacs frame\n\ 642 use the current Emacs frame\n\
643", "\
643-F ALIST, --frame-parameters=ALIST\n\ 644-F ALIST, --frame-parameters=ALIST\n\
644 Set the parameters of a new frame\n\ 645 Set the parameters of a new frame\n\
645-e, --eval Evaluate the FILE arguments as ELisp expressions\n\ 646-e, --eval Evaluate the FILE arguments as ELisp expressions\n\
@@ -647,6 +648,7 @@ The following OPTIONS are accepted:\n\
647-q, --quiet Don't display messages on success\n\ 648-q, --quiet Don't display messages on success\n\
648-d DISPLAY, --display=DISPLAY\n\ 649-d DISPLAY, --display=DISPLAY\n\
649 Visit the file in the given display\n\ 650 Visit the file in the given display\n\
651", "\
650--parent-id=ID Open in parent window ID, via XEmbed\n" 652--parent-id=ID Open in parent window ID, via XEmbed\n"
651#ifndef NO_SOCKETS_IN_FILE_SYSTEM 653#ifndef NO_SOCKETS_IN_FILE_SYSTEM
652"-s SOCKET, --socket-name=SOCKET\n\ 654"-s SOCKET, --socket-name=SOCKET\n\
@@ -661,7 +663,7 @@ The following OPTIONS are accepted:\n\
661 mode and try connecting again\n" 663 mode and try connecting again\n"
662#endif /* not WINDOWSNT */ 664#endif /* not WINDOWSNT */
663"\n\ 665"\n\
664Report bugs with M-x report-emacs-bug.\n", progname); 666Report bugs with M-x report-emacs-bug.\n");
665 exit (EXIT_SUCCESS); 667 exit (EXIT_SUCCESS);
666} 668}
667 669
@@ -1509,7 +1511,10 @@ start_daemon_and_retry_set_socket (void)
1509 { 1511 {
1510 char emacs[] = "emacs"; 1512 char emacs[] = "emacs";
1511 char daemon_option[] = "--daemon"; 1513 char daemon_option[] = "--daemon";
1512 char *d_argv[] = {emacs, daemon_option, 0 }; 1514 char *d_argv[3];
1515 d_argv[0] = emacs;
1516 d_argv[1] = daemon_option;
1517 d_argv[2] = 0;
1513 if (socket_name != NULL) 1518 if (socket_name != NULL)
1514 { 1519 {
1515 /* Pass --daemon=socket_name as argument. */ 1520 /* Pass --daemon=socket_name as argument. */