all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: Kevin Rodgers <kevin.d.rodgers@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Saving a elisp data structure into string and evaluating it back into objects
Date: Wed, 7 Oct 2009 10:09:58 -0500	[thread overview]
Message-ID: <1e5bcefd0910070809w2c985363p3bf90e5490342991@mail.gmail.com> (raw)
In-Reply-To: <hai374$qic$1@ger.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1879 bytes --]

Thank you all for taking your time to reply!

@Kevin: I've added "layout-configuration-alist" to this var, and indeed, it
saved, but here's what it wrote:

(setq layout-configuration-alist '(("Unprintable entity" "Unprintable
> entity" ("Unprintable entity" . "revive.el")) ("Unprintable entity"
> "Unprintable entity" ("Unprintable entity" . "dot.emacs.el") ("Unprintable
> entity" . "dot.emacs.el"))))
>

"Unprintable entity". Any way I could fix it from the top of your head?

@Pascal: Thanks for the comprehensive answer!

An alternative would be not to try to save EVERYTHING, but only what
> really matters to you, taking care of saving only readably printable
> objects, or for which you write a serialization/deserialization
> function pair.
>

Well, you are absolutely right -- actually, the only thing that interests me
is saving and restoring the value of "layout-configuration-alist", so I can
have my buffer-indexed window layouts persisted.

How could I go and write a serialization/deserialization function pair? And
where would I integrate it?

Thanks,

Marcelo.

On Wed, Oct 7, 2009 at 7:57 AM, Kevin Rodgers <kevin.d.rodgers@gmail.com>wrote:

> Marcelo de Moraes Serpa wrote:
>
>> Hello list,
>>
>> I'm trying to combine DeskTop, layout-restore.el and revive.el to create
>> the ultimate persistence experience :)
>>
>> Well, what I'm trying to do is, every time I exit emacs, the whole memory
>> state (elisp object's tree) will be dumped to a file and reloaded when I
>> restart emacs again.
>>
>> Why am I trying to do this? Well, there are many settings in emacs that
>> are volatile, many vars that are not saved. I know that emacs has the
>> capability to save its vars into .emacs, but this depends on the mode and
>> the var, no?
>>
>
> C-h v desktop-globals-to-save
> C-h v desktop-locals-to-save
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2886 bytes --]

  reply	other threads:[~2009-10-07 15:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-06 23:08 Saving a elisp data structure into string and evaluating it back into objects Marcelo de Moraes Serpa
2009-10-07 12:57 ` Kevin Rodgers
2009-10-07 15:09   ` Marcelo de Moraes Serpa [this message]
2009-10-07 15:33     ` Lennart Borgman
2009-10-07 16:23       ` Marcelo de Moraes Serpa
2009-10-07 17:41         ` Saving a elisp data structure into string and evaluating itback " Drew Adams
2009-10-07 18:22           ` Marcelo de Moraes Serpa
2009-10-08 22:51         ` Saving a elisp data structure into string and evaluating it back " Lennart Borgman
     [not found] <mailman.8197.1254884360.2239.help-gnu-emacs@gnu.org>
2009-10-07  8:05 ` Pascal J. Bourguignon
2009-10-07 16:44   ` tomas
     [not found]   ` <mailman.8243.1254933762.2239.help-gnu-emacs@gnu.org>
2009-10-08 12:02     ` Pascal J. Bourguignon
2009-10-09 13:50       ` Kevin Rodgers
     [not found]       ` <mailman.8409.1255096239.2239.help-gnu-emacs@gnu.org>
2009-10-09 14:12         ` David Kastrup
2009-10-16  2:13           ` Kevin Rodgers
2009-10-12 16:54         ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e5bcefd0910070809w2c985363p3bf90e5490342991@mail.gmail.com \
    --to=celoserpa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kevin.d.rodgers@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.