all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: phaebz@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: Save and load window states
Date: Wed, 21 Dec 2011 16:29:34 +0100	[thread overview]
Message-ID: <4EF1FB5E.7090008@gmx.at> (raw)

 > Saving works this way.  The file has the same contents shown in the
 > *Messages* buffer when doing a manual `window-state-get'.  On loading, I
 > get either "Invalid read syntax #"

This is a bug.  Please report it as Drew suggested.

 > or "End of file during parsing".

This is probably due to the fact that you called `my-load-frame' twice
in a row and you were already at the end of the buffer in the second
call so there was nothing more to read.

 > I am thinking that this has something to do with how emacs reads and
 > evaluates objects.

Partly, yes.

 > Can someone give me a hint on how to make it work?

Please comment out the two code lines

                 (unless (window-parameter window 'clone-of)
                   ;; Make a clone-of parameter.
                   (setq list (cons (cons 'clone-of window) list)))

in the function `window--state-get-1' and recompile window.el (possibly
twice - I'm somewhat confused by Stefan's backquote syntax here).  These
lines are currently for internal use only, their absence should not harm
you.  If you still see problems, please tell me.

Thanks, martin



             reply	other threads:[~2011-12-21 15:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 15:29 martin rudalics [this message]
2011-12-21 20:13 ` Save and load window states Michael Bach
2011-12-21 21:20   ` martin rudalics
2011-12-23 11:02     ` Michael Bach
2011-12-23 11:13       ` martin rudalics
2011-12-23 12:24         ` Michael Bach
2011-12-23 13:46           ` martin rudalics
2011-12-28 14:10             ` Michael Bach
  -- strict thread matches above, loose matches on Subject: below --
2011-12-20 16:00 Michael Bach
2011-12-20 18:53 ` Drew Adams

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=4EF1FB5E.7090008@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    --cc=phaebz@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.