From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Restarting Emacs? Date: Thu, 30 Jul 2009 03:59:22 +0200 Message-ID: References: <35bb8492-cd5b-4001-bcc0-d33f2f92894f@w41g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248919197 3159 80.91.229.12 (30 Jul 2009 01:59:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2009 01:59:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Elena Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 30 03:59:50 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 1MWKvt-00017R-Vs for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 03:59:50 +0200 Original-Received: from localhost ([127.0.0.1]:53757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWKvt-000341-Ff for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2009 21:59:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWKvZ-00033Q-2Y for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 21:59:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWKvU-00033E-LT for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 21:59:28 -0400 Original-Received: from [199.232.76.173] (port=54550 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWKvU-00033B-Ex for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 21:59:24 -0400 Original-Received: from mail-yx0-f193.google.com ([209.85.210.193]:42864) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWKvU-0003g1-2a for help-gnu-emacs@gnu.org; Wed, 29 Jul 2009 21:59:24 -0400 Original-Received: by yxe31 with SMTP id 31so2186137yxe.24 for ; Wed, 29 Jul 2009 18:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=D9YNcDfNJiX1N269XXmdnPSy9MsqZJ70PJt0qjWfYCk=; b=rXiKuz53s/bL3N/nOEpqZV2ziy4zDpDTRFrnq1Pqi6iAivexRXFsXnXClh1tB3oXLM PPSCkj0dq3/jbOSpzLW9rXInRWElnvdbKuZsW5Uk4DrjD+koJj27tRiEox43vNOBDdO6 fBg0igsfqe+fiLNuxNyiQrI9kJIM2hNwXr4VI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WzdLzht3gHxTGFsuw1vjbnZMuIE6FQOmoj45RmG0vDuqBwahp5iKysFmHwGJrEm5U0 MB7+RZ7aTh4dk5jXv08RNnUNdtLAY3UybWCmUep2NEuLTXygQCmli7zKwgonqT6Zk5Ek MJ52B31Js8IaLwfYv2HBYsUdVK8p8Bjlxk1Qw= Original-Received: by 10.100.31.17 with SMTP id e17mr757975ane.160.1248919163016; Wed, 29 Jul 2009 18:59:23 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66501 Archived-At: On Thu, Jul 30, 2009 at 2:21 AM, Lennart Borgman wrote: > On Wed, Jul 29, 2009 at 1:53 PM, Elena wrote: >> Hello, >> >> can you make Emacs restart itself a la Firefox (for instance: after an >> heavy update of initialization file)? > > > You mean with all the files you have opened etc? For that you can use > desktop-mode. > > Stopping and starting Emacs itself by hand is not a very big problem, > or? If you think so then you could write a function that does: > > 1) adds a function that start a new Emacs instance last in the hook > kill-emacs-hook. > 2) Kills emacs Kind of unnecessary, but ... I wrote a function emacs-restart that you can grab from the file ourcomments-util.el in nXhtml (currently only in the Launchpad repository).