aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 1868961090d..b07c15fb2cb 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -670,6 +670,7 @@ main (int argc, char **argv)
670 bool dumping; 670 bool dumping;
671 int skip_args = 0; 671 int skip_args = 0;
672 bool no_loadup = false; 672 bool no_loadup = false;
673 bool load_temacs = false;
673 char *junk = 0; 674 char *junk = 0;
674 char *dname_arg = 0; 675 char *dname_arg = 0;
675#ifdef DAEMON_MUST_EXEC 676#ifdef DAEMON_MUST_EXEC
@@ -1251,6 +1252,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1251 no_loadup 1252 no_loadup
1252 = argmatch (argv, argc, "-nl", "--no-loadup", 6, NULL, &skip_args); 1253 = argmatch (argv, argc, "-nl", "--no-loadup", 6, NULL, &skip_args);
1253 1254
1255 load_temacs
1256 = argmatch (argv, argc, "-lt", "--load-temacs", 6, NULL, &skip_args);
1257
1254 no_site_lisp 1258 no_site_lisp
1255 = argmatch (argv, argc, "-nsl", "--no-site-lisp", 11, NULL, &skip_args); 1259 = argmatch (argv, argc, "-nsl", "--no-site-lisp", 11, NULL, &skip_args);
1256 1260
@@ -1651,8 +1655,11 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1651 Vtop_level = list2 (Qload, build_unibyte_string (file)); 1655 Vtop_level = list2 (Qload, build_unibyte_string (file));
1652 } 1656 }
1653 /* Unless next switch is -nl, load "loadup.el" first thing. */ 1657 /* Unless next switch is -nl, load "loadup.el" first thing. */
1654 if (! no_loadup) 1658 if (! (no_loadup || load_temacs))
1655 Vtop_level = list2 (Qload, build_string ("loadup.el")); 1659 Vtop_level = list2 (Qload, build_string ("loadup.el"));
1660
1661 if (load_temacs)
1662 Vtop_level = list2 (Qload, build_string ("temacs.el"));
1656 } 1663 }
1657 1664
1658 /* Set up for profiling. This is known to work on FreeBSD, 1665 /* Set up for profiling. This is known to work on FreeBSD,