all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Remember window config
@ 2011-07-16 18:47 Bastian Ballmann
  2011-07-16 19:32 ` Valentin Plechinger
  2011-07-17  3:47 ` Remember window config Leo
  0 siblings, 2 replies; 17+ messages in thread
From: Bastian Ballmann @ 2011-07-16 18:47 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

Hi emacs lovers,

i know and like desktop-save-mode and it can really save a lot of stuff
not only open buffers but i cant find an extension that will save my
window configuration. any hints or links on that?

tia && have a nice day! :)

basti

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Remember window config
  2011-07-16 18:47 Remember window config Bastian Ballmann
@ 2011-07-16 19:32 ` Valentin Plechinger
  2011-07-16 23:39   ` Bastian Ballmann
  2011-07-17  3:47 ` Remember window config Leo
  1 sibling, 1 reply; 17+ messages in thread
From: Valentin Plechinger @ 2011-07-16 19:32 UTC (permalink / raw)
  To: Help-gnu-emacs

Try winner-mode, I haven't tried it that much yet and from your short description I'm not sure what exactly you want to do but give it a try.
http://www.emacswiki.org/emacs/WinnerMode

best regards

At Sat, 16 Jul 2011 20:47:36 +0200,
Bastian Ballmann wrote:
> 
> [1  <text/plain; US-ASCII (quoted-printable)>]
> Hi emacs lovers,
> 
> i know and like desktop-save-mode and it can really save a lot of stuff
> not only open buffers but i cant find an extension that will save my
> window configuration. any hints or links on that?
> 
> tia && have a nice day! :)




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Remember window config
  2011-07-16 19:32 ` Valentin Plechinger
@ 2011-07-16 23:39   ` Bastian Ballmann
  2011-07-17  4:02     ` ken
                       ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Bastian Ballmann @ 2011-07-16 23:39 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]

Hi Valentin,

maybe my description was too short. I want Emacs to remember my actual
window configuration when I close and reenter it like
desktop-save-mode does for many other things. 
As far as I know winner-mode is only to remember window config within
the currently running session. 

Thx && greets

Basti


Am Sat, 16 Jul 2011 21:32:27 +0200 schrieb Valentin
Plechinger <v.plechinger@gmail.com>:

> Try winner-mode, I haven't tried it that much yet and from your short
> description I'm not sure what exactly you want to do but give it a
> try. http://www.emacswiki.org/emacs/WinnerMode
> 
> best regards
> 
> At Sat, 16 Jul 2011 20:47:36 +0200,
> Bastian Ballmann wrote:
> > 
> > [1  <text/plain; US-ASCII (quoted-printable)>]
> > Hi emacs lovers,
> > 
> > i know and like desktop-save-mode and it can really save a lot of
> > stuff not only open buffers but i cant find an extension that will
> > save my window configuration. any hints or links on that?
> > 
> > tia && have a nice day! :)
> 
> 


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Remember window config
  2011-07-16 18:47 Remember window config Bastian Ballmann
  2011-07-16 19:32 ` Valentin Plechinger
@ 2011-07-17  3:47 ` Leo
  1 sibling, 0 replies; 17+ messages in thread
From: Leo @ 2011-07-17  3:47 UTC (permalink / raw)
  To: help-gnu-emacs

On 2011-07-17 02:47 +0800, Bastian Ballmann wrote:
> i know and like desktop-save-mode and it can really save a lot of stuff
> not only open buffers but i cant find an extension that will save my
> window configuration. any hints or links on that?
>
> tia && have a nice day! :)

Make a feature request to bug-gnu-emacs@gnu.org. Time is good since the
window-related code is under new development.

Leo




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Remember window config
  2011-07-16 23:39   ` Bastian Ballmann
@ 2011-07-17  4:02     ` ken
  2011-07-17  4:25     ` masashi ito
  2011-07-17  5:07     ` bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session ken
  2 siblings, 0 replies; 17+ messages in thread
From: ken @ 2011-07-17  4:02 UTC (permalink / raw)
  To: GNU Emacs List

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 four or more
different viewports.  Accurately positioning all of them in the correct
viewports would constitute a thorough recreation of the previous session.


Is this what people were going for?




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Remember window config
  2011-07-16 23:39   ` Bastian Ballmann
  2011-07-17  4:02     ` ken
@ 2011-07-17  4:25     ` masashi ito
  2011-07-17  5:07     ` bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session ken
  2 siblings, 0 replies; 17+ messages in thread
From: masashi ito @ 2011-07-17  4:25 UTC (permalink / raw)
  To: Bastian Ballmann; +Cc: help-gnu-emacs

Hello,

I am not sure if this is what you are looking for, but I thought windows.el
may work for you. An alternative would be winring.el though I have never tried
it myself... 

Best, 

Masashi


On Sun, Jul 17, 2011 at 01:39:18AM +0200, Bastian Ballmann wrote:
> Hi Valentin,
> 
> maybe my description was too short. I want Emacs to remember my actual
> window configuration when I close and reenter it like
> desktop-save-mode does for many other things. 
> As far as I know winner-mode is only to remember window config within
> the currently running session. 
> 
> Thx && greets
> 
> Basti
> 
> 
> Am Sat, 16 Jul 2011 21:32:27 +0200 schrieb Valentin
> Plechinger <v.plechinger@gmail.com>:
> 
> > Try winner-mode, I haven't tried it that much yet and from your short
> > description I'm not sure what exactly you want to do but give it a
> > try. http://www.emacswiki.org/emacs/WinnerMode
> > 
> > best regards
> > 
> > At Sat, 16 Jul 2011 20:47:36 +0200,
> > Bastian Ballmann wrote:
> > > 
> > > [1  <text/plain; US-ASCII (quoted-printable)>]
> > > Hi emacs lovers,
> > > 
> > > i know and like desktop-save-mode and it can really save a lot of
> > > stuff not only open buffers but i cant find an extension that will
> > > save my window configuration. any hints or links on that?
> > > 
> > > tia && have a nice day! :)
> > 
> > 
> 



-- 
********** ********** ********** ********** 
"I have always found that mercy bears 
        richer fruits than strict justice."

        -- Abraham Lincoln, 
           speech in Washington D.C., 1865



^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-16 23:39   ` Bastian Ballmann
  2011-07-17  4:02     ` ken
  2011-07-17  4:25     ` masashi ito
@ 2011-07-17  5:07     ` ken
  2011-07-17  9:46       ` martin rudalics
  2011-07-17 22:54       ` Juri Linkov
  2 siblings, 2 replies; 17+ messages in thread
From: ken @ 2011-07-17  5:07 UTC (permalink / raw)
  To: 9105

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.






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17  5:07     ` bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session ken
@ 2011-07-17  9:46       ` martin rudalics
  2011-07-17 13:16         ` Drew Adams
                           ` (2 more replies)
  2011-07-17 22:54       ` Juri Linkov
  1 sibling, 3 replies; 17+ messages in thread
From: martin rudalics @ 2011-07-17  9:46 UTC (permalink / raw)
  To: gebser; +Cc: 9105

 > 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





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17  9:46       ` martin rudalics
@ 2011-07-17 13:16         ` Drew Adams
  2011-07-17 22:57           ` Juri Linkov
  2011-07-17 15:56         ` ken
  2011-07-17 15:56         ` ken
  2 siblings, 1 reply; 17+ messages in thread
From: Drew Adams @ 2011-07-17 13:16 UTC (permalink / raw)
  To: 'martin rudalics', gebser; +Cc: 9105

> 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.






^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17  9:46       ` martin rudalics
  2011-07-17 13:16         ` Drew Adams
@ 2011-07-17 15:56         ` ken
  2011-07-17 15:56         ` ken
  2 siblings, 0 replies; 17+ messages in thread
From: ken @ 2011-07-17 15:56 UTC (permalink / raw)
  To: martin rudalics, GNU Emacs List; +Cc: 9105

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






^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17  9:46       ` martin rudalics
  2011-07-17 13:16         ` Drew Adams
  2011-07-17 15:56         ` ken
@ 2011-07-17 15:56         ` ken
  2011-07-17 17:42           ` martin rudalics
  2 siblings, 1 reply; 17+ messages in thread
From: ken @ 2011-07-17 15:56 UTC (permalink / raw)
  To: martin rudalics, GNU Emacs List; +Cc: 9105

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




^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17 15:56         ` ken
@ 2011-07-17 17:42           ` martin rudalics
  2011-07-17 22:59             ` Juri Linkov
  0 siblings, 1 reply; 17+ messages in thread
From: martin rudalics @ 2011-07-17 17:42 UTC (permalink / raw)
  To: gebser; +Cc: 9105, GNU Emacs List

 > 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





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17  5:07     ` bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session ken
  2011-07-17  9:46       ` martin rudalics
@ 2011-07-17 22:54       ` Juri Linkov
  2011-07-18  8:52         ` Jan Djärv
  2011-07-18 11:26         ` ken
  1 sibling, 2 replies; 17+ messages in thread
From: Juri Linkov @ 2011-07-17 22:54 UTC (permalink / raw)
  To: gebser; +Cc: 9105

> 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?





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17 13:16         ` Drew Adams
@ 2011-07-17 22:57           ` Juri Linkov
  0 siblings, 0 replies; 17+ messages in thread
From: Juri Linkov @ 2011-07-17 22:57 UTC (permalink / raw)
  To: Drew Adams; +Cc: gebser, 9105

> 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.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17 17:42           ` martin rudalics
@ 2011-07-17 22:59             ` Juri Linkov
  0 siblings, 0 replies; 17+ messages in thread
From: Juri Linkov @ 2011-07-17 22:59 UTC (permalink / raw)
  To: martin rudalics; +Cc: 9105, gebser

> 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.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17 22:54       ` Juri Linkov
@ 2011-07-18  8:52         ` Jan Djärv
  2011-07-18 11:26         ` ken
  1 sibling, 0 replies; 17+ messages in thread
From: Jan Djärv @ 2011-07-18  8:52 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 9105, gebser



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.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session
  2011-07-17 22:54       ` Juri Linkov
  2011-07-18  8:52         ` Jan Djärv
@ 2011-07-18 11:26         ` ken
  1 sibling, 0 replies; 17+ messages in thread
From: ken @ 2011-07-18 11:26 UTC (permalink / raw)
  To: Juri Linkov, GNU Emacs List

On 07/17/2011 06:54 PM Juri Linkov wrote:
>> 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?

AFAIK this is done by window manager commands.  In gnome, where they're
called "workspaces", left-clicking on the top border brings up a pop-up
menu where the viewport can be selected.  Used to be, you could drag
windows from one viewport to another.  I don't know why that feature has
been removed, but it has.





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-07-18 11:26 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-16 18:47 Remember window config Bastian Ballmann
2011-07-16 19:32 ` Valentin Plechinger
2011-07-16 23:39   ` Bastian Ballmann
2011-07-17  4:02     ` ken
2011-07-17  4:25     ` masashi ito
2011-07-17  5:07     ` bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session ken
2011-07-17  9:46       ` martin rudalics
2011-07-17 13:16         ` Drew Adams
2011-07-17 22:57           ` Juri Linkov
2011-07-17 15:56         ` ken
2011-07-17 15:56         ` ken
2011-07-17 17:42           ` martin rudalics
2011-07-17 22:59             ` Juri Linkov
2011-07-17 22:54       ` Juri Linkov
2011-07-18  8:52         ` Jan Djärv
2011-07-18 11:26         ` ken
2011-07-17  3:47 ` Remember window config Leo

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.