From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: desktop-save problems Date: Thu, 14 Jul 2016 05:38:07 +0300 Message-ID: <83k2gp7xm8.fsf@gnu.org> References: <576087FA.5020106@mousecar.com> <831t3yebgf.fsf@gnu.org> <57869B44.7050907@mousecar.com> <83poqh8fxc.fsf@gnu.org> <5786BF9C.3070701@mousecar.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468463947 17765 80.91.229.3 (14 Jul 2016 02:39:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 02:39:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 04:39:06 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bNWYL-0007dG-AL for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 04:39:05 +0200 Original-Received: from localhost ([::1]:51052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNWYK-0006o2-Mq for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 22:39:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNWXj-0006lx-GE for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 22:38:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNWXf-0001ge-9r for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 22:38:26 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNWXf-0001gI-64 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 22:38:23 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1445 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bNWXc-0005pA-J5 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 22:38:21 -0400 In-reply-to: <5786BF9C.3070701@mousecar.com> (message from ken on Wed, 13 Jul 2016 18:24:28 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110830 Archived-At: > From: ken > Date: Wed, 13 Jul 2016 18:24:28 -0400 > > On 07/13/2016 04:02 PM, Eli Zaretskii wrote: > >> From: ken > >> 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 reasons).