aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in9
-rw-r--r--src/emacs.c9
2 files changed, 17 insertions, 1 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 1bc9a76cde5..a2221708afa 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -56,6 +56,7 @@ lwlibdir = ../lwlib
56config_h = config.h $(srcdir)/conf_post.h 56config_h = config.h $(srcdir)/conf_post.h
57 57
58bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT) 58bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT)
59temacs_exe = ../src/temacs$(EXEEXT)
59 60
60## ns-app if HAVE_NS, else empty. 61## ns-app if HAVE_NS, else empty.
61OTHER_FILES = @OTHER_FILES@ 62OTHER_FILES = @OTHER_FILES@
@@ -745,10 +746,18 @@ VCSWITNESS =
745$(lispsource)/loaddefs.el: $(VCSWITNESS) | bootstrap-emacs$(EXEEXT) 746$(lispsource)/loaddefs.el: $(VCSWITNESS) | bootstrap-emacs$(EXEEXT)
746 $(MAKE) -C ../lisp autoloads EMACS="$(bootstrap_exe)" 747 $(MAKE) -C ../lisp autoloads EMACS="$(bootstrap_exe)"
747 748
749temacs-loaddefs:
750 $(MAKE) -C ../lisp temacs-loaddefs
751
752.PHONY: temacs-loaddefs
753
748## Dump an Emacs executable named bootstrap-emacs containing the 754## Dump an Emacs executable named bootstrap-emacs containing the
749## files from loadup.el in source form. 755## files from loadup.el in source form.
750bootstrap-emacs$(EXEEXT): temacs$(EXEEXT) 756bootstrap-emacs$(EXEEXT): temacs$(EXEEXT)
751 $(MAKE) -C ../lisp update-subdirs 757 $(MAKE) -C ../lisp update-subdirs
758 if test ! -f $(lispsource)/loaddefs.el; then \
759 $(MAKE) temacs-loaddefs; \
760 fi
752ifeq ($(CANNOT_DUMP),yes) 761ifeq ($(CANNOT_DUMP),yes)
753 ln -f temacs$(EXEEXT) $@ 762 ln -f temacs$(EXEEXT) $@
754else 763else
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,