Appendix IV - Manual Dumping

This appendix is to help out those who are really tight on disk space. The process of dumping EMACS, as described in the body of this document, makes use of a program called ``dumpemac.ttp''. This program is called two times, each time reading in the file ``temacs'' and producing a file called ``xemacs.<x>'', where <x> is either a ``1'' or a ``2'' depending on which dump it is doing. After ``dumpemac.ttp'' finishes producing these two memory dumps, it calls a program called ``dumpfix.ttp'' that reads in the two memory dumps, ``xemacs.1'' and ``xemacs.2'' to produce the final executable file ``emacs.ttp''. The only problem with using ``dumpemac.ttp'' is that it requires an additional one and a half megabytes of storage (roughly 600k for ``xemacs.1'' and ``xemacs.2'' and a little less for ``emacs.ttp'') in order to create EMACS.

It is possible to dump EMACS manually with as little as 700k of free space on your hard disk, however one must perform all the above steps manually. Here is an outline of how to do proceed:

  1. Change directory to ``e-bin/''.
  2. Execute the command ``.\temacs -batch -l loadup.el dump'', this will produce a file roughly 600k in size called ``xemacs''.
  3. Rename the file ``xemacs'' to ``xemacs.1'' and place it on a blank diskette. It may now be deleted from your hard disk.
  4. Start a new copy of whatever shell you are using. Yes, this sounds strange, but you must do it.
  5. Repeat step 2, producing another ``xemacs'' file.
  6. Rename the file ``xemacs'' to ``xemacs.2''. You should now move the file ``temacs'' to another blank disk as it is not needed any more. It is not a good idea to delete the file ``temacs'' as you never know when you may want to again dump an EMACS.
  7. Now exit from the second shell you started in step 4.
  8. Execute the command ``.\dumpfix -n a:\xemacs.1 xemacs.2 emacs.ttp''. This will produce a fully dumped version of EMACS called ``emacs.ttp''.
  9. Remove the file ``xemacs.2'' from you hard disk, and now you are done.
  10. Go to the store and buy a larger hard disk.