From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cameron Horsburgh Subject: Re: Installing on windows Date: Thu, 5 Feb 2009 19:25:51 +1100 Message-ID: <20090205082551.GC19921@earth> References: <4c4575360902041007x62c40765h165eef5cd8c1b1@mail.gmail.com> <4c4575360902042102r77098586r97bf039796626479@mail.gmail.com> <20090205051814.GA19921@earth> <20090205061133.GB19921@earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUzZM-0005VC-I2 for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 03:26:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUzZK-0005Uq-2r for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 03:26:43 -0500 Received: from [199.232.76.173] (port=45326 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUzZJ-0005Un-SV for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 03:26:41 -0500 Received: from mx20.gnu.org ([199.232.41.8]:61049) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUzZJ-0007In-Gf for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 03:26:41 -0500 Received: from poplet2.per.eftel.com ([203.24.100.45]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUzZH-0003gG-Kx for emacs-orgmode@gnu.org; Thu, 05 Feb 2009 03:26:40 -0500 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manish Cc: emacs-orgmode@gnu.org On Thu, Feb 05, 2009 at 01:23:52PM +0530, Manish wrote: > On Thu, Feb 5, 2009 at 11:41 AM, Cameron Horsburgh wrote: > [...] > >> >> M-x load-file RET RET > >> > > >> > Will that unload variables that were previously loaded? I can see this > >> > being an issue, for example, if you've undeclared a variable in .emacs > >> > in order to return to a default value. > >> > >> Yes, this will reset any variables that you might have changed in the > >> session back to the values still defined in .emacs. > > > > Sorry, I wasn't clear. I'm thinking about unsetting variables you have > > in your .emacs to their default values. I just reboot Emacs, but if > > there were a quicker way to revert to a 'pristine' state then load > > .emacs it would be much easier. > > I guess a lot depends on what "pristine" means here. > > You could have multiple copies of .emacs to achieve various states, I > think but then you will need to define /all/ the variables to their > default values at least in some of those files explicitly so they can be > reset from whatever you have set them to. A variable not set in .emacs > would stay at it's set value (whether set by another copy of .emacs or > manually.) In reality I have never needed to so I may not even fully > understand your issue and if any of what I said made sense. :-/ I thought as much! What I (and I think the OP) is looking for is a way to load a modified version of .emacs without having to reboot, but with the guarantee that all of the changes will be effective. As you say, variable declarations that have been removed from .emacs will not be taken into account. It's a moot point, I guess---by far the majority of my Emacs boot time is spent loading things in .emacs anyway, so I doubt any time could be saved if what I wanted were possible. -- Cameron Horsburgh Blog: http://spiritcry.wordpress.com/