From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Can I recover my .emacs? Date: Mon, 24 Jan 2011 12:36:59 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295891523 19023 80.91.229.12 (24 Jan 2011 17:52:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 17:52:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 24 18:51:58 2011 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.69) (envelope-from ) id 1PhQa3-0005TV-8B for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jan 2011 18:51:55 +0100 Original-Received: from localhost ([127.0.0.1]:36358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhQPO-0006Eb-05 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jan 2011 12:40:54 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Injection-Info: mx03.eternal-september.org; posting-host="cDuFTaxWZtHn7h45EreUyw"; logging-data="5471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lCkkb2jaFskLHQfPDq6Je" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:gGv574ATM24xdZ5ShYWPho+aBgE= sha1:oUJAjYz/26mx54nM3Y2A8uOWuLw= Original-Xref: usenet.stanford.edu gnu.emacs.help:184553 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:78713 Archived-At: > Is there any way to recover the .emacs from the .emacs.elc? The two are "equivalent" in the sense that Emacs understands them just as well, but maybe not humans. So the comments your had in .emacs aren't carried over in the .emacs.elc, but a lot of the rest is. > I tried saving options in Emacs and it does get many but not all of > the settings I had. I had some loadpaths and other statements and > I can't remember them all. And I'm not any good with Emacs Lisp or any > Lisp so I can't figure how to get everything back the way it was. I recommend you open the .emacs.elc file in Emacs and look at it. You'll probably see a lot of "garbage" (like \NNN chars), but you should also see lots of variable names (all the variable names you had in .emacs should appear in .emacs.elc and all the values as well as most/all of the functions you called there). So the main work will be for you to try and figure out what value corresponds to which variable and things like that. If you have trouble understanding what you see, post some samples here for people to decode it for you. Note also that a lot of what's in the .emacs.elc can be placed in the .emacs as well. Stefan