all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: martin rudalics <rudalics@gmx.at>
Cc: Michael Bach <phaebz@gmail.com>, 10348@debbugs.gnu.org
Subject: bug#10348: 24.0.92; Save and load window states
Date: Wed, 28 Dec 2011 18:09:44 -0500	[thread overview]
Message-ID: <jwvaa6cti21.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4EFB3C66.6040104@gmx.at> (martin rudalics's message of "Wed, 28 Dec 2011 16:57:26 +0100")

>> And of course the parameters preserved intra-session is a superset of
>> the parameters preserved inter-sessions.
> I'm not so sure.  Maybe a parameter is useful intra-session but not
> readable from disk.

I don't understand: you first seem to say you disagree with me, but then
what you say afterwards seems to agree with me.

>> Using window-state-ignored-parameters to specify the difference between
>> the two sets seems OK.
> You mean that any value present in `window-state-ignored-parameters'
> would have to be a member of the `window-persistent-parameters' I used
> in my patch?

Not necessarily, but an element in window-state-ignored-parameters which
is not in window-persistent-parameters would have no effect.

> I'd rather not care about `window-state-ignored-parameters' in
> `current-window-configuration' or `set-window-configuration'.

That's OK, window-configurations are intra-session objects anyway, so if
window-state-ignored-parameters specifies the difference between the two
sets, it indeed can be ignored by  `current-window-configuration' and
`set-window-configuration'.

> (BTW, I use `window-persistent-parameters' instead of
> `window-state-saved-parameters' because they apply to both,
> `current-window-configuration` and `window-state-get'.)

Yes, the name sounds fine.

>> An alternative would be to ignore window-state-saved-parameters (and
>> window-state-ignored-parameters)
> So far, I didn't care about `window-state-ignored-parameters' when
> restoring a state in `window-state-put'.

Fine.

>> upon restore.  Instead, we'd save the parameters in a list where each
>> element is either (PARM . VAL) or just PARM where the second form
>> indicates that PARM was not set and should hence be unset upon restore.
> Fine with me.  Obviously, this makes saved states a bit larger.

Indeed, but otherwise, as you pointed out, it makes the semantics rather
tricky if window-persistent-parameters is changed between the save and
the restore (which is something that is very likely to happen sometimes
since the restore may happen years after the save).


        Stefan





  reply	other threads:[~2011-12-28 23:09 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 20:41 bug#10348: 24.0.92; Save and load window states Michael Bach
2011-12-22 17:04 ` martin rudalics
2011-12-22 17:14   ` Drew Adams
2011-12-22 21:57   ` Juri Linkov
2011-12-22 22:57     ` Juanma Barranquero
2011-12-22 23:34       ` Juri Linkov
2011-12-23 10:30         ` martin rudalics
2011-12-23 15:10           ` Drew Adams
2011-12-24 19:04             ` Juri Linkov
2011-12-23 10:30     ` martin rudalics
2011-12-23  1:03   ` Stefan Monnier
2011-12-23 10:31     ` martin rudalics
2011-12-23 11:30       ` Michael Bach
2011-12-23 21:14       ` Juri Linkov
2011-12-24  9:26         ` martin rudalics
2011-12-24 19:08           ` Juri Linkov
2011-12-25 13:57             ` martin rudalics
2011-12-24  0:07       ` Stefan Monnier
2011-12-24  9:27         ` martin rudalics
2011-12-25 11:00           ` Stefan Monnier
2011-12-25 13:58             ` martin rudalics
2011-12-25 21:36               ` Juri Linkov
2011-12-26 11:07                 ` martin rudalics
2011-12-26  0:22               ` Stefan Monnier
2011-12-26 11:07                 ` martin rudalics
2011-12-26 18:25                   ` martin rudalics
2011-12-27 23:23                     ` Stefan Monnier
2011-12-28 15:57                       ` martin rudalics
2011-12-28 23:09                         ` Stefan Monnier [this message]
2011-12-29 11:39                           ` martin rudalics
2012-01-16  9:42                       ` martin rudalics
2011-12-28  9:50                     ` martin rudalics
2011-12-24 19:17 ` Juri Linkov
2012-01-16  9:43 ` martin rudalics

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=jwvaa6cti21.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=10348@debbugs.gnu.org \
    --cc=phaebz@gmail.com \
    --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.