From: Michael Bach <phaebz@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Save and load window states
Date: Wed, 21 Dec 2011 21:13:24 +0100 [thread overview]
Message-ID: <4ef23cf5.0d0a0e0a.60bc.ffffbbb7@mx.google.com> (raw)
In-Reply-To: <4EF1FB5E.7090008@gmx.at> (martin rudalics's message of "Wed, 21 Dec 2011 16:29:34 +0100")
martin rudalics <rudalics@gmx.at> writes:
>> 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.
>
Will do.
>> 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.
>
Yep, that was the reason. I adapted `my-load-frame' accordingly.
>> 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.
>
Unfortunately, that did not work. Tried it compiled once and twice.
Same as before.
Thanks so far
michael
next prev parent reply other threads:[~2011-12-21 20:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 15:29 Save and load window states martin rudalics
2011-12-21 20:13 ` Michael Bach [this message]
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=4ef23cf5.0d0a0e0a.60bc.ffffbbb7@mx.google.com \
--to=phaebz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=rudalics@gmx.at \
/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.