aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNoam Postavsky2017-05-29 22:13:53 -0400
committerNoam Postavsky2017-05-29 22:18:55 -0400
commit75b849294656fd92e77a2a6281ff4dceaaa38475 (patch)
tree3df43d0cc640c8f5522461be9d346530d26e3bcd /src
parent941a2e7347e3a0d393e67872e6151be8cc66d9a2 (diff)
downloademacs-75b849294656fd92e77a2a6281ff4dceaaa38475.tar.gz
emacs-75b849294656fd92e77a2a6281ff4dceaaa38475.zip
Rename '--new-daemon' to 'fg-daemon' and '--old-daemon' to '--bg-daemon'
* doc/emacs/cmdargs.texi (Initial Options): * doc/lispref/os.texi (Startup Summary): * etc/NEWS: * etc/emacs.service: * src/emacs.c (main): * src/lisp.h: Rename '--new-daemon' to 'fg-daemon' and '--old-daemon' to '--bg-daemon'.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c18
-rw-r--r--src/lisp.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 4477f5bc017..6ed16e80372 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -219,8 +219,8 @@ Initialization options:\n\
219 "\ 219 "\
220--batch do not do interactive display; implies -q\n\ 220--batch do not do interactive display; implies -q\n\
221--chdir DIR change to directory DIR\n\ 221--chdir DIR change to directory DIR\n\
222--daemon, --old-daemon[=NAME] start a (named) server in the background\n\ 222--daemon, --bg-daemon[=NAME] start a (named) server in the background\n\
223--new-daemon[=NAME] start a (named) server in the foreground\n\ 223--fg-daemon[=NAME] start a (named) server in the foreground\n\
224--debug-init enable Emacs Lisp debugger for init file\n\ 224--debug-init enable Emacs Lisp debugger for init file\n\
225--display, -d DISPLAY use X server DISPLAY\n\ 225--display, -d DISPLAY use X server DISPLAY\n\
226", 226",
@@ -991,15 +991,15 @@ main (int argc, char **argv)
991 991
992 int sockfd = -1; 992 int sockfd = -1;
993 993
994 if (argmatch (argv, argc, "-new-daemon", "--new-daemon", 10, NULL, &skip_args) 994 if (argmatch (argv, argc, "-fg-daemon", "--fg-daemon", 10, NULL, &skip_args)
995 || argmatch (argv, argc, "-new-daemon", "--new-daemon", 10, &dname_arg, &skip_args)) 995 || argmatch (argv, argc, "-fg-daemon", "--fg-daemon", 10, &dname_arg, &skip_args))
996 { 996 {
997 daemon_type = 1; /* foreground */ 997 daemon_type = 1; /* foreground */
998 } 998 }
999 else if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args) 999 else if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args)
1000 || argmatch (argv, argc, "-daemon", "--daemon", 5, &dname_arg, &skip_args) 1000 || argmatch (argv, argc, "-daemon", "--daemon", 5, &dname_arg, &skip_args)
1001 || argmatch (argv, argc, "-old-daemon", "--old-daemon", 10, NULL, &skip_args) 1001 || argmatch (argv, argc, "-bg-daemon", "--bg-daemon", 10, NULL, &skip_args)
1002 || argmatch (argv, argc, "-old-daemon", "--old-daemon", 10, &dname_arg, &skip_args)) 1002 || argmatch (argv, argc, "-bg-daemon", "--bg-daemon", 10, &dname_arg, &skip_args))
1003 { 1003 {
1004 daemon_type = 2; /* background */ 1004 daemon_type = 2; /* background */
1005 } 1005 }
@@ -1114,7 +1114,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1114 char fdStr[80]; 1114 char fdStr[80];
1115 int fdStrlen = 1115 int fdStrlen =
1116 snprintf (fdStr, sizeof fdStr, 1116 snprintf (fdStr, sizeof fdStr,
1117 "--old-daemon=\n%d,%d\n%s", daemon_pipe[0], 1117 "--bg-daemon=\n%d,%d\n%s", daemon_pipe[0],
1118 daemon_pipe[1], dname_arg ? dname_arg : ""); 1118 daemon_pipe[1], dname_arg ? dname_arg : "");
1119 1119
1120 if (! (0 <= fdStrlen && fdStrlen < sizeof fdStr)) 1120 if (! (0 <= fdStrlen && fdStrlen < sizeof fdStr))
@@ -1711,8 +1711,8 @@ static const struct standard_args standard_args[] =
1711 { "-batch", "--batch", 100, 0 }, 1711 { "-batch", "--batch", 100, 0 },
1712 { "-script", "--script", 100, 1 }, 1712 { "-script", "--script", 100, 1 },
1713 { "-daemon", "--daemon", 99, 0 }, 1713 { "-daemon", "--daemon", 99, 0 },
1714 { "-old-daemon", "--old-daemon", 99, 0 }, 1714 { "-bg-daemon", "--bg-daemon", 99, 0 },
1715 { "-new-daemon", "--new-daemon", 99, 0 }, 1715 { "-fg-daemon", "--fg-daemon", 99, 0 },
1716 { "-help", "--help", 90, 0 }, 1716 { "-help", "--help", 90, 0 },
1717 { "-nl", "--no-loadup", 70, 0 }, 1717 { "-nl", "--no-loadup", 70, 0 },
1718 { "-nsl", "--no-site-lisp", 65, 0 }, 1718 { "-nsl", "--no-site-lisp", 65, 0 },
diff --git a/src/lisp.h b/src/lisp.h
index 7290386b255..7b8f1e754d8 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4167,7 +4167,7 @@ extern bool no_site_lisp;
4167extern bool build_details; 4167extern bool build_details;
4168 4168
4169#ifndef WINDOWSNT 4169#ifndef WINDOWSNT
4170/* 0 not a daemon, 1 new-style (foreground), 2 old-style (background). */ 4170/* 0 not a daemon, 1 foreground daemon, 2 background daemon. */
4171extern int daemon_type; 4171extern int daemon_type;
4172#define IS_DAEMON (daemon_type != 0) 4172#define IS_DAEMON (daemon_type != 0)
4173#define DAEMON_RUNNING (daemon_type >= 0) 4173#define DAEMON_RUNNING (daemon_type >= 0)