GNU bug report logs -
#9105
Feature req: Remembering emacs frames, windows, buffer position to subsequent session
Previous Next
Reported by: gebser <at> mousecar.com
Date: Sun, 17 Jul 2011 05:11:01 UTC
Severity: wishlist
Merged with 9985
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9105 in the body.
You can then email your comments to 9105 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 05:11:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
gebser <at> mousecar.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 17 Jul 2011 05:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Often I'll have five or more frames open, some split vertically, perhaps
a couple split horizontally, all of them with different files (or
"buffers") in them-- though in some instances it's possible to have the
same buffer in more than one window or frame. When I close emacs down
and then invoke it again, I'd like to have the same windows come up,
split the same way, with the same buffers/files in each frame and
window, and even with the frames in the same location onscreen as they
were in the prior session. In short, the current session should be set
up exactly like the prior session at the time it was closed.
Yes, this is asking quite a bit. So I'll add one more thing. In Linux
and other OSs employing X it's possible to have multiple viewports
(i.e., desktops) and to place any GUI application into any viewport. So
it's possible that all emacs windows might not be all in the same
viewport... six emacs frames could be positioned in two, four, or more
different viewports. Accurately positioning all of them in the correct
viewports would constitute a thorough recreation of the previous session.
Thanks.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 09:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 9105 <at> debbugs.gnu.org (full text, mbox):
> Often I'll have five or more frames open, some split vertically, perhaps
> a couple split horizontally, all of them with different files (or
> "buffers") in them-- though in some instances it's possible to have the
> same buffer in more than one window or frame. When I close emacs down
> and then invoke it again, I'd like to have the same windows come up,
> split the same way, with the same buffers/files in each frame and
> window, and even with the frames in the same location onscreen as they
> were in the prior session. In short, the current session should be set
> up exactly like the prior session at the time it was closed.
All this should be doable now using the functions `window-state-get' and
`window-state-put'. Could you try implementing this in desktop.el?
martin
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 13:17:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 9105 <at> debbugs.gnu.org (full text, mbox):
> All this should be doable now using the functions
> `window-state-get' and
> `window-state-put'. Could you try implementing this in desktop.el?
Please do it in a separate library, and keep it decoupled from Desktop. Yes, it
should be possible and easy to use it in conjunction with Desktop. But it
should also be possible to use each separately, and preferably without loading
the other.
These are two different functionalities which can be useful if used together.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 15:57:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 9105 <at> debbugs.gnu.org (full text, mbox):
On 07/17/2011 05:46 AM martin rudalics wrote:
>> Often I'll have five or more frames open, some split vertically, perhaps
>> a couple split horizontally, all of them with different files (or
>> "buffers") in them-- though in some instances it's possible to have the
>> same buffer in more than one window or frame. When I close emacs down
>> and then invoke it again, I'd like to have the same windows come up,
>> split the same way, with the same buffers/files in each frame and
>> window, and even with the frames in the same location onscreen as they
>> were in the prior session. In short, the current session should be set
>> up exactly like the prior session at the time it was closed.
>
> All this should be doable now using the functions `window-state-get' and
> `window-state-put'. Could you try implementing this in desktop.el?
>
> martin
Thanks, Martin!
Where do I find these two functions?
Once I download them, would it make any difference if I put them in my
emacs-path rather than inserting them in or appending them to desktop.el?
Thanks++,
ken
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 17:43:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 9105 <at> debbugs.gnu.org (full text, mbox):
> Where do I find these two functions?
In window.el of the development version, that is Emacs 24.0.50.1.
> Once I download them, would it make any difference if I put them in my
> emacs-path rather than inserting them in or appending them to desktop.el?
You will have to install Emacs 24 on your system. After that you will
have to write two functions - one that writes for each frame the value
returned by `window-state-get' on file together with the parameters of
the frame, and one that reads the values from file, creates a new frame
for each entry, and uses `window-state-put' to restore the window
layouts within that frame. All this after you have recreated the
buffers visiting files. And you have to decide what to do with windows
whose buffers did not visit a file in the old session.
martin
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 23:29:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 9105 <at> debbugs.gnu.org (full text, mbox):
> Yes, this is asking quite a bit. So I'll add one more thing. In Linux
> and other OSs employing X it's possible to have multiple viewports
> (i.e., desktops) and to place any GUI application into any viewport. So
> it's possible that all emacs windows might not be all in the same
> viewport... six emacs frames could be positioned in two, four, or more
> different viewports. Accurately positioning all of them in the correct
> viewports would constitute a thorough recreation of the previous session.
Do you know what commands can move Emacs frames to different viewports?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 23:29:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 9105 <at> debbugs.gnu.org (full text, mbox):
> Please do it in a separate library, and keep it decoupled from Desktop. Yes, it
> should be possible and easy to use it in conjunction with Desktop. But it
> should also be possible to use each separately, and preferably without loading
> the other.
Most of the functionality of desktop.el is already duplicated in
savehist.el and saveplace.el because they use different formats.
So remembering Emacs frames and windows could be implemented separately
in two places: in desktop.el and in a new library like savewindows.el
or saveframes.el.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Sun, 17 Jul 2011 23:29:03 GMT)
Full text and
rfc822 format available.
Message #26 received at 9105 <at> debbugs.gnu.org (full text, mbox):
> And you have to decide what to do with windows whose buffers did not
> visit a file in the old session.
This is possible already by specifying `desktop-buffer-mode-handlers'
to reconstruct non-persistent buffers like it's done by
`Info-restore-desktop-buffer', `dired-restore-desktop-buffer', etc.
Implenting it in more packages will save and restore more different buffers.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9105
; Package
emacs
.
(Mon, 18 Jul 2011 08:54:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 9105 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov skrev 2011-07-18 00.54:
>> Yes, this is asking quite a bit. So I'll add one more thing. In Linux
>> and other OSs employing X it's possible to have multiple viewports
>> (i.e., desktops) and to place any GUI application into any viewport. So
>> it's possible that all emacs windows might not be all in the same
>> viewport... six emacs frames could be positioned in two, four, or more
>> different viewports. Accurately positioning all of them in the correct
>> viewports would constitute a thorough recreation of the previous session.
>
> Do you know what commands can move Emacs frames to different viewports?
>
>
With a window manager that supports extended window manager hints, it is a
property: http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507080.
Jan D.
Merged 9105 9985.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 07 Nov 2011 17:16:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
(Mon, 22 Sep 2014 09:31:07 GMT)
Full text and
rfc822 format available.
Notification sent
to
gebser <at> mousecar.com
:
bug acknowledged by developer.
(Mon, 22 Sep 2014 09:31:08 GMT)
Full text and
rfc822 format available.
Message #36 received at 9105-done <at> debbugs.gnu.org (full text, mbox):
> Often I'll have five or more frames open, some split vertically, perhaps
> a couple split horizontally, all of them with different files (or
> "buffers") in them-- though in some instances it's possible to have the
> same buffer in more than one window or frame. When I close emacs down
> and then invoke it again, I'd like to have the same windows come up,
> split the same way, with the same buffers/files in each frame and
> window, and even with the frames in the same location onscreen as they
> were in the prior session. In short, the current session should be set
> up exactly like the prior session at the time it was closed.
Thanks to Juanma's frameset functions `desktop-save-mode' should do that
now by default. Closing this bug.
Thanks, martin
Reply sent
to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
(Mon, 22 Sep 2014 09:31:09 GMT)
Full text and
rfc822 format available.
Notification sent
to
Marius Hofert <marius.hofert <at> math.ethz.ch>
:
bug acknowledged by developer.
(Mon, 22 Sep 2014 09:31:09 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 20 Oct 2014 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.