all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* No way to peek window configurations? Any way to restore them after restarting Emacs?
@ 2010-04-28  8:48 Ken Hori
  2010-04-28  8:51 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Hori @ 2010-04-28  8:48 UTC (permalink / raw)
  To: Emacs Dev [emacs-devel]

I was just reading the Emacs Lisp Reference Manual to see if
Emacs provided any way of restoring window configurations when
Emacs had to restart itself due to some unfortunate crash or for
whatever other reasons.

Restoring a window configuration on a live Emacs is very easy:

(setq winconf (current-window-configuration))
... do whatever you like ...
(set-window-configuration winconf)

I also understand that some information may get lost (like how to
get e.g. an eshell buffer) once Emacs is closed.

But if Emacs provided a way to access what are inside window
configurations, most stuff can be restored.

However, the manual states:
  Other primitives to look inside of window configurations would
  make sense, but are not implemented because we did not need them.

So there is currently no way to peek the contents of window configuration.

I do not know what the author of the sentence meant by "we" above
exactly, but wouldn't it be useful to be able to access winconf
contents, as it would give Emacs capabilities somewhat similar to
"workspace" in IDEs?

If we can't use window configuration, what are the alternatives
for that purpose?

Thanks.




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

* Re: No way to peek window configurations? Any way to restore them after restarting Emacs?
  2010-04-28  8:48 No way to peek window configurations? Any way to restore them after restarting Emacs? Ken Hori
@ 2010-04-28  8:51 ` Juri Linkov
  2010-04-28 11:00   ` Ken Hori
  0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2010-04-28  8:51 UTC (permalink / raw)
  To: Ken Hori; +Cc: Emacs Dev

> If we can't use window configuration, what are the alternatives
> for that purpose?

Please see the current discussion at
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01199.html

-- 
Juri Linkov
http://www.jurta.org/emacs/




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

* Re: No way to peek window configurations? Any way to restore them  after restarting Emacs?
  2010-04-28  8:51 ` Juri Linkov
@ 2010-04-28 11:00   ` Ken Hori
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Hori @ 2010-04-28 11:00 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Emacs Dev

Juri,

Thanks for the pointer and for your great work on the
window-configuration serialization.  I'm surprised it came about
quite recently (since I did not read any of those Gtk tabs and
window configuration emails before posting my first email).  I
might wait until the change gets merged to the main branch, but
at least I now know Emacs will be able to do stuff I
asked here, most likely.


On Wed, Apr 28, 2010 at 1:51 AM, Juri Linkov <juri@jurta.org> wrote:
>> If we can't use window configuration, what are the alternatives
>> for that purpose?
>
> Please see the current discussion at
> http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01199.html
>
> --
> Juri Linkov
> http://www.jurta.org/emacs/
>




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

end of thread, other threads:[~2010-04-28 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28  8:48 No way to peek window configurations? Any way to restore them after restarting Emacs? Ken Hori
2010-04-28  8:51 ` Juri Linkov
2010-04-28 11:00   ` Ken Hori

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.