[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: desktop-save problems

From: Eli Zaretskii
Subject: Re: desktop-save problems
Date: Thu, 14 Jul 2016 05:38:07 +0300

> From: ken <address@hidden>
> Date: Wed, 13 Jul 2016 18:24:28 -0400
> On 07/13/2016 04:02 PM, Eli Zaretskii wrote:
> >> From: ken <address@hidden>
> >> Date: Wed, 13 Jul 2016 15:49:24 -0400
> >>
> >>> The way I do it is turn on desktop-save-mode, then Emacs will save the
> >>> desktop when I exit automatically.
> >> This means that the desktop isn't saved when the system crashes, e.g.,
> >> the power suddenly goes out, yes?
> > If this is frequent enough, you can save manually at strategic times.
> Years ago desktop-save and desktop-read both worked properly out of the 
> box... didn'tl even have to invoke anything.  It just kept track of what 
> files/buffers were open and opened them again in the next session, 
> whether the previous session was graceful or a crash... files opened via 
> tramp too.  How/Why did things get messed up?

It didn't.  It still works the same for me, except now it also saves
and restores frame and window configuration.

> >> Also, in my emacs (24.3.1) I'm always prompted for the directory to save
> >> the desktop in.  Is there a way to specify one directory where the
> >> desktop is saved so I don't have this prompt come up?
> > It doesn't prompt me, it uses the ~/.emacs.d/ directory by default;
> > the directory from which the desktop was read overrides that.  I'm
> > never asked any such questions.  Something is wrong with your setup.
> This is how it works when I start emacs with "emacs -Q".

Then I suggest to look into your customizations for something that
defeats that.

> > Since we now save periodically, we don't need to resolve this dilemma.
> Just curious... how often is the desktop saved in your version?

Every 30 sec by default (I disabled this auto-saving for my own

reply via email to

[Prev in Thread] Current Thread [Next in Thread]