GNU bug report logs - #10348
24.0.92; Save and load window states

Previous Next

Package: emacs;

Reported by: Michael Bach <phaebz <at> gmail.com>

Date: Thu, 22 Dec 2011 01:40:08 UTC

Severity: normal

Found in version 24.0.92

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Michael Bach <phaebz <at> gmail.com>, 10348 <at> debbugs.gnu.org
Subject: bug#10348: 24.0.92; Save and load window states
Date: Sun, 25 Dec 2011 14:58:01 +0100
> I must be missing something: set-window-parameter does "modify a window
> parameter's value destructively".
>
>>> so it makes the semantics rather irregular.
>> It's precisely the same as for the dedicated status of a window.
>
> Is it?
> The irregularity I'm referring to, is that set-window-configuration will
> remove parameters that were added since the save, but will not undo the
> changes to the parameters that were modified since the save.

You're right.  This makes window parameters useless for applications
where a window excursion can temporarily store some other value for that
parameter.  In particular, side windows can be broken very easily.

So we'd either have to copy the parameter list when creating a window
configuration, not use `setcdr' in `set-window-parameter', or make a new
slot for parameters that must not be modified destructively.  Neither
solution seems attractive to me.

martin




This bug report was last modified 13 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.