From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Restarting Emacs? Date: Thu, 30 Jul 2009 01:13:30 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87y6q7gmt1.fsf@kobe.laptop> References: <35bb8492-cd5b-4001-bcc0-d33f2f92894f@w41g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248955425 26406 80.91.229.12 (30 Jul 2009 12:03:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2009 12:03:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 30 14:03:36 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWUMA-0005UW-NK for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 14:03:35 +0200 Original-Received: from localhost ([127.0.0.1]:50702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWUM9-0002Sl-V2 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 08:03:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) Cancel-Lock: sha1:xVL7AiSyCz16TjpnOh78cov83H4= Original-Lines: 36 Original-NNTP-Posting-Host: 77.49.248.11 Original-X-Trace: news.sunsite.dk DXC=M[; Bo:92SZOMG4[9BMmA=KYSB=nbEKnkK@BYol5e8KUOGYG:0; 0_3?No_>`WUg<`1JoJZA^dLN@mMViTG9oY`TBJc<\; ^2gEkGE2bVi9^\YXGD Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:171322 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66508 Archived-At: On Wed, 29 Jul 2009 04:53:54 -0700 (PDT), Elena wrote: > Hello, > can you make Emacs restart itself a la Firefox (for instance: after an > heavy update of initialization file)? Not really, no. At least not _exactly_ what Firefox does, AFAICT. You can, however, evaluate Lisp snippets in a *scratch* buffer as you are editing your start-up code. I often pull my `~/.gnus.el' in the *scratch* buffer; copy parts of the Lisp code; then I modify them and evaluate them in order (by typing `C-x C-e' after one or more s-exps). When everything works I save the new Lisp code in my `~/.gnus.el' file for later. Now, if what you want is some sort of `session' support in Emacs, to save a set of open buffers, and other runtime state, the `desktop' library may be useful. It is available in GNU Emacs 22 and it supports parts of what Firefox does for GNU Emacs buffers. See the manual for full details. Look for the word `desktop' in the index of the manual, and you'll quickly find this section: ,---[ C-h r i desktop RET ]-------------------------------------------- | | 51 Saving Emacs Sessions | ************************ | | Use the desktop library to save the state of Emacs from one session to | another. Once you save the Emacs "desktop"--the buffers, their file | names, major modes, buffer positions, and so on--then subsequent Emacs | sessions reload the saved desktop. | | ... | `-----------------------------------------------------------------------