all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: session management with desktop and window configuration
Date: Thu, 7 Jan 2010 00:48:57 +0000 (UTC)	[thread overview]
Message-ID: <hi3b1p$2qu$2@reader1.panix.com> (raw)
In-Reply-To: mailman.476.1262259127.18930.help-gnu-emacs@gnu.org

In article <mailman.476.1262259127.18930.help-gnu-emacs@gnu.org>,
martin rudalics  <rudalics@gmx.at> wrote:
> > I'm now using desktop.el for managing sessions. When I do desktop-
> > read, it restore all files opened before well. Then, I'm wondering if
> > there is any way to restore window configuration as well in easy way.
> > Firstly, I tried to add some functions to the desktop hooks as
> > follows:
> >   (add-hook 'desktop-save-hook '(window-configuration-to-register ?0))
> >   (add-hook 'desktop-after-read-hook '(jump-to-register ?0))
> > However, it didn't work at all.
> >
> > The register-base window configuration save/restore are perfect to
> > what I want. But I don't know how to integrate it with desktop. Please
> > give me help.
>
>You can't do this with desktop at the moment.  The basic problem is that


For the short term, and if you can create your window-config without
too much fingerwork-hair, maybe C-x {  and start building it, and
when done assign it into a register (as above), then via list-kbd-macro
and edit-kbd-macro save them in a file?

And if you screw up building the physical screen config, I suppose you
can just undo your mistake and fix it, still while in the C-x ( --

or, maybe if bold, use edit-kbd-macro and EDIT it?


Pretty easy to wrap a defun around it, the list-kbd-macro?


This have any chance of being a quick super-kludgy work-around?

Thanks!

David

PS: Note -- I have NOT read the rest of the thread yet, to see
likely far cooler ways.





       reply	other threads:[~2010-01-07  0:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.476.1262259127.18930.help-gnu-emacs@gnu.org>
2010-01-07  0:48 ` David Combs [this message]
2009-12-31 11:31 session management with desktop and window configuration martin rudalics
2009-12-31 13:21 ` Kiwon Um
2009-12-31 13:33   ` Lennart Borgman
2009-12-31 16:16     ` Richard Riley
2009-12-31 16:22       ` Lennart Borgman
2009-12-31 16:32         ` Richard Riley
2009-12-31 17:33           ` Vicente Hernando Ara
2010-01-01  1:25             ` Lennart Borgman
2009-12-31 17:32     ` martin rudalics
2010-01-01  1:27       ` Lennart Borgman
2010-01-01 14:55         ` martin rudalics
2010-01-01 15:04           ` Lennart Borgman
2010-01-01 15:18             ` martin rudalics
2009-12-31 17:31   ` martin rudalics
2010-01-01  1:29     ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2009-12-31 10:08 Kiwon Um

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='hi3b1p$2qu$2@reader1.panix.com' \
    --to=dkcombs@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.