Path: utzoo!attcan!uunet!convex!texsun!texbell!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!briscoe-duke From: briscoe-duke@CS.YALE.EDU (Duke Briscoe) Newsgroups: comp.emacs Subject: Re: Saving/Restoring state in GNU Emacs 18.55 Message-ID: <25569@cs.yale.edu> Date: 15 Jul 90 02:14:49 GMT References: <9474@uswat.UUCP> <668@venice.SEDD.TRW.COM> Sender: news@cs.yale.edu Reply-To: briscoe-duke@CS.YALE.EDU (Duke Briscoe) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 31 In article <668@venice.SEDD.TRW.COM> baur@venice.SEDD.TRW.COM (Steven L. Baur) writes: >From article <9474@uswat.UUCP>, by naim@uswat.uswest.com (Naim Abdullah): >> I am currently using a machine that sometimes crashes and destroys >> my carefully built state in GNU emacs (all the files and buffer >> that I am editing). > >What you definitely want to use is saveconf.el, but that is not much >help against system crashes (your state information doesn't get written >out). Your best hope is to use saveconf, exit emacs periodically, and ^^^^^^^^^^^^^^^^^^^^^^^ >restart it. Emacs is a marvelous program, and does many wonderful things, >but it cannot protect you completely against a system crash. Maybe >someone wants to add code to saveconf.el to periodically write out window >state? > >-- >steve baur@venice.SEDD.TRW.COM You don't have to exit GNU emacs to get the saveconf.el code to save your buffer configuration. Just use the command save-context. This command writes out a file which tells what files you were looking at, and what point in the files. The command recover-context will read in all the files and put point back where it was. I've occasionally found it useful to rename the saved info file as a way of documenting all the relevant files of some project I'm working on. This is useful for a large project, particularly reading someone else's code, when I might go back to working on that stuff after doing other things for a few months. Duke