Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Saving State

31 views
Skip to first unread message

Perry Smith

unread,
Sep 7, 2011, 11:02:02 AM9/7/11
to help-gnu-emacs List
I do customer support and I shift from one problem to another problem and then back to the first problem.

Is it possible to save the current state of emacs which includes the buffers in particular and maybe the "register" values (when I do point-to-register) to a file. Then clear the state, work on a new problem, save the new state at that time. Then be able to go back and restore the first state?

Utopia would each of these states to be saved in its own individual file.

I've been told of a packaged named "windows" that does this but I can't find it because the name gets too many hits.

Thank you,
pedz


Jai Dayal

unread,
Sep 7, 2011, 11:40:40 AM9/7/11
to Perry Smith, help-gnu-emacs List
I think this could be accomplished rather easily with screen (in the terminal type "which screen" to see if it's installed).

It will change a few key strokes, but nothing major.

Good thing is about screen, is when you're disconnected, you can ssh back in and re-attach to the screen and everything is there.

http://www.slac.stanford.edu/grp/cd/soft/epics/extensions/iocConsole/screen.1.html

Jai Dayal

unread,
Sep 7, 2011, 11:43:02 AM9/7/11
to Perry Smith, help-gnu-emacs List
I should add that you can run multiple screens, and you easily switch between them (this is the intended use)

Pascal J. Bourguignon

unread,
Sep 7, 2011, 12:11:03 PM9/7/11
to
Perry Smith <ped...@gmail.com> writes:

It's called "desktop". Try M-x desktop-save and M-x desktop-read

--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.

Steven Knight

unread,
Sep 7, 2011, 3:08:52 PM9/7/11
to Perry Smith, help-gnu-emacs List
On Wed, 2011-09-07 at 10:02 -0500, Perry Smith wrote:
I do customer support and I shift from one problem to another problem and then back to the first problem.

Is it possible to save the current state of emacs which includes the buffers in particular and maybe the "register" values (when I do point-to-register) to a file.  Then clear the state, work on a new problem, save the new state at that time.  Then be able to go back and restore the first state?

Utopia would each of these states to be saved in its own individual file.

I've been told of a packaged named "windows" that does this but I can't find it because the name gets too many hits.

Thank you,
pedz




Hi,

It sounds like you're looking for the package Workgroup for Windows.  It provided the features you're looking for. Here are some URLs:

http://www.emacswiki.org/emacs/WorkgroupsForWindows
https://github.com/tlh/workgroups.el

Thanks,


--
Steven Knight <ste...@knight.cx>


Jeffrey Spencer

unread,
Sep 8, 2011, 8:16:24 AM9/8/11
to Perry Smith, help-gnu-emacs List
Check here. It has the windows.el you are searching for which requires
revive.el so dl that too.

http://www.gentei.org/~yuuji/software/
<http://www.gentei.org/%7Eyuuji/software/>

Cheers,
Jeff

Tami

unread,
Sep 8, 2011, 3:04:11 PM9/8/11
to ped...@gmail.com, help-gn...@gnu.org
I also recommend screen. We do some home-automation things via computer, so
when things go wrong its handy to just switch to the relevant screen which is
right in the state I need to quickly fix the problem.

.Tami
.signature: syntax error at line 1: `(' unexpected


On 2011 September 7 Jai Dayal wrote:
> I think this could be accomplished rather easily with screen (in the
> terminal type "which screen" to see if it's installed).

> It will change a few key strokes, but nothing major.

> Good thing is about screen, is when you're disconnected, you can ssh back in
> and re-attach to the screen and everything is there.

> http://www.slac.stanford.edu/grp/cd/soft/epics/extensions/iocConsole/screen.1.html

Jorgen Grahn

unread,
Sep 11, 2011, 7:03:27 PM9/11/11
to
[top-postings fixed]

On Thu, 2011-09-08, Tami wrote:

> On 2011 September 7 Jai Dayal wrote:

>> On Wed, Sep 7, 2011 at 11:02 AM, Perry Smith <ped...@gmail.com> wrote:

>> > I do customer support and I shift from one problem to another problem and
>> > then back to the first problem.

>> I think this could be accomplished rather easily with screen (in the
>> terminal type "which screen" to see if it's installed).
>>
>> It will change a few key strokes, but nothing major.
>>
>> Good thing is about screen, is when you're disconnected, you can ssh back in
>> and re-attach to the screen and everything is there.

> I also recommend screen. We do some home-automation things via computer, so
> when things go wrong its handy to just switch to the relevant screen which is
> right in the state I need to quickly fix the problem.

And I recommend it too. It's well worth learning if you're doing
*anything* Unix-related where you jump between tasks and hosts.

I keep one (named) screen session per task I'm doing at work; typically
two or three active and half a dozen more on the backburner.

You'll have to run Emacs in terminal mode though if you want to
combine them. If you're (like me) very attached to X11 Emacs, you may
not like that. Myself, I don't keep much state in Emacs itself --
Emacs does text editing and screen holds the various shells where most
of my valuable state is.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
0 new messages